Package kiyut.citra.options
Class AbstractOptions
- java.lang.Object
-
- kiyut.citra.options.AbstractOptions
-
- All Implemented Interfaces:
Options
- Direct Known Subclasses:
CanvasOptions,MRUFilesOptions,RegistrationOptions
public abstract class AbstractOptions extends Object implements Options
Abstract Preferences Option. if nodeName is null, it will use DEFAULT_NODE_NAME It is using NbPreferences as the backing store.- Author:
- Kiyut
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_NODE_NAMEprotected EventListenerListlistenerListprotected StringnodeName
-
Constructor Summary
Constructors Constructor Description AbstractOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener listener)protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue)protected PreferencesgetPreferences()Return the backing store PreferencesvoidremovePropertyChangeListener(PropertyChangeListener listener)
-
-
-
Field Detail
-
DEFAULT_NODE_NAME
protected static String DEFAULT_NODE_NAME
-
nodeName
protected String nodeName
-
listenerList
protected EventListenerList listenerList
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Specified by:
addPropertyChangeListenerin interfaceOptions
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Specified by:
removePropertyChangeListenerin interfaceOptions
-
firePropertyChange
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
-
getPreferences
protected final Preferences getPreferences()
Return the backing store Preferences- Returns:
- Preferences
-
-