V - the kind of object this callback has access topublic interface PreferenceEditorCallback<V>
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".| Modifier and Type | Method and Description |
|---|---|
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. |
V get()
nullvoid set(V value)
value - the value, might be nullvoid 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()
nullCopyright © 2017 Docking Frames. All rights reserved.