ucar.unidata.ui
Interface PersistentObject.ManagerBean

Enclosing interface:
PersistentObject

public static interface PersistentObject.ManagerBean

ManagerBean

Version:
%I%, %G%
Author:
Unidata development team

Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Add PropertyChangeEvent listener.
 String getManagerName()
          get the name of this manager to put in a menu
 Class getPersistentObjectClass()
          Get the Class type of the objects managed; must implement Serializable, Cloneable
 PersistentObject getSelection()
          Get the currently selected object, of type getPersistentObjectClass()
 void removePropertyChangeListener(PropertyChangeListener l)
          Remove PropertyChangeEvent listener
 void setSelection(PersistentObject select)
          Set the currently selected thing: must be of type getPersistentObjectClass().
 void show()
          Popup the Manager Dialog
 void storePersistentData()
          Call this when you want to store the persistent data
 

Method Detail

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

void addPropertyChangeListener(PropertyChangeListener l)
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

void removePropertyChangeListener(PropertyChangeListener l)
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

void setSelection(PersistentObject select)
Set the currently selected thing: must be of type getPersistentObjectClass(). this does NOT fire a PropertyChangeEvent

Parameters:
select -