public class SimplePreferenceGroup extends java.lang.Object implements PreferenceProperty
PROPERTY_VALUE| Constructor and Description |
|---|
SimplePreferenceGroup(java.util.List<PreferenceProperty> properties)
Constructor.
|
SimplePreferenceGroup(PreferenceProperty... properties)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValueChangeListener(java.beans.PropertyChangeListener listener)
Add a listener which will be called for all value changes.
|
void |
addValueChangeListenerWeakly(java.beans.PropertyChangeListener listener)
Add a listener which will be called for all value changes.
|
void |
readFrom(java.util.prefs.Preferences preferences)
Read the property value from the preferences.
|
void |
removeValueChangeListener(java.beans.PropertyChangeListener listener)
Remove a listener which will be called for all value changes.
|
void |
removeValueChangeListenerWeakly(java.beans.PropertyChangeListener listener)
Remove a weakly referenced listener which will be called for all value changes.
|
void |
storeTo(java.util.prefs.Preferences preferences)
Store the current property value in the preferences.
|
public SimplePreferenceGroup(@NotNull java.util.List<PreferenceProperty> properties)
properties - preference properties in this grouppublic SimplePreferenceGroup(PreferenceProperty... properties)
properties - prefepublic void addValueChangeListener(@NotNull java.beans.PropertyChangeListener listener)
addValueChangeListener in interface ChangeableItemlistener - value change listener to addpublic void removeValueChangeListener(@NotNull java.beans.PropertyChangeListener listener)
removeValueChangeListener in interface ChangeableItemlistener - value change listener to removepublic 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 void addValueChangeListenerWeakly(@NotNull java.beans.PropertyChangeListener listener)
If you want to remove the listener please use the corresponding
removeValueChangeListenerWeakly(PropertyChangeListener)
method.
addValueChangeListenerWeakly in interface ChangeableItemlistener - value change listener to addaddValueChangeListener(PropertyChangeListener)public void removeValueChangeListenerWeakly(@NotNull java.beans.PropertyChangeListener listener)
removeValueChangeListenerWeakly in interface ChangeableItemlistener - value change listener to removeremoveValueChangeListener(PropertyChangeListener)