Package org.opencms.workplace.commons
Class CmsRestoreStateAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListDirectAction
org.opencms.workplace.list.CmsListDefaultAction
org.opencms.workplace.commons.CmsRestoreStateAction
- All Implemented Interfaces:
I_CmsListAction
,I_CmsListDirectAction
,org.opencms.workplace.tools.I_CmsHtmlIconButton
Show different states depending on the name of the resource.
-
Field Summary
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id
-
Constructor Summary
ConstructorDescriptionCmsRestoreStateAction
(String id, org.opencms.file.CmsObject cms) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.opencms.file.CmsObject
getCms()
Returns the cms context.Returns the resource.boolean
void
setResource
(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.tools.I_CmsHtmlIconButton
getHelpText, getIconPath, getId, getName, isEnabled, setEnabled, setHelpText, setIconPath, setName, setVisible
Methods inherited from interface org.opencms.workplace.list.I_CmsListAction
buttonHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
-
Constructor Details
-
CmsRestoreStateAction
Default constructor.- Parameters:
id
- the id of the actioncms
- the cms context
-
-
Method Details
-
getCms
Returns the cms context.- Returns:
- the cms context
-
getResource
Returns the resource.- Returns:
- the resource
-
isVisible
- Specified by:
isVisible
in interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton
- Overrides:
isVisible
in classorg.opencms.workplace.tools.A_CmsHtmlIconButton
- See Also:
-
A_CmsHtmlIconButton.isVisible()
-
setResource
Sets the resource.- Parameters:
resource
- the resource to set
-