|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
bibliothek.extension.gui.dock.preference.editor.StringEditor
public class StringEditor
An editor used to edit Strings. This editor just shows a JTextField.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static PreferenceEditorFactory<String> |
FACTORY
a factory creating StringEditors |
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| 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 javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
StringEditor()
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
StringEditors
| Constructor Detail |
|---|
public StringEditor()
| Method Detail |
|---|
public void doOperation(PreferenceOperation operation)
PreferenceEditoroperation 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>nullpublic String getValue()
PreferenceEditorPreferenceEditorCallback.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>nullpublic void setCallback(PreferenceEditorCallback<String> callback)
PreferenceEditorPreferenceEditorCallback.set(Object)
whenever this editor shows a new valid value.
setCallback in interface PreferenceEditor<String>callback - the callback, might be nullpublic void setValue(String value)
PreferenceEditor
setValue in interface PreferenceEditor<String>value - the value, might be nullpublic void setValueInfo(Object information)
PreferenceEditorPreferenceEditor.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||