Package ucar.unidata.ui
Interface PersistentObject.ManagerBean
- Enclosing interface:
PersistentObject
public static interface PersistentObject.ManagerBean
ManagerBean
- Version:
- %I%, %G%
- Author:
- Unidata development team
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add PropertyChangeEvent listener.get the name of this manager to put in a menuGet the Class type of the objects managed; must implement Serializable, CloneableGet the currently selected object, of type getPersistentObjectClass()void
Remove PropertyChangeEvent listenervoid
setSelection
(PersistentObject select) Set the currently selected thing: must be of type getPersistentObjectClass().void
show()
Popup the Manager Dialogvoid
Call this when you want to store the persistent data
-
Method Details
-
getManagerName
String getManagerName()get the name of this manager to put in a menu -
getPersistentObjectClass
Class getPersistentObjectClass()Get the Class type of the objects managed; must implement Serializable, Cloneable- Returns:
- _more_
-
addPropertyChangeListener
Add PropertyChangeEvent listener. PropertyChangeEvent is fired when the currently selected object is changed. It is not fired upon startup/ initialization (use getSelection() if needed at startup). The event passes the new selected object in e.getNewValue(), and optionally the old value in e.getOldValue(). e.getPropertyName() by convention returns the name of the class of the object. The listener must NOT CHANGE this object (but may clone it).- Parameters:
l
-
-
removePropertyChangeListener
Remove PropertyChangeEvent listener- Parameters:
l
-
-
show
void show()Popup the Manager Dialog -
storePersistentData
void storePersistentData()Call this when you want to store the persistent data -
getSelection
PersistentObject getSelection()Get the currently selected object, of type getPersistentObjectClass()- Returns:
- _more_
-
setSelection
Set the currently selected thing: must be of type getPersistentObjectClass(). this does NOT fire a PropertyChangeEvent- Parameters:
select
-
-