Class CompoundGUIVariable
- java.lang.Object
-
- net.ssehub.easy.producer.ui.confModel.GUIVariable
-
- net.ssehub.easy.producer.ui.confModel.AbstractExpandableGUIVariable
-
- net.ssehub.easy.producer.ui.confModel.CompoundGUIVariable
-
- All Implemented Interfaces:
java.lang.Comparable<GUIVariable>,IGUIConfigurableElement
class CompoundGUIVariable extends AbstractExpandableGUIVariable
GUI representation of compound values.- Author:
- El-Sharkawy
-
-
Constructor Summary
Constructors Constructor Description CompoundGUIVariable(IDecisionVariable variable, org.eclipse.swt.widgets.Composite parent, GUIConfiguration config, GUIVariable varParent)Sole constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfreeze()Causes to freeze the current value.java.lang.ObjectgetValue()Returns the value of the givenIDecisionVariableso that it can be used as return value for theEditingSupport.getValue(Object)method.java.lang.StringgetValueText()Returns a string representation of the current value.-
Methods inherited from class net.ssehub.easy.producer.ui.confModel.AbstractExpandableGUIVariable
createNestedVariables, extend, getCellEditor, getEditor, getNestedElement, getNestedElementsCount, getValueAssignment, isExpandable, replace, setValue
-
Methods inherited from class net.ssehub.easy.producer.ui.confModel.GUIVariable
addErrorMessage, compareTo, getAssignmentState, getComment, getComposite, getConfiguration, getErrorMessages, getHistory, getName, getNestedDepth, getNullLabel, getParent, getTooltip, getTopLevelParent, getType, getVariable, hasErrors, hasNullValue, hasValue, isAnnotated, isEditable, isExtendable, isFreezable, isFrozen, isTopLevelDeclaration, remove, removeErrorMessages, replaceValue, setEmptyValue, setNULLValue, setVariable, toString, unfreeze
-
-
-
-
Constructor Detail
-
CompoundGUIVariable
CompoundGUIVariable(IDecisionVariable variable, org.eclipse.swt.widgets.Composite parent, GUIConfiguration config, GUIVariable varParent)
Sole constructor for this class.- Parameters:
variable- TheIDecisionVariablerepresented by this GUIVariableparent- The controlling composite, needed for the creation of CellEditorsconfig- TheGUIConfigurationholding this GUIVariablevarParent- The parent GUIVariable holding this variable. Can be null if and only if this variable is a top level variable stored inside the configuration.
-
-
Method Detail
-
getValueText
public java.lang.String getValueText()
Description copied from class:GUIVariableReturns a string representation of the current value. This is used when no cursor is inside the cell (if the user is not editing the variable).- Specified by:
getValueTextin classGUIVariable- Returns:
- A string representation of the current value or null.
-
getValue
public java.lang.Object getValue()
Description copied from class:GUIVariableReturns the value of the givenIDecisionVariableso that it can be used as return value for theEditingSupport.getValue(Object)method.- Specified by:
getValuein classGUIVariable- Returns:
- A value as needed by the Eclipse UI.
-
freeze
public void freeze()
Description copied from class:GUIVariableCauses to freeze the current value.- Overrides:
freezein classGUIVariable
-
-