|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.viewers.CellEditor
org.eclipse.jface.viewers.TextCellEditor
org.eclipse.emf.ecp.edit.internal.swt.table.NumberCellEditor
public class NumberCellEditor
A number cell Editor which displays numbers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor |
---|
org.eclipse.jface.viewers.CellEditor.LayoutData |
Field Summary |
---|
Fields inherited from class org.eclipse.jface.viewers.CellEditor |
---|
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO |
Fields inherited from interface org.eclipse.emf.ecp.edit.internal.swt.util.ECPCellEditor |
---|
CUSTOM_VARIANT |
Constructor Summary | |
---|---|
NumberCellEditor(org.eclipse.swt.widgets.Composite parent)
The constructor which only takes a parent composite. |
|
NumberCellEditor(org.eclipse.swt.widgets.Composite parent,
int style)
A constructor which takes a parent and the style to use, the style is ignored by this cell editor. |
Method Summary | |
---|---|
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.core.databinding.UpdateValueStrategy |
getModelToTargetStrategy()
|
org.eclipse.core.databinding.UpdateValueStrategy |
getTargetToModelStrategy()
|
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 eStructuralFeature,
ViewModelContext viewModelContext)
Instantiates this cell editor. |
void |
setEditable(boolean editable)
|
Methods inherited from class org.eclipse.jface.viewers.TextCellEditor |
---|
getLayoutData, isCopyEnabled, isCutEnabled, isDeleteEnabled, isPasteEnabled, isSaveAllEnabled, isSelectAllEnabled, performCopy, performCut, performDelete, performPaste, performSelectAll |
Methods inherited from class org.eclipse.jface.viewers.CellEditor |
---|
activate, activate, addListener, addPropertyChangeListener, create, deactivate, dispose, getControl, getErrorMessage, getStyle, getValidator, getValue, isActivated, isDirty, isFindEnabled, isRedoEnabled, isUndoEnabled, isValueValid, performFind, performRedo, performUndo, removeListener, removePropertyChangeListener, setFocus, setStyle, setValidator, setValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.ecp.edit.internal.swt.util.ECPCellEditor |
---|
getStyle |
Constructor Detail |
---|
public NumberCellEditor(org.eclipse.swt.widgets.Composite parent)
parent
- the Composite
to use as a parent.public NumberCellEditor(org.eclipse.swt.widgets.Composite parent, int style)
parent
- the Composite
to use as a parentstyle
- the SWT style to setMethod Detail |
---|
public 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 ECPCellEditor
IValueProperty
for this cell editorECPCellEditor.getValueProperty()
public void instantiate(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ViewModelContext viewModelContext)
ViewModelServices
.
instantiate
in interface ECPCellEditor
eStructuralFeature
- 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 ECPCellEditor
value
- the Object to get the formated String for
ECPCellEditor.getFormatedString(java.lang.Object)
public int getColumnWidthWeight()
getColumnWidthWeight
in interface ECPCellEditor
ECPCellEditor.getColumnWidthWeight()
public org.eclipse.core.databinding.UpdateValueStrategy getTargetToModelStrategy()
getTargetToModelStrategy
in interface ECPCellEditor
ECPCellEditor.getTargetToModelStrategy()
public org.eclipse.core.databinding.UpdateValueStrategy getModelToTargetStrategy()
getModelToTargetStrategy
in interface ECPCellEditor
ECPCellEditor.getModelToTargetStrategy()
public void setEditable(boolean editable)
setEditable
in interface ECPCellEditor
ECPCellEditor.setEditable(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |