|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A listener which is notified of significant events in the life of a cell editor.
This interface should be implemented by classes that wish to react to cell editor activity.
Note: the cell editor is not passed as a parameter to any of these methods; so the assumption is that the listener knows which cell editor is talking to it.
Method Summary | |
void |
applyEditorValue()
Notifies that the end user has requested applying a value. |
void |
cancelEditor()
Notifies that the end user has canceled editing. |
void |
editorValueChanged(boolean oldValidState,
boolean newValidState)
Notifies that the end user has changed the value in the cell editor. |
Method Detail |
public void applyEditorValue()
The normal reaction is to update the model with the current cell editor value. However, if the value is not valid, it should not be applied. A typical text-based cell editor would send this message when the end user hits Return, whereas other editors would send it whenever their value changes.
public void cancelEditor()
applyEditorValue
.
public void editorValueChanged(boolean oldValidState, boolean newValidState)
applyEditorValue
.
If the newValidState
parameter is true
,
the new value may be retrieved by calling ICellEditor.getValue
on the appropriate cell editor.
oldValidState
- the valid state before the end user changed the valuenewValidState
- the current valid state
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |