|
||||||||||
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.AbstractButton javax.swing.JToggleButton javax.swing.JCheckBox bibliothek.extension.gui.dock.preference.editor.BooleanEditor
public class BooleanEditor
An editor intended to be used for Path.TYPE_BOOLEAN_PATH
. This editor just shows a JCheckBox
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JCheckBox |
---|
JCheckBox.AccessibleJCheckBox |
Nested classes/interfaces inherited from class javax.swing.JToggleButton |
---|
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
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<Boolean> |
FACTORY
A factory creating BooleanEditor s. |
Fields inherited from class javax.swing.JCheckBox |
---|
BORDER_PAINTED_FLAT_CHANGED_PROPERTY |
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 | |
---|---|
BooleanEditor()
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. |
Boolean |
getValue()
Gets the value of this editor. |
void |
setCallback(PreferenceEditorCallback<Boolean> 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(Boolean value)
Sets the current value of this editor. |
void |
setValueInfo(Object information)
Sets information about the value that is shown. |
Methods inherited from class javax.swing.JCheckBox |
---|
configurePropertiesFromAction, createActionPropertyChangeListener, getAccessibleContext, getUIClassID, isBorderPaintedFlat, paramString, setBorderPaintedFlat, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PreferenceEditorFactory<Boolean> FACTORY
BooleanEditor
s.
Constructor Detail |
---|
public BooleanEditor()
Method Detail |
---|
public void doOperation(PreferenceOperation operation)
PreferenceEditor
operation
or does
nothing if operation
is unknown.
doOperation
in interface PreferenceEditor<Boolean>
operation
- the operation that was triggeredpublic Component getComponent()
PreferenceEditor
getComponent
in interface PreferenceEditor<Boolean>
null
public Boolean 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<Boolean>
null
public void setCallback(PreferenceEditorCallback<Boolean> callback)
PreferenceEditor
PreferenceEditorCallback.set(Object)
whenever this editor shows a new valid value.
setCallback
in interface PreferenceEditor<Boolean>
callback
- the callback, might be null
public void setValue(Boolean value)
PreferenceEditor
setValue
in interface PreferenceEditor<Boolean>
value
- the value, might be null
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<Boolean>
information
- the information, may be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |