public final class SwingLookAndFeelPreferenceProperty extends AbstractBasicLocalizableChangeableItem implements StringListPreferenceProperty
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_LAF_NAME
Property key for the look and feel name.
|
PROPERTY_VALUE| Modifier and Type | Method and Description |
|---|---|
javax.swing.JMenuItem |
createMenuItem(java.util.Locale l)
Create a menu item for this boolean property.
|
javax.swing.UIManager.LookAndFeelInfo |
getCurrentLookAndFeelInfo()
Get the currently active LAF info.
|
static SwingLookAndFeelPreferenceProperty |
getInstance()
Get the only instance of the laf property.
|
java.util.Collection<java.lang.String> |
getStringList()
Get the collection of strings.
|
void |
readFrom(java.util.prefs.Preferences preferences)
Read the property value from the preferences.
|
void |
setLookAndFeel(java.lang.String name)
Set the look and feel.
|
void |
storeTo(java.util.prefs.Preferences preferences)
Store the current property value in the preferences.
|
getBaseTag, getLabelString, getMenuString, getName, getStringaddValueChangeListener, addValueChangeListenerWeakly, firePropertyChange, fireValueChange, fireValueChange, fireValueChange, getBasicName, getPropertyName, removeValueChangeListener, removeValueChangeListenerWeaklyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddValueChangeListener, addValueChangeListenerWeakly, removeValueChangeListener, removeValueChangeListenerWeaklypublic static final java.lang.String PROPERTY_LAF_NAME
@NotNull public static SwingLookAndFeelPreferenceProperty getInstance()
public java.util.Collection<java.lang.String> getStringList()
getStringList in interface StringListPreferencePropertypublic javax.swing.UIManager.LookAndFeelInfo getCurrentLookAndFeelInfo()
public void setLookAndFeel(@NotNull java.lang.String name)
name - name of look and feelpublic void readFrom(@NotNull java.util.prefs.Preferences preferences)
readFrom in interface PreferencePropertypreferences - preferences from where to read the property valuepublic void storeTo(@NotNull java.util.prefs.Preferences preferences)
storeTo in interface PreferencePropertypreferences - preferences where to store the property valuepublic javax.swing.JMenuItem createMenuItem(java.util.Locale l)
l - locale