uk.ac.essex.common.action.impl
Class DefaultOptionsHandler

java.lang.Object
  extended by 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


Field Summary
protected  boolean modified
           
protected  java.util.prefs.Preferences preferences
           
 
Fields inherited from interface uk.ac.essex.common.action.OptionsHandler
NAME
 
Constructor Summary
DefaultOptionsHandler()
           
 
Method Summary
 javax.swing.JPanel getPreferencePanel()
          Gets all the panels this gui needs to set its preferences
 java.util.prefs.Preferences getPreferences()
          This class manages a viewers preferences so this preference object should be used to write preferences
 PreferenceObject readOptions()
           
 void saveOptions()
          Save the pref for this manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modified

protected boolean modified

preferences

protected java.util.prefs.Preferences preferences
Constructor Detail

DefaultOptionsHandler

public DefaultOptionsHandler()
Method Detail

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: