|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
V
- the kind of value this editor editspublic interface PreferenceEditor<V>
An editor for some value.
Method Summary | |
---|---|
void |
doOperation(PreferenceOperation operation)
Executes the operation that matches operation or does
nothing if operation is unknown. |
Component |
getComponent()
Gets a component which displays the contents of this editor. |
V |
getValue()
Gets the value of this editor. |
void |
setCallback(PreferenceEditorCallback<V> callback)
Sets a callback, a callback can be used to read the value that has to be edited or to store the edited value. |
void |
setValue(V value)
Sets the current value of this editor |
void |
setValueInfo(Object information)
Sets information about the value that is shown. |
Method Detail |
---|
Component getComponent()
null
void setCallback(PreferenceEditorCallback<V> callback)
PreferenceEditorCallback.set(Object)
whenever this editor shows a new valid value.
callback
- the callback, might be null
void setValueInfo(Object information)
setValue(Object)
. This method might be called with
a null
argument when the editor is no longer needed.
information
- the information, may be null
void setValue(V value)
value
- the value, might be null
V getValue()
PreferenceEditorCallback.set(Object)
when they show a new valid value. They should not await a call to this
method (which may never come).
null
void doOperation(PreferenceOperation operation)
operation
or does
nothing if operation
is unknown.
operation
- the operation that was triggered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |