org.opencms.workplace.list
Class A_CmsListIndependentJsAction

java.lang.Object
  extended byorg.opencms.workplace.tools.A_CmsHtmlIconButton
      extended byorg.opencms.workplace.list.A_CmsListAction
          extended byorg.opencms.workplace.list.CmsListIndependentAction
              extended byorg.opencms.workplace.list.A_CmsListIndependentJsAction
All Implemented Interfaces:
I_CmsHtmlIconButton, I_CmsListAction
Direct Known Subclasses:
CmsListCsvExportIAction, CmsListPrintIAction

public abstract class A_CmsListIndependentJsAction
extends CmsListIndependentAction

Default implementation of a independent action for a html list column that can execute java script code.

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

Field Summary
 
Fields inherited from class org.opencms.workplace.list.CmsListIndependentAction
ACTION_EXPLORER_SWITCH_ID
 
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id
 
Constructor Summary
A_CmsListIndependentJsAction(java.lang.String id)
          Default Constructor.
 
Method Summary
abstract  java.lang.String jsCode(CmsWorkplace wp)
          The js code to execute.
protected  java.lang.String resolveOnClic(CmsWorkplace wp)
          Help method to resolve the on clic text to use.
 
Methods inherited from class org.opencms.workplace.list.CmsListIndependentAction
buttonHtml, getDefaultExplorerSwitchAction
 
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, 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.tools.I_CmsHtmlIconButton
getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
 

Constructor Detail

A_CmsListIndependentJsAction

public A_CmsListIndependentJsAction(java.lang.String id)
Default Constructor.

Parameters:
id - unique id
Method Detail

resolveOnClic

protected java.lang.String resolveOnClic(CmsWorkplace wp)
Description copied from class: CmsListIndependentAction
Help method to resolve the on clic text to use.

Overrides:
resolveOnClic in class CmsListIndependentAction
Parameters:
wp - the workplace context
Returns:
the on clic text
See Also:
CmsListIndependentAction.resolveOnClic(org.opencms.workplace.CmsWorkplace)

jsCode

public abstract java.lang.String jsCode(CmsWorkplace wp)
The js code to execute.

Parameters:
wp - the workplace context
Returns:
js code to execute