Class ValueCellEditor


  • public class ValueCellEditor
    extends CellEditor
    Value cell editor
    • Constructor Detail

      • ValueCellEditor

        public ValueCellEditor​(org.eclipse.swt.widgets.Composite widget)
        Constructor
        Parameters:
        widget - - parent widget, can't be null
      • ValueCellEditor

        public ValueCellEditor​(org.eclipse.swt.widgets.Composite widget,
                               IDcsListener listener)
        Constructor
        Parameters:
        widget - - parent widget, can't be null
        listener - for notify parent editor about changed value, can be null if there is no editor
    • Method Detail

      • init

        public boolean init​(Object data,
                            TypeDescription type,
                            Object value,
                            IV8Project v8project,
                            Version version,
                            IBmEditingContext editingContext,
                            boolean editable)
        Initialization
        Parameters:
        type - - type, can't be null
        value - - init value, can't be null
        v8project - - the V8 project, can't be null
        version - - version, can't be null
        editingContext - the BM editing context, can't be null
        editable - the editable state, true if this cell is editable, false otherwise
        Returns:
        value editor is loaded
      • isValuesEquals

        public boolean isValuesEquals​(Object value1,
                                      Object value2)
        Check values equals
        Parameters:
        value1 - - first value
        value2 - - second value
        Returns:
        values is equals
      • enableFocusListener

        public void enableFocusListener()
        Enable focus listener
      • disableFocusListener

        public void disableFocusListener()
        Disable focus listener
      • createControl

        protected org.eclipse.swt.widgets.Control createControl​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createControl in class CellEditor