edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils
Class OptionsStorage

java.lang.Object
  |
  +--edu.wpi.cs.dsrg.xmldb.xat.component.gui.utils.OptionsStorage

public class OptionsStorage
extends java.lang.Object

The OptionsStorage class stores all of the user's selected/deselected options in a HashMap. The map's key is a unique name for the options and the value is the option(s) (i.e. JCheckBoxes). Examples of options are:

Author:
Maylene Waltz

Constructor Summary
OptionsStorage()
          Constructor.
 
Method Summary
 java.lang.Object getOptions(java.lang.String key)
          Returns the options associated with the given key.
 void setOptions(java.lang.String key, java.lang.Object options)
          Puts the given key and the given options into the OptionsStorage HashMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionsStorage

public OptionsStorage()
Constructor.

Method Detail

getOptions

public java.lang.Object getOptions(java.lang.String key)
Returns the options associated with the given key.

Parameters:
key - the unique name for the options to retrieve
Returns:
the options associated with the given key

setOptions

public void setOptions(java.lang.String key,
                       java.lang.Object options)
Puts the given key and the given options into the OptionsStorage HashMap.

Parameters:
key - the unique name of the options to store
options - the actual options to store