Class CmsListResourceTypeIconAction

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

Displays an icon action for the resource type.

Since:
6.0.0
  • Constructor Details

  • Method Details

    • getHelpText

      public org.opencms.i18n.CmsMessageContainer getHelpText()
      Specified by:
      getHelpText in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
      Overrides:
      getHelpText in class org.opencms.workplace.tools.A_CmsHtmlIconButton
      See Also:
      • I_CmsHtmlIconButton.getHelpText()
    • getIconPath

      public String getIconPath()
      Specified by:
      getIconPath in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
      Overrides:
      getIconPath in class org.opencms.workplace.tools.A_CmsHtmlIconButton
      See Also:
      • A_CmsHtmlIconButton.getIconPath()
    • getName

      public org.opencms.i18n.CmsMessageContainer getName()
      Specified by:
      getName in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
      Overrides:
      getName in class org.opencms.workplace.tools.A_CmsHtmlIconButton
      See Also:
      • I_CmsHtmlIconButton.getName()
    • defButtonHtml

      protected String defButtonHtml(String id, String helpId, String name, String helpText, boolean enabled, String iconPath, String confirmationMessage, String onClick, boolean singleHelp)
      Description copied from class: CmsListExplorerDirectAction
      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.

      Overrides:
      defButtonHtml in class CmsListExplorerDirectAction
      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
      confirmationMessage - the confirmation message
      onClick - the js code to execute, if empty no link is generated
      singleHelp - if set, no helptext is written, you have to use the defaultHelpHtml() method later
      Returns:
      html code
      See Also: