org.opencms.workplace.commons
Class CmsRestoreStateAction

java.lang.Object
  extended by org.opencms.workplace.tools.A_CmsHtmlIconButton
      extended by org.opencms.workplace.list.A_CmsListAction
          extended by org.opencms.workplace.list.CmsListDirectAction
              extended by org.opencms.workplace.list.CmsListDefaultAction
                  extended by org.opencms.workplace.commons.CmsRestoreStateAction
All Implemented Interfaces:
I_CmsListAction, I_CmsListDirectAction, I_CmsHtmlIconButton

public class CmsRestoreStateAction
extends CmsListDefaultAction

Show different states depending on the name of the resource.

Version:
$Revision: 1.6 $
Author:
Peter Bonrad

Field Summary
 
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id
 
Constructor Summary
CmsRestoreStateAction(java.lang.String id, CmsObject cms)
          Default constructor.
 
Method Summary
 CmsObject getCms()
          Returns the cms context.
 java.lang.String getResource()
          Returns the resource.
 boolean isVisible()
          Returns if visible or not.
 void setResource(java.lang.String resource)
          Sets the resource.
 
Methods inherited from class org.opencms.workplace.list.CmsListDefaultAction
getColumnForLink, getColumnFormatter, resolveButtonStyle, resolveName, setColumnForLink
 
Methods inherited from class org.opencms.workplace.list.CmsListDirectAction
buttonHtml, confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveHelpText, resolveOnClic, setColumnForTexts, setItem
 
Methods inherited from class org.opencms.workplace.list.A_CmsListAction
buttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
 
Methods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getIconPath, getId, getName, isEnabled, setEnabled, setHelpText, setIconPath, setName, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opencms.workplace.list.I_CmsListAction
buttonHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
 
Methods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton
getHelpText, getIconPath, getId, getName, isEnabled, setEnabled, setHelpText, setIconPath, setName, setVisible
 

Constructor Detail

CmsRestoreStateAction

public CmsRestoreStateAction(java.lang.String id,
                             CmsObject cms)
Default constructor.

Parameters:
id - the id of the action
cms - the cms context
Method Detail

getCms

public CmsObject getCms()
Returns the cms context.

Returns:
the cms context

getResource

public java.lang.String getResource()
Returns the resource.

Returns:
the resource

isVisible

public boolean isVisible()
Description copied from interface: I_CmsHtmlIconButton
Returns if visible or not.

Specified by:
isVisible in interface I_CmsHtmlIconButton
Overrides:
isVisible in class A_CmsHtmlIconButton
Returns:
if visible or not
See Also:
A_CmsHtmlIconButton.isVisible()

setResource

public void setResource(java.lang.String resource)
Sets the resource.

Parameters:
resource - the resource to set