Class ContainerGUIVariable

    • Constructor Detail

      • ContainerGUIVariable

        ContainerGUIVariable​(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

      • isExtendable

        public boolean isExtendable()
        Description copied from class: GUIVariable
        Returns whether is variable can be extended (insert new empty values). Subclasses may override this method.
        Overrides:
        isExtendable in class GUIVariable
        Returns:
        true if this variable is extendable, otherwise false.
        See Also:
        GUIVariable.extend()
      • 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.
      • getEditor

        public GUIEditor getEditor()
        Description copied from class: GUIVariable
        Returns the (non-cell) editor for this variable. The editor shall be ready to use, i.e., properly initialized.
        Overrides:
        getEditor in class AbstractExpandableGUIVariable
        Returns:
        the editor, may be null if the variable shall not be displayed / being edited