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.
public final class LutecePanelService<T extends LutecePanel> extends Object
PanelService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex(String strPanelKey)Get the index of a panel from its keyList<T>getPanels()Get the list of panels associated to this PanelService.static <T extends LutecePanel>
LutecePanelService<T>instance(Class<T> clazz)Get the instance of a PanelService for a given type.
-
-
-
Method Detail
-
instance
public static <T extends LutecePanel> LutecePanelService<T> instance(Class<T> clazz)
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
public int getIndex(String strPanelKey)
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.
-
-