Class LutecePanelService<T extends LutecePanel>

  • 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 java.lang.Object
    PanelService
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex​(java.lang.String strPanelKey)
      Get the index of a panel from its key
      java.util.List<T> getPanels()
      Get the list of panels associated to this PanelService.
      static <T extends LutecePanel>
      LutecePanelService<T>
      instance​(java.lang.Class<T> clazz)
      Get the instance of a PanelService for a given type.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • instance

        public static <T extends LutecePanel> LutecePanelService<T> instance​(java.lang.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​(java.lang.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 java.util.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.