Class CmsListOpenResourceAction

All Implemented Interfaces:
I_CmsListAction, I_CmsListDirectAction, org.opencms.workplace.tools.I_CmsHtmlIconButton

Opens the selected resource in a new window.

Since:
6.0.0
  • Constructor Details

    • CmsListOpenResourceAction

      public CmsListOpenResourceAction(String id, String resColumnPathId)
      Default Constructor.

      Parameters:
      id - the unique id
      resColumnPathId - the id of the column with the resource root path
  • 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()
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.opencms.workplace.tools.I_CmsHtmlIconButton
      Overrides:
      isEnabled in class org.opencms.workplace.tools.A_CmsHtmlIconButton
      See Also:
      • I_CmsHtmlIconButton.isEnabled()
    • jsCode

      public String jsCode()
      Description copied from class: A_CmsListDefaultJsAction
      The js code to execute.

      Specified by:
      jsCode in class A_CmsListDefaultJsAction
      Returns:
      js code to execute
      See Also:
    • getResourceName

      protected String getResourceName()
      Returns the most possible right resource name.

      Returns:
      the most possible right resource name