Class PortletPanelAppAdapter

java.lang.Object
com.liferay.application.list.BasePanelApp
com.liferay.application.list.adapter.PortletPanelAppAdapter
All Implemented Interfaces:
PanelApp, PanelEntry

public class PortletPanelAppAdapter extends BasePanelApp
  • Constructor Details

    • PortletPanelAppAdapter

      public PortletPanelAppAdapter(String portletId, Supplier<com.liferay.portal.kernel.model.Portlet> supplier)
  • Method Details

    • getKey

      public String getKey()
      Description copied from interface: PanelEntry
      Returns the panel entry's key.
      Specified by:
      getKey in interface PanelEntry
      Overrides:
      getKey in class BasePanelApp
      Returns:
      the panel entry's key
    • getLabel

      public String getLabel(Locale locale)
      Description copied from interface: PanelEntry
      Returns the label that is displayed in the user interface when the panel entry is included.
      Specified by:
      getLabel in interface PanelEntry
      Overrides:
      getLabel in class BasePanelApp
      Parameters:
      locale - the label's retrieved locale
      Returns:
      the label of the panel entry
    • getPortlet

      public com.liferay.portal.kernel.model.Portlet getPortlet()
      Description copied from interface: PanelApp
      Returns the portlet associated with the application.
      Returns:
      the portlet associated with the application
    • getPortletId

      public String getPortletId()
      Description copied from interface: PanelApp
      Returns the portlet's ID associated with the application.
      Returns:
      the portlet's ID associated with the application