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

java.lang.Object
  extended by uk.ac.essex.common.action.impl.OptionsHandlerImpl
All Implemented Interfaces:
ActionHandler, OptionsHandler
Direct Known Subclasses:
GlobalOptionsHandler, IVOptionsHandler, OVOptionsHandler

public class OptionsHandlerImpl
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.
Date: 15-Jul-2002

See Also:
You should have received a copy of GNU public license with this code. If not please visit this site

Field Summary
protected  boolean modified
           
protected  PreferencePanel preferencePanel
           
protected  java.util.prefs.Preferences preferences
           
 
Fields inherited from interface uk.ac.essex.common.action.OptionsHandler
NAME
 
Constructor Summary
OptionsHandlerImpl()
           
 
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

preferencePanel

protected PreferencePanel preferencePanel

modified

protected boolean modified

preferences

protected java.util.prefs.Preferences preferences
Constructor Detail

OptionsHandlerImpl

public OptionsHandlerImpl()
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: