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 Object
    PanelService
    • 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.