|
|||||||||
| 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.emf.ecp.view.internal.table.celleditor.rcp.BooleanCellEditor
public class BooleanCellEditor
Cell editor for boolean values.
| 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.spi.swt.table.ECPCellEditor |
|---|
CUSTOM_VARIANT |
| Constructor Summary | |
|---|---|
BooleanCellEditor(org.eclipse.swt.widgets.Composite parent)
A constructor which takes only a parent. |
|
| Method Summary | |
|---|---|
void |
activate()
|
void |
activate(org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent activationEvent)
|
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. |
| Methods inherited from class org.eclipse.jface.viewers.CellEditor |
|---|
addListener, addPropertyChangeListener, create, deactivate, dispose, getControl, getErrorMessage, getLayoutData, getStyle, getValidator, getValue, isActivated, isCopyEnabled, isCutEnabled, isDeleteEnabled, isDirty, isFindEnabled, isPasteEnabled, isRedoEnabled, isSelectAllEnabled, isUndoEnabled, isValueValid, performCopy, performCut, performDelete, performFind, performPaste, performRedo, performSelectAll, 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.spi.swt.table.ECPCellEditor |
|---|
getStyle |
| Constructor Detail |
|---|
public BooleanCellEditor(org.eclipse.swt.widgets.Composite parent)
parent - the Composite to use as a parent.| Method 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 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 for
ECPCellEditor.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 strategy
ECPCellEditor.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 strategy
ECPCellEditor.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 for
ECPCellEditor.getImage(java.lang.Object)public void activate()
activate in class org.eclipse.jface.viewers.CellEditorCheckboxCellEditor.activate()public void activate(org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent activationEvent)
activate in class org.eclipse.jface.viewers.CellEditorpublic int getMinWidth()
getMinWidth in interface ECPCellEditorECPCellEditor.getMinWidth()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||