Class CompoundGUIVariable

    • Constructor Detail

      • CompoundGUIVariable

        CompoundGUIVariable​(IDecisionVariable variable,
                            org.eclipse.swt.widgets.Composite parent,
                            GUIConfiguration config,
                            GUIVariable varParent)
        Sole constructor for this class.
        Parameters:
        variable - The IDecisionVariable represented by this GUIVariable
        parent - The controlling composite, needed for the creation of CellEditors
        config - The GUIConfiguration holding this GUIVariable
        varParent - 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: GUIVariable
        Returns 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:
        getValueText in class GUIVariable
        Returns:
        A string representation of the current value or null.
      • getValue

        public java.lang.Object getValue()
        Description copied from class: GUIVariable
        Returns the value of the given IDecisionVariable so that it can be used as return value for the EditingSupport.getValue(Object) method.
        Specified by:
        getValue in class GUIVariable
        Returns:
        A value as needed by the Eclipse UI.
      • freeze

        public void freeze()
        Description copied from class: GUIVariable
        Causes to freeze the current value.
        Overrides:
        freeze in class GUIVariable