Class TextGUICellEditor

  • All Implemented Interfaces:
    IRefreshableEditor, IUpdateProvider

    public class TextGUICellEditor
    extends org.eclipse.jface.viewers.TextCellEditor
    implements IUpdateProvider
    Implements an updating text cell editor.
    Author:
    Holger Eichelberger
    • Constructor Summary

      Constructors 
      Constructor Description
      TextGUICellEditor​(org.eclipse.swt.widgets.Composite parent, BasisGUIVariable variable)
      Creates a new text string cell editor parented under the given control.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      protected java.lang.Object doGetValue()
      The TextCellEditor implementation of this CellEditor framework method returns the text string.
      protected void doSetValue​(java.lang.Object value)  
      IDecisionVariable getVariable()
      Returns the underlying decision variable.
      void refresh()
      Refreshes the contents of the editor.
      void setUpdateListener​(IUpdateListener listener)
      Defines the update listener.
      • Methods inherited from class org.eclipse.jface.viewers.TextCellEditor

        createControl, dependsOnExternalFocusListener, doSetFocus, editOccured, getLayoutData, handleDefaultSelection, isCopyEnabled, isCutEnabled, isDeleteEnabled, isPasteEnabled, isSaveAllEnabled, isSelectAllEnabled, keyReleaseOccured, performCopy, performCut, performDelete, performPaste, performSelectAll
      • Methods inherited from class org.eclipse.jface.viewers.CellEditor

        activate, activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getDoubleClickTimeout, getErrorMessage, getStyle, getValidator, getValue, isActivated, isCorrect, isDirty, isFindEnabled, isRedoEnabled, isUndoEnabled, isValueValid, markDirty, performFind, performRedo, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CONVERTERS

        private static final java.util.Map<java.lang.Class<?>,​TextGUICellEditor.ValueConverter<?>> CONVERTERS
        Stores all value converters. Value converters aim at returning the same value type as it has been set on this UI object. Actually, it might be better to equip EASy with specific editors or, in case of tabbed values, on the internal editors rather than the EASy editors.
    • Constructor Detail

      • TextGUICellEditor

        public TextGUICellEditor​(org.eclipse.swt.widgets.Composite parent,
                                 BasisGUIVariable variable)
        Creates a new text string cell editor parented under the given control.
        Parameters:
        parent - the parent control
        variable - the variable this editor was created for
    • Method Detail

      • setUpdateListener

        public void setUpdateListener​(IUpdateListener listener)
        Description copied from interface: IUpdateProvider
        Defines the update listener. The update listener will be disposed automatically .
        Specified by:
        setUpdateListener in interface IUpdateProvider
        Parameters:
        listener - the update listener
      • doSetValue

        protected void doSetValue​(java.lang.Object value)
        Overrides:
        doSetValue in class org.eclipse.jface.viewers.TextCellEditor
      • doGetValue

        protected java.lang.Object doGetValue()
        The TextCellEditor implementation of this CellEditor framework method returns the text string.
        Overrides:
        doGetValue in class org.eclipse.jface.viewers.TextCellEditor
        Returns:
        the text string
      • dispose

        public void dispose()
        Overrides:
        dispose in class org.eclipse.jface.viewers.CellEditor