Class ValueCellEditor
- java.lang.Object
-
- org.eclipse.jface.viewers.CellEditor
-
- com._1c.g5.v8.dt.dcs.ui.valueeditors.ValueCellEditor
-
public class ValueCellEditor extends CellEditor
Value cell editor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor
CellEditor.LayoutData
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_EDITOR_ATTRIBUTE_EDITORCLASS
static String
VALUE_EDITOR_ATTRIBUTE_TYPENAME
static String
VALUE_EDITOR_EXTENSION_POINT_ID
-
Fields inherited from class org.eclipse.jface.viewers.CellEditor
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO
-
-
Constructor Summary
Constructors Constructor Description ValueCellEditor(org.eclipse.swt.widgets.Composite widget)
ConstructorValueCellEditor(org.eclipse.swt.widgets.Composite widget, IDcsListener listener)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(ColumnViewerEditorActivationEvent event)
protected org.eclipse.swt.widgets.Control
createControl(org.eclipse.swt.widgets.Composite parent)
protected void
deactivate(ColumnViewerEditorDeactivationEvent event)
void
disableFocusListener()
Disable focus listenerprotected Object
doGetValue()
protected void
doSetFocus()
protected void
doSetValue(Object value)
void
enableFocusListener()
Enable focus listenerboolean
init(Object data, TypeDescription type, Object value, IV8Project v8project, Version version, IBmEditingContext editingContext, boolean editable)
Initializationboolean
isValuesEquals(Object value1, Object value2)
Check values equals-
Methods inherited from class org.eclipse.jface.viewers.CellEditor
activate, addListener, addPropertyChangeListener, create, deactivate, dependsOnExternalFocusListener, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, focusLost, getControl, getDoubleClickTimeout, getErrorMessage, getLayoutData, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCorrect, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, keyReleaseOccured, markDirty, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, performUndo, removeListener, removePropertyChangeListener, setErrorMessage, setFocus, setStyle, setValidator, setValue, setValueValid, valueChanged
-
-
-
-
Field Detail
-
VALUE_EDITOR_EXTENSION_POINT_ID
public static final String VALUE_EDITOR_EXTENSION_POINT_ID
- See Also:
- Constant Field Values
-
VALUE_EDITOR_ATTRIBUTE_EDITORCLASS
public static final String VALUE_EDITOR_ATTRIBUTE_EDITORCLASS
- See Also:
- Constant Field Values
-
VALUE_EDITOR_ATTRIBUTE_TYPENAME
public static final String VALUE_EDITOR_ATTRIBUTE_TYPENAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValueCellEditor
public ValueCellEditor(org.eclipse.swt.widgets.Composite widget)
Constructor- Parameters:
widget
- - parent widget, can't benull
-
ValueCellEditor
public ValueCellEditor(org.eclipse.swt.widgets.Composite widget, IDcsListener listener)
Constructor- Parameters:
widget
- - parent widget, can't benull
listener
- for notify parent editor about changed value, can benull
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 benull
value
- - init value, can't benull
v8project
- - the V8 project, can't benull
version
- - version, can't benull
editingContext
- the BM editing context, can't benull
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 valuevalue2
- - second value- Returns:
- values is equals
-
enableFocusListener
public void enableFocusListener()
Enable focus listener
-
disableFocusListener
public void disableFocusListener()
Disable focus listener
-
activate
public void activate(ColumnViewerEditorActivationEvent event)
- Overrides:
activate
in classCellEditor
-
createControl
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createControl
in classCellEditor
-
deactivate
protected void deactivate(ColumnViewerEditorDeactivationEvent event)
- Overrides:
deactivate
in classCellEditor
-
doGetValue
protected Object doGetValue()
- Specified by:
doGetValue
in classCellEditor
-
doSetFocus
protected void doSetFocus()
- Specified by:
doSetFocus
in classCellEditor
-
doSetValue
protected void doSetValue(Object value)
- Specified by:
doSetValue
in classCellEditor
-
-