Class CmsListDropdownAction

java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
All Implemented Interfaces:
I_CmsListAction, org.opencms.workplace.tools.I_CmsHtmlIconButton

Independent action to switch the resource state filter.

Do not forget to add parameter evaluation code overwritting the A_CmsListDialog#getList() method, like in CmsProjectFilesDialog.

Since:
6.0.0
  • Field Details

  • Constructor Details

  • Method Details

    • addItem

      public void addItem(String id, org.opencms.i18n.CmsMessageContainer name)
      Adds an item to be displayed in the drop-down list.

      Parameters:
      id - the id of the item
      name - the display name
    • buttonHtml

      public String buttonHtml(org.opencms.workplace.CmsWorkplace wp)
      Specified by:
      buttonHtml in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
      Overrides:
      buttonHtml in class CmsListIndependentAction
      See Also:
      • I_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace)
    • getSelection

      public String getSelection()
      Returns the selected item.

      Returns:
      the selected item
    • setSelection

      public void setSelection(String selection)
      Sets the selected item.

      Parameters:
      selection - the selected item to set