Class MultipleSelectionEditor

  • All Implemented Interfaces:
    GUIEditor

    public class MultipleSelectionEditor
    extends java.lang.Object
    implements GUIEditor
    Implements a GUI representation for references. Creates a multiple-selection table.
    Author:
    Dennis Konoppa
    • Field Detail

      • table

        private org.eclipse.swt.widgets.Table table
      • possibleVariables

        private java.util.Map<java.lang.String,​AbstractVariable> possibleVariables
    • Constructor Detail

      • MultipleSelectionEditor

        public MultipleSelectionEditor​(org.eclipse.swt.widgets.Composite composite,
                                       IDatatype refType,
                                       IDecisionVariable refVariable)
        Constructor for a MultipleSelectionEditor.
        Parameters:
        composite - composite for editor
        refType - IDatatype for current reference
        refVariable - IDecisionVariable from current reference
    • Method Detail

      • updateSelectedValues

        public void updateSelectedValues()
        Method to check selected references in table and update list of selected values.
      • getControl

        public org.eclipse.swt.widgets.Control getControl()
        Description copied from interface: GUIEditor
        Returns the actual SWT control of the editor.
        Specified by:
        getControl in interface GUIEditor
        Returns:
        the control
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: GUIEditor
        Returns the value of the editor.
        Specified by:
        getValue in interface GUIEditor
        Returns:
        the value
      • setValue

        public void setValue​(java.lang.Object object)
        Description copied from interface: GUIEditor
        Changes the value of the editor.
        Specified by:
        setValue in interface GUIEditor
        Parameters:
        object - the new value
      • isPseudoEditor

        public boolean isPseudoEditor()
        Description copied from interface: GUIEditor
        Returns whether this representation actually holds an editable SWT element or whether it is a pseudo editor such as a Label.
        Specified by:
        isPseudoEditor in interface GUIEditor
        Returns:
        true if it is a pseudo editor, false else
      • refreshContents

        public void refreshContents()
        Description copied from interface: GUIEditor
        Refreshes the contents of this editor.
        Specified by:
        refreshContents in interface GUIEditor