|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
V - the kind of object this callback has access topublic interface PreferenceEditorCallback<V>
A callback creates a link between a PreferenceEditor and its parent or the model.
Each callback handles one preference and one editor. The editor can ask its callback
to read or write a value from/to the model, or to show some buttons like
"reset value to default".
| Method Summary | |
|---|---|
V |
get()
Gets the value to which this callback has access to. |
PreferenceModel |
getModel()
Gets the model from which this callback takes its values. |
void |
set(V value)
Sets the value of this callback. |
void |
setOperation(PreferenceOperation operation,
boolean enabled)
Tells this callback that the editor knows how to perform operation. |
| Method Detail |
|---|
V get()
nullvoid set(V value)
value - the value, might be null
void setOperation(PreferenceOperation operation,
boolean enabled)
operation.
This method can be called anytime to inform this callback whether the editor
is currently ready to execute operation.
operation - the key of the actionenabled - whether the operation is available right nowPreferenceModel getModel()
null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||