fr.paris.lutece.portal.service.panel
Class LutecePanelService<T extends LutecePanel>

java.lang.Object
  extended by 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
 int getIndex(String strPanelKey)
          Get the index of a panel from its key
 List<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

getPanels

public List<T> 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.


Copyright © 2014 Mairie de Paris. All Rights Reserved.