|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.genuine.organizer.internal.ComponentInstanceManager
For each component declared in a configuration file, there is an object of this class that handles the creation of the component instance(s). Depending on the configuration data, either there is only a single component instance or there may be multiple component instances. For each component instance, a status manager object handles the status of the instance.
Constructor Summary | |
ComponentInstanceManager(javax.swing.JFrame mainFrame,
javax.swing.JDesktopPane desktopPane,
FrameLocator frameLocator,
Module module,
org.jdom.Element componentElement)
Takes references to helper objects that are passed later on to status manager objects and a reference to the XML element that defines the component. |
Method Summary | |
void |
addComponentListener(java.lang.String instanceId,
ComponentListener listener)
Adds a listener for a component so that the listener is notified when the component is shown/hidden, activated/deactivated. |
void |
changeComponentTitle(java.lang.String instanceId,
java.lang.String title)
Changes the title of the component |
void |
hideComponent(java.lang.String instanceId)
Hides the visual component. |
void |
postInitialize()
Post initilization. |
void |
removeComponentListener(java.lang.String instanceId,
ComponentListener listener)
Removes a listener from a component. |
void |
setDefaultButton(java.lang.String instanceId,
GenuineButton button)
Sets the given button as default button of the frame into which the component is embedded |
void |
showComponent()
Shows a visual component. |
void |
showComponent(java.lang.String instanceId)
Shows the visual component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentInstanceManager(javax.swing.JFrame mainFrame, javax.swing.JDesktopPane desktopPane, FrameLocator frameLocator, Module module, org.jdom.Element componentElement) throws ConfigurationException
Method Detail |
public void postInitialize() throws ConfigurationException
ConfigurationException
public void showComponent()
public void showComponent(java.lang.String instanceId)
public void hideComponent(java.lang.String instanceId)
public void changeComponentTitle(java.lang.String instanceId, java.lang.String title)
public void setDefaultButton(java.lang.String instanceId, GenuineButton button)
public void addComponentListener(java.lang.String instanceId, ComponentListener listener)
public void removeComponentListener(java.lang.String instanceId, ComponentListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |