public class StringCellEditor extends org.eclipse.jface.viewers.TextCellEditor implements ECPCellEditor
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDOCUSTOM_VARIANT| Constructor and Description |
|---|
StringCellEditor()
Default constructor.
|
StringCellEditor(org.eclipse.swt.widgets.Composite parent)
A constructor which takes only a parent.
|
StringCellEditor(org.eclipse.swt.widgets.Composite parent,
int style)
A constructor which takes the parent and the style.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnWidthWeight()
The returned value is used for layouting the table columns.
|
String |
getFormatedString(Object value)
This returns the String which will be shown in the table when no cell editor is open.
|
org.eclipse.swt.graphics.Image |
getImage(Object value)
This returns the Image which will be shown in the table when no cell editor is open.
|
int |
getMinWidth()
Returns the minimum width of the cell editor.
|
org.eclipse.core.databinding.UpdateValueStrategy |
getModelToTargetStrategy(org.eclipse.core.databinding.DataBindingContext databindingContext)
This
UpdateValueStrategy will be used as the model to target strategy during data binding. |
org.eclipse.core.databinding.UpdateValueStrategy |
getTargetToModelStrategy(org.eclipse.core.databinding.DataBindingContext databindingContext)
This
UpdateValueStrategy will be used as the target to model strategy during data binding. |
org.eclipse.core.databinding.property.value.IValueProperty |
getValueProperty()
Returns the
IValueProperty for this cell editor which is used by the table to create an
IObservableValue. |
void |
instantiate(org.eclipse.emf.ecore.EStructuralFeature feature,
ViewModelContext viewModelContext)
Instantiates this cell editor.
|
void |
setEditable(boolean editable)
Sets editable state of the cell editor.
|
createControl, dependsOnExternalFocusListener, doGetValue, doSetFocus, doSetValue, editOccured, getLayoutData, handleDefaultSelection, isCopyEnabled, isCutEnabled, isDeleteEnabled, isPasteEnabled, isSaveAllEnabled, isSelectAllEnabled, keyReleaseOccured, performCopy, performCut, performDelete, performPaste, performSelectAllactivate, activate, addListener, addPropertyChangeListener, create, deactivate, deactivate, dispose, 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, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStylepublic StringCellEditor()
public StringCellEditor(org.eclipse.swt.widgets.Composite parent)
parent - the Composite to use as a parent.public StringCellEditor(org.eclipse.swt.widgets.Composite parent,
int style)
parent - the Composite to use as a parentstyle - the Style to setpublic org.eclipse.core.databinding.property.value.IValueProperty getValueProperty()
IValueProperty for this cell editor which is used by the table to create an
IObservableValue.getValueProperty in interface ECPCellEditorIValueProperty for this cell editorECPCellEditor.getValueProperty()public void instantiate(org.eclipse.emf.ecore.EStructuralFeature feature,
ViewModelContext viewModelContext)
ViewModelServices.instantiate in interface ECPCellEditorfeature - the EStructuralFeature displayed in this cell editorviewModelContext - the ViewModelContext used for the current viewECPCellEditor.instantiate(org.eclipse.emf.ecore.EStructuralFeature,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)public String getFormatedString(Object value)
getFormatedString in interface ECPCellEditorvalue - the Object to get the formated String forECPCellEditor.getFormatedString(java.lang.Object)public int getColumnWidthWeight()
getColumnWidthWeight in interface ECPCellEditorECPCellEditor.getColumnWidthWeight()public org.eclipse.core.databinding.UpdateValueStrategy getTargetToModelStrategy(org.eclipse.core.databinding.DataBindingContext databindingContext)
UpdateValueStrategy will be used as the target to model strategy during data binding.getTargetToModelStrategy in interface ECPCellEditordatabindingContext - The DataBindingContext used by this strategyECPCellEditor.getTargetToModelStrategy(org.eclipse.core.databinding.DataBindingContext)public org.eclipse.core.databinding.UpdateValueStrategy getModelToTargetStrategy(org.eclipse.core.databinding.DataBindingContext databindingContext)
UpdateValueStrategy will be used as the model to target strategy during data binding.getModelToTargetStrategy in interface ECPCellEditordatabindingContext - The DataBindingContext used by this strategyECPCellEditor.getModelToTargetStrategy(org.eclipse.core.databinding.DataBindingContext)public void setEditable(boolean editable)
setEditable in interface ECPCellEditoreditable - true if editable, false otherwiseECPCellEditor.setEditable(boolean)public org.eclipse.swt.graphics.Image getImage(Object value)
getImage in interface ECPCellEditorvalue - the Object to get the Image forECPCellEditor.getImage(java.lang.Object)public int getMinWidth()
getMinWidth in interface ECPCellEditorECPCellEditor.getMinWidth()Copyright © 2016. All rights reserved.