public class PanelGroupLoaderFromList extends java.lang.Object implements IPanelGroupLoader, java.io.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 Form| Modifier 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(java.lang.Class<IPanel>[] list)
Initializes this loader with the panels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
loadPanels(java.util.ArrayList<IPanel> panels)
Loads and returns all
AbstractPanel registered as an ExtensionPoint |
public PanelGroupLoaderFromList(java.lang.Class<IPanel>[] list)
Initializes this loader with the panels.
list - array with the panels that this loader supposedly loadpublic void loadPanels(java.util.ArrayList<IPanel> panels) throws ListCouldntLoadPanelException
IPanelGroupLoaderLoads and returns all AbstractPanel registered as an ExtensionPoint
loadPanels in interface IPanelGroupLoaderpanels - array with the panels or null if hasn't been registered any in that extension point, or that extension point didn't exitListCouldntLoadPanelException