Class PanelGroupManager
- All Implemented Interfaces:
Serializable
Implemented to use the AbstractPanelGroup type desired.
This class allows having different implementations of AbstractPanelGroup
and only load in memory the class of some of them, whom have previously been imported to future use. Then, when
a graphical interface would need use a AbstractPanelGroup instance, will instance an object of the
class selected (set previously as default) of the registered types in this manager.
- Version:
- 18/10/2007
- Author:
- Pablo Piqueras Bartolomé (pablo.piqueras@iver.es)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidderegisterPanelGroup(Class panelGroup) Unregisters aAbstractPanelGroupclass type if it was previously registered.static PanelGroupManagerThe singletonPanelGroupManagerinstance.getPanelGroup(Object reference) Gets the defaultAbstractPanelGroupclass type.voidregisterPanelGroup(Class panelGroup) Registers a newAbstractPanelGroupclass type if it wasn't already done.voidsetDefaultType(Class panelGroup) Sets as default one of theAbstractPanelGroupclass type previously registered.
-
Constructor Details
-
PanelGroupManager
protected PanelGroupManager()Default constructor.
-
-
Method Details
-
getManager
The singleton
PanelGroupManagerinstance.- Returns:
- current manager used, or if didn't exist any, a new one
-
registerPanelGroup
Registers a new
AbstractPanelGroupclass type if it wasn't already done.- Parameters:
panelGroup- the newAbstractPanelGroupclass type to register- See Also:
-
deregisterPanelGroup
Unregisters a
AbstractPanelGroupclass type if it was previously registered.If the type to unregister is the default, sets default to
null.- Parameters:
panelGroup- theAbstractPanelGroupclass type to unregister- See Also:
-
setDefaultType
Sets as default one of the
AbstractPanelGroupclass type previously registered.- Parameters:
panelGroup- aAbstractPanelGroupclass type- See Also:
-
getPanelGroup
Gets the default
return the defaultAbstractPanelGroupclass type.AbstractPanelGroupclass type ornullif isn't any- Throws:
Exception- any exception produced loading theAbstractPanel- See Also:
-