uk.ac.essex.common.action.impl
Class DefaultOptionsHandler
java.lang.Object
uk.ac.essex.common.action.impl.DefaultOptionsHandler
- All Implemented Interfaces:
- ActionHandler, OptionsHandler
public class DefaultOptionsHandler
- extends java.lang.Object
- implements OptionsHandler
An pref handler looks after any available pref for a GUI application. This means providing access
to a gui to allow users to update pref. These must then be stored somehow. This could either be through
the new Java 1.4 Preferences API, or some custom method. This implementation makes use of java
Preferences
.
Date: 15-Jul-2002
- See Also:
You should have received a copy of Lesser GNU public license with this code.
If not please visit this site
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modified
protected boolean modified
preferences
protected java.util.prefs.Preferences preferences
DefaultOptionsHandler
public DefaultOptionsHandler()
getPreferencePanel
public javax.swing.JPanel getPreferencePanel()
- Gets all the panels this gui needs to set its preferences
- Specified by:
getPreferencePanel
in interface OptionsHandler
- Returns:
getPreferences
public java.util.prefs.Preferences getPreferences()
- This class manages a viewers preferences so this preference object should be used to
write preferences
- Specified by:
getPreferences
in interface OptionsHandler
- Returns:
saveOptions
public void saveOptions()
- Save the pref for this manager
- Specified by:
saveOptions
in interface OptionsHandler
readOptions
public PreferenceObject readOptions()
- Specified by:
readOptions
in interface OptionsHandler
- Returns: