Package ucar.unidata.util
Class PreferenceList
java.lang.Object
ucar.unidata.util.PreferenceList
- Version:
- $Revision: 1.15 $ $Date: 2006/05/05 19:19:36 $
- Author:
- Metapps development team
-
Constructor Summary
ConstructorsConstructorDescription_more_PreferenceList
(List list) _more_PreferenceList
(List list, Object chosen, String listId, String chosenId, PersistentStore store) _more_ -
Method Summary
Modifier and TypeMethodDescriptioncreateComboBox
(String actionName, ActionListener listener) _more_createComboBox
(String actionName, ActionListener listener, boolean fireEventOnBoxAction) _more_void
This sets the currently chosen selection to the selected item of the given box.
-
Constructor Details
-
PreferenceList
public PreferenceList()_more_ -
PreferenceList
_more_- Parameters:
list
-
-
PreferenceList
public PreferenceList(List list, Object chosen, String listId, String chosenId, PersistentStore store) _more_- Parameters:
list
-chosen
-listId
-chosenId
-store
-
-
-
Method Details
-
createComboBox
_more_- Parameters:
actionName
-listener
-- Returns:
- _more_
-
createComboBox
public JComboBox createComboBox(String actionName, ActionListener listener, boolean fireEventOnBoxAction) _more_- Parameters:
actionName
-listener
-fireEventOnBoxAction
-- Returns:
- _more_
-
saveState
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
-
-