Class CmsListExplorerDirectAction

java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
All Implemented Interfaces:
I_CmsListAction, I_CmsListDirectAction, org.opencms.workplace.tools.I_CmsHtmlIconButton
Direct Known Subclasses:
CmsListResourceLockAction, CmsListResourceProjStateAction, CmsListResourceTypeIconAction

Displays a 16x16 icon from the explorer view in a list action.

Since:
6.0.0
  • Constructor Details

  • Method Details

    • buttonHtml

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

      public void setItem(CmsListItem item)
      Description copied from interface: I_CmsListDirectAction
      Sets the current item, should be called before the I_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace) method.

      Specified by:
      setItem in interface I_CmsListDirectAction
      Overrides:
      setItem in class CmsListDirectAction
      Parameters:
      item - the item
      See Also:
    • defButtonHtml

      protected String defButtonHtml(String id, String helpId, String name, String helpText, boolean enabled, String iconPath, String confirmationMessage, String onClick, boolean singleHelp)
      Generates a default html code where several buttons can have the same help text.

      the only diff to A_CmsHtmlIconButton.defaultButtonHtml(org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String) is that the icons are 16x16.

      Parameters:
      id - the id
      helpId - the id of the helptext div tag
      name - the name, if empty only the icon is displayed
      helpText - the help text, if empty no mouse events are generated
      enabled - if enabled or not, if not set be sure to take an according helptext
      iconPath - the path to the icon, if empty only the name is displayed
      onClick - the js code to execute, if empty no link is generated
      confirmationMessage - the confirmation message
      singleHelp - if set, no helptext is written, you have to use the defaultHelpHtml() method later
      Returns:
      html code
      See Also:
      • A_CmsHtmlIconButton.defaultButtonHtml(org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String)
    • getResourceUtil

      protected org.opencms.workplace.explorer.CmsResourceUtil getResourceUtil()
      Returns the current result Util.

      Returns:
      the current result Util