Class ConfigurationTableEditorFactory.UIConfiguration

    • Method Detail

      • getConfiguration

        GUIConfiguration getConfiguration()
        Returns the IVML configuration.
        Returns:
        the configuration
      • getParent

        public IEASyEditorPage getParent()
        Returns the parent editor instance.
        Returns:
        the parent editor instance
      • getParameter

        public java.lang.Object getParameter​(ConfigurationTableEditorFactory.UIParameter key)
        Returns a configuration parameter.
        Parameters:
        key - the key to return the parameter for
        Returns:
        the parameter or its default value, may be null if no parameters are specified, key is null or the key does not exist
      • freezeAll

        public void freezeAll()
        Causes to freeze all values.
      • resetValues

        public void resetValues()
        Resets all values in the GUI editors.
      • commitValues

        public void commitValues​(ConfigurationTableEditorFactory.UIChangeListener listener)
        Commits all UI values to the GUI variables and, thus, enacts the new configuration values.
        Parameters:
        listener - a change listener to notify about changed variables (may be null)
      • updateEditor

        public void updateEditor​(IDecisionVariable variable)
        Updates editors using variable that has recently been changed.
        Parameters:
        variable - the variable that has recently been changed
      • release

        public void release()
        Release the internal structures, in particular the mapping of variables and editor. This instance shall not be used afterwards.
      • add

        void add​(GUIVariable variable,
                 GUIEditor editor)
        Adds a mapping between a GUI variable and a GUI editor.
        Parameters:
        variable - the variable to be mapped
        editor - the editor
      • deconfigure

        public void deconfigure​(org.eclipse.swt.widgets.Control control)
        Deconfigures the given control.
        Parameters:
        control - the control to be deconfigured
      • notifyReplaced

        public void notifyReplaced​(Project oldModel,
                                   Project newModel)
        Description copied from interface: IModelListener
        Is called to notify that oldModel is replaced by newModel. The listener registrations for oldModel will be adjusted accordingly.
        Do not modify the the listeners of oldModel or newModel during this method.
        Specified by:
        notifyReplaced in interface IModelListener<Project>
        Parameters:
        oldModel - the old model being replaced
        newModel - the new model (the replacement)
      • getEditorFor

        public org.eclipse.swt.widgets.Control getEditorFor​(IDecisionVariable var)
        Returns the control (of the editor for) var.
        Parameters:
        var - the variable to search for
        Returns:
        the control (may be null if not found)