ucar.unidata.util
Class PreferenceList

java.lang.Object
  extended by ucar.unidata.util.PreferenceList

public class PreferenceList
extends Object

Version:
$Revision: 1.15 $ $Date: 2006/05/05 19:19:36 $
Author:
Metapps development team

Constructor Summary
PreferenceList()
          _more_
PreferenceList(List list)
          _more_
PreferenceList(List list, Object chosen, String listId, String chosenId, PersistentStore store)
          _more_
 
Method Summary
 JComboBox createComboBox(String actionName, ActionListener listener)
          _more_
 JComboBox createComboBox(String actionName, ActionListener listener, boolean fireEventOnBoxAction)
          _more_
 void saveState(JComboBox box)
          This sets the currently chosen selection to the selected item of the given box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferenceList

public PreferenceList()
_more_


PreferenceList

public PreferenceList(List list)
_more_

Parameters:
list -

PreferenceList

public PreferenceList(List list,
                      Object chosen,
                      String listId,
                      String chosenId,
                      PersistentStore store)
_more_

Parameters:
list -
chosen -
listId -
chosenId -
store -
Method Detail

createComboBox

public JComboBox createComboBox(String actionName,
                                ActionListener listener)
_more_

Parameters:
actionName -
listener -
Returns:
_more_

createComboBox

public JComboBox createComboBox(String actionName,
                                ActionListener listener,
                                boolean fireEventOnBoxAction)
_more_

Parameters:
actionName -
listener -
fireEventOnBoxAction -
Returns:
_more_

saveState

public void saveState(JComboBox box)
This sets the currently chosen selection to the selected item of the given box. It then checks to see if the selected item is in the list held by the box. If not it adds it to the list. It then writes out the chosen and the list to the object store if changed.

Parameters:
box -