public class PanelGroupLoaderFromList extends Object implements IPanelGroupLoader, Serializable
Panel loader version that doesn't load the panels, only stores and returns them.
This loader is useful to mask the load of panels and eliminate the dependence to the extension points, and, consequently, the dependence between the libUIComponents project to other projects.
This loader is used together with PanelGroupLoaderUtilities
(allocated
in other project), that is which really loads the panels. First use PanelGroupLoaderUtilities
and after PanelGroupLoaderFromList
.
IPanelGroupLoader
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
PanelGroupLoaderFromList.ListCouldntLoadPanelFromListException
Exception produced when fails the load of a panel by a loader of type
PanelGroupLoaderFromList . |
Constructor and Description |
---|
PanelGroupLoaderFromList(Class<IPanel>[] list)
Initializes this loader with the panels.
|
Modifier and Type | Method and Description |
---|---|
void |
loadPanels(ArrayList<IPanel> panels)
Loads and returns all
AbstractPanel registered as an ExtensionPoint |
public void loadPanels(ArrayList<IPanel> panels) throws ListCouldntLoadPanelException
IPanelGroupLoader
Loads and returns all AbstractPanel
registered as an ExtensionPoint
loadPanels
in interface IPanelGroupLoader
panels
- array with the panels or null
if hasn't been registered any in that extension point, or that extension point didn't exitListCouldntLoadPanelException