org.opencms.workplace.list
Class CmsListEditResourceAction

java.lang.Object
  extended byorg.opencms.workplace.tools.A_CmsHtmlIconButton
      extended byorg.opencms.workplace.list.A_CmsListAction
          extended byorg.opencms.workplace.list.CmsListDirectAction
              extended byorg.opencms.workplace.list.CmsListEditResourceAction
All Implemented Interfaces:
I_CmsHtmlIconButton, I_CmsListAction, I_CmsListDirectAction

public class CmsListEditResourceAction
extends CmsListDirectAction

Opens the selected resource in a new window.

Since:
6.0.0
Version:
$Revision: 1.4 $
Author:
Michael Moossen

Field Summary
 
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id
 
Constructor Summary
CmsListEditResourceAction(java.lang.String id, java.lang.String resColumnPathId)
          Default Constructor.
 
Method Summary
 CmsMessageContainer getHelpText()
          Returns the help text.
 java.lang.String getIconPath()
          Returns the path to the icon.
 CmsMessageContainer getName()
          Returns the display name.
protected  CmsResourceUtil getResourceUtil()
          Returns the current result Util.
 boolean isVisible()
          Returns if visible or not.
 void setItem(CmsListItem item)
          Sets the current item, should be called before the CmsListDirectAction.buttonHtml(org.opencms.workplace.CmsWorkplace) method.
 
Methods inherited from class org.opencms.workplace.list.CmsListDirectAction
buttonHtml, confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveButtonStyle, resolveHelpText, resolveName, resolveOnClic, setColumnForTexts
 
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, getId, 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
getId, isEnabled, setEnabled, setHelpText, setIconPath, setName, setVisible
 

Constructor Detail

CmsListEditResourceAction

public CmsListEditResourceAction(java.lang.String id,
                                 java.lang.String resColumnPathId)
Default Constructor.

Parameters:
id - the unique id
resColumnPathId - the id of the column with the resource root path
Method Detail

getHelpText

public CmsMessageContainer getHelpText()
Description copied from interface: I_CmsHtmlIconButton
Returns the help text.

Specified by:
getHelpText in interface I_CmsHtmlIconButton
Overrides:
getHelpText in class A_CmsHtmlIconButton
See Also:
I_CmsHtmlIconButton.getHelpText()

getIconPath

public java.lang.String getIconPath()
Description copied from interface: I_CmsHtmlIconButton
Returns the path to the icon.

Specified by:
getIconPath in interface I_CmsHtmlIconButton
Overrides:
getIconPath in class A_CmsHtmlIconButton
See Also:
I_CmsHtmlIconButton.getIconPath()

getName

public CmsMessageContainer getName()
Description copied from interface: I_CmsHtmlIconButton
Returns the display name.

Specified by:
getName in interface I_CmsHtmlIconButton
Overrides:
getName in class A_CmsHtmlIconButton
See Also:
I_CmsHtmlIconButton.getName()

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
See Also:
I_CmsHtmlIconButton.isVisible()

setItem

public void setItem(CmsListItem item)
Description copied from interface: I_CmsListDirectAction
Sets the current item, should be called before the I_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace) method.

Specified by:
setItem in interface I_CmsListDirectAction
Overrides:
setItem in class CmsListDirectAction
See Also:
I_CmsListDirectAction.setItem(org.opencms.workplace.list.CmsListItem)

getResourceUtil

protected CmsResourceUtil getResourceUtil()
Returns the current result Util.

Returns:
the current result Util