|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JComboBox bibliothek.extension.gui.dock.preference.editor.ChoiceEditor
public class ChoiceEditor
An editor using a Choice
to let the user select one string-identifier.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComboBox |
---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static PreferenceEditorFactory<String> |
FACTORY
a factory creating new ChoiceEditor s |
Fields inherited from class javax.swing.JComboBox |
---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ChoiceEditor()
Creates a new editor. |
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. |
String |
getValue()
Gets the value of this editor. Note: editors should call PreferenceEditorCallback.set(Object)
when their value got edited by the user. |
void |
setCallback(PreferenceEditorCallback<String> callback)
Sets a callback, a callback can be used to read the value that has to be edited or to store the edited value. Note: this editor should call PreferenceEditorCallback.set(Object)
whenever this editor shows a new valid value. |
void |
setValue(String value)
Sets the current value of this editor. |
void |
setValueInfo(Object information)
Sets information about the value that is shown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PreferenceEditorFactory<String> FACTORY
ChoiceEditor
s
Constructor Detail |
---|
public ChoiceEditor()
Method Detail |
---|
public void setValueInfo(Object information)
PreferenceEditor
PreferenceEditor.setValue(Object)
. This method might be called with
a null
argument when the editor is no longer needed.
setValueInfo
in interface PreferenceEditor<String>
information
- the information, may be null
public void doOperation(PreferenceOperation operation)
PreferenceEditor
operation
or does
nothing if operation
is unknown.
doOperation
in interface PreferenceEditor<String>
operation
- the operation that was triggeredpublic Component getComponent()
PreferenceEditor
getComponent
in interface PreferenceEditor<String>
null
public String getValue()
PreferenceEditor
PreferenceEditorCallback.set(Object)
when their value got edited by the user. An editor should not expect
a call to this method.
getValue
in interface PreferenceEditor<String>
null
public void setCallback(PreferenceEditorCallback<String> callback)
PreferenceEditor
PreferenceEditorCallback.set(Object)
whenever this editor shows a new valid value.
setCallback
in interface PreferenceEditor<String>
callback
- the callback, might be null
public void setValue(String value)
PreferenceEditor
setValue
in interface PreferenceEditor<String>
value
- the value, might be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |