public class SwingBooleanProperty extends AbstractBasicSimpleEditableChangeableItem implements Property<java.lang.Boolean>
Constructor and Description |
---|
SwingBooleanProperty(java.lang.String basicName,
java.lang.String baseTag,
boolean autoSave,
boolean value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JMenuItem |
createMenuItem(java.util.Locale l)
Create a menu item for this boolean property.
|
EditorProvider |
getEditorProvider(java.util.Locale l)
Get the editor components for editing this preference property.
|
java.lang.Boolean |
getValue()
Get the current value.
|
boolean |
isAutoSave()
Is auto save enabled?
|
void |
setValue(boolean value)
Set the value.
|
void |
setValue(java.lang.Boolean value)
Set the value.
|
getBaseTag, getLabelString, getMenuString, getName, getString
addValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeakly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeakly
getName
@NotNull public EditorProvider getEditorProvider(@Nullable java.util.Locale l)
getEditorProvider
in interface EditableProperty
l
- locale used for i18npublic boolean isAutoSave()
public java.lang.Boolean getValue()
public void setValue(@NotNull java.lang.Boolean value)
public void setValue(boolean value)
value
- new valuepublic javax.swing.JMenuItem createMenuItem(java.util.Locale l)
l
- locale