Class CmsRestoreStateAction

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

Show different states depending on the name of the resource.

  • Constructor Details

    • CmsRestoreStateAction

      public CmsRestoreStateAction(String id, org.opencms.file.CmsObject cms)
      Default constructor.

      Parameters:
      id - the id of the action
      cms - the cms context
  • Method Details

    • getCms

      public org.opencms.file.CmsObject getCms()
      Returns the cms context.

      Returns:
      the cms context
    • getResource

      public String getResource()
      Returns the resource.

      Returns:
      the resource
    • isVisible

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

      public void setResource(String resource)
      Sets the resource.

      Parameters:
      resource - the resource to set