org.opencms.workplace.list
Class CmsListOpenResourceAction

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.list.A_CmsListDefaultJsAction
                      extended by org.opencms.workplace.list.CmsListOpenResourceAction
All Implemented Interfaces:
I_CmsListAction, I_CmsListDirectAction, I_CmsHtmlIconButton

public class CmsListOpenResourceAction
extends A_CmsListDefaultJsAction

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
CmsListOpenResourceAction(java.lang.String id, java.lang.String resColumnPathId)
          Default Constructor.
 
Method Summary
 CmsMessageContainer getHelpText()
          Returns the help text.
protected  java.lang.String getResourceName()
          Returns the most possible right resource name.
 boolean isEnabled()
          Returns if enabled or disabled.
 java.lang.String jsCode()
          The js code to execute.
 
Methods inherited from class org.opencms.workplace.list.A_CmsListDefaultJsAction
resolveOnClic
 
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, 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, getIconPath, getId, getName, isVisible, 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
getIconPath, getId, getName, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
 

Constructor Detail

CmsListOpenResourceAction

public CmsListOpenResourceAction(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
Returns:
the help text
See Also:
I_CmsHtmlIconButton.getHelpText()

isEnabled

public boolean isEnabled()
Description copied from interface: I_CmsHtmlIconButton
Returns if enabled or disabled.

Specified by:
isEnabled in interface I_CmsHtmlIconButton
Overrides:
isEnabled in class A_CmsHtmlIconButton
Returns:
if enabled or disabled
See Also:
I_CmsHtmlIconButton.isEnabled()

jsCode

public java.lang.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:
A_CmsListDefaultJsAction.jsCode()

getResourceName

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

Returns:
the most possible right resource name