E - enum typepublic class EnumCheckedProxyEditorProvider<E> extends java.lang.Object implements EditorProvider, java.beans.PropertyChangeListener
| Constructor and Description |
|---|
EnumCheckedProxyEditorProvider(javax.swing.ButtonGroup buttonGroup,
SwingEnumProperty<E> enumProperty,
EnumValue<E> onValue,
EditorProvider baseEditorProvider)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Get a description for the property used.
|
javax.swing.JComponent |
getEditor()
Get an component for editing .
|
javax.swing.JComponent |
getLabel()
Get a label component for this editor.
|
java.lang.String |
getLabelText()
Get the label text.
|
java.lang.String |
getTitleText()
Get a title text for this editor component.
|
java.lang.String |
getToolTipText()
Get a tool tip string for this editor component.
|
void |
goodBye()
Called when the editor provider is no longer used.
|
boolean |
isValidValue()
Is the value in the editor component valid?
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed.
|
void |
reset()
Reset the value in the editor to the basic value.
|
void |
save()
Set the basic value from the editor.
|
public EnumCheckedProxyEditorProvider(@NotNull javax.swing.ButtonGroup buttonGroup, @NotNull SwingEnumProperty<E> enumProperty, @NotNull EnumValue<E> onValue, @NotNull EditorProvider baseEditorProvider)
buttonGroup - button group for radio buttonsenumProperty - enum property holding the enum which toggles this proxyonValue - enum value which toggles this proxybaseEditorProvider - base editor providerpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerevt - A PropertyChangeEvent object describing the event source
and the property that has changed.@Nullable public java.lang.String getLabelText()
getLabelText in interface EditorProvider@Nullable public javax.swing.JComponent getLabel()
editor component
is inserted without a label.getLabel in interface EditorProvidernull@Nullable public java.lang.String getTitleText()
getTitleText in interface EditorProvidernull if a title makes no sense@Nullable public java.lang.String getToolTipText()
getToolTipText in interface EditorProvidernull if no tooltip is used@Nullable public java.lang.String getDescription()
getDescription in interface EditorProvider@NotNull public javax.swing.JComponent getEditor()
getEditor in interface EditorProviderpublic boolean isValidValue()
isValidValue in interface EditorProvidertrue if the value is validfalse otherwisepublic void reset()
reset in interface EditorProviderpublic void save()
save in interface EditorProviderpublic void goodBye()
goodBye in interface EditorProvider