Class LutecePanelService<T extends LutecePanel>
java.lang.Object
fr.paris.lutece.portal.service.panel.LutecePanelService<T>
- Type Parameters:
T- Abstract type of panels to display. Every class extending the class T will create a panel.
PanelService
-
Method Summary
Modifier and TypeMethodDescriptionintGet the index of a panel from its keyGet the list of panels associated to this PanelService.static <T extends LutecePanel>
LutecePanelService<T>Get the instance of a PanelService for a given type.
-
Method Details
-
instance
Get the instance of a PanelService for a given type.- Type Parameters:
T- Specialized type of the PanelService- Parameters:
clazz- Class associated to the type A.- Returns:
- The instance of the PanelService with the generic type A. This instance is unique.
-
getIndex
Get the index of a panel from its key- Parameters:
strPanelKey- Key of the panel to get the index.- Returns:
- The index of the panel with the given key, or -1 if the panel could not be found.
-
getPanels
Get the list of panels associated to this PanelService. One panel is used for every class extending the class T.- Returns:
- The list of panels associated to this PanelService.
-