|
||||||||||
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
de.cau.cs.kieler.sim.kiem.properties.EditableDialogCellEditor
public abstract class EditableDialogCellEditor
En editable DialogCell editor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.viewers.CellEditor |
---|
CellEditor.LayoutData |
Field Summary | |
---|---|
static String |
CELL_EDITOR_IMG_DOTS_BUTTON
Image registry key for three dot image (value "cell_editor_dots_button_image" ). |
Fields inherited from class org.eclipse.jface.viewers.TextCellEditor |
---|
text |
Fields inherited from class org.eclipse.jface.viewers.CellEditor |
---|
COPY, CUT, DELETE, FIND, PASTE, REDO, SELECT_ALL, UNDO |
Constructor Summary | |
---|---|
|
EditableDialogCellEditor(boolean isEditableParam)
Creates a new dialog cell editor with no control. |
protected |
EditableDialogCellEditor(Composite parent,
boolean isEditableParam)
Creates a new dialog cell editor parented under the given control. |
protected |
EditableDialogCellEditor(Composite parent,
int style,
boolean isEditableParam)
Creates a new dialog cell editor parented under the given control. |
Method Summary | |
---|---|
protected Button |
createButton(Composite parent)
Creates the button for this cell editor under the given parent control. |
protected Control |
createControl(Composite parent)
|
void |
deactivate()
|
protected Object |
doGetValue()
|
protected void |
doSetFocus()
|
protected void |
doSetValue(Object valueParam)
|
protected void |
focusLost()
Processes a focus lost event that occurred in this cell editor. |
boolean |
isEditable()
Checks whether editable is true. |
protected abstract Object |
openDialogBox(Control cellEditorWindow)
Opens a dialog box under the given parent control and returns the dialog's value when it closes, or null if the dialog was
canceled or no selection was made in the dialog. |
void |
setEditable(boolean isEditableParam)
Sets the editable flag. |
protected void |
updateContents(Object valueParam)
Updates the controls showing the value of this cell editor. |
Methods inherited from class org.eclipse.jface.viewers.TextCellEditor |
---|
dependsOnExternalFocusListener, editOccured, getLayoutData, handleDefaultSelection, isCopyEnabled, isCutEnabled, isDeleteEnabled, isPasteEnabled, isSaveAllEnabled, isSelectAllEnabled, keyReleaseOccured, performCopy, performCut, performDelete, performPaste, performSelectAll |
Methods inherited from class org.eclipse.jface.viewers.CellEditor |
---|
activate, activate, addListener, addPropertyChangeListener, create, deactivate, dispose, fireApplyEditorValue, fireCancelEditor, fireEditorValueChanged, fireEnablementChanged, 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, valueChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CELL_EDITOR_IMG_DOTS_BUTTON
"cell_editor_dots_button_image"
).
Constructor Detail |
---|
public EditableDialogCellEditor(boolean isEditableParam)
isEditableParam
- the isEditable parameterprotected EditableDialogCellEditor(Composite parent, boolean isEditableParam)
null
initially, and has no validator.
parent
- the parent controlisEditableParam
- the isEditable parameterprotected EditableDialogCellEditor(Composite parent, int style, boolean isEditableParam)
null
initially, and has no validator.
parent
- the parent controlstyle
- the style bitsisEditableParam
- the isEditable parameterMethod Detail |
---|
public boolean isEditable()
public void setEditable(boolean isEditableParam)
isEditableParam
- the new editable flagprotected Button createButton(Composite parent)
The default implementation of this framework method creates the button display on the right hand side of the dialog cell editor. Subclasses may extend or reimplement.
parent
- the parent control
protected Control createControl(Composite parent)
createControl
in class TextCellEditor
public void deactivate()
deactivate
in class CellEditor
protected Object doGetValue()
doGetValue
in class TextCellEditor
protected void doSetFocus()
doSetFocus
in class TextCellEditor
protected void doSetValue(Object valueParam)
doSetValue
in class TextCellEditor
protected void focusLost()
The default implementation of this framework method applies the current value and deactivates the cell editor. Subclasses should call this method at appropriate times. Subclasses may also extend or reimplement.
focusLost
in class CellEditor
protected abstract Object openDialogBox(Control cellEditorWindow)
null
if the dialog was
canceled or no selection was made in the dialog.
This framework method must be implemented by concrete subclasses. It is called when the user has pressed the button and the dialog box must pop up.
cellEditorWindow
- the parent control cell editor's window so that a
subclass can adjust the dialog box accordingly
null
if the dialog was
canceled or no selection was made in the dialogprotected void updateContents(Object valueParam)
The default implementation of this framework method just converts the
passed object to a string using toString
and sets this as
the text of the label widget.
Subclasses may reimplement. If you reimplement this method, you should
also reimplement createContents
.
valueParam
- the new value of this cell editor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |