org.opencms.workplace.list
Class CmsListIndependentAction

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.CmsListIndependentAction
All Implemented Interfaces:
I_CmsListAction, I_CmsHtmlIconButton
Direct Known Subclasses:
A_CmsListIndependentJsAction, A_CmsListSearchAction, CmsListDropdownAction

public class CmsListIndependentAction
extends A_CmsListAction

Default implementation of a independent action for a html list.

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

Field Summary
static java.lang.String ACTION_EXPLORER_SWITCH_ID
          List independent action id constant.
 
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id
 
Constructor Summary
CmsListIndependentAction(java.lang.String id)
          Default Constructor.
 
Method Summary
 java.lang.String buttonHtml(CmsWorkplace wp)
          Returns the necessary html code.
static CmsListIndependentAction getDefaultExplorerSwitchAction()
          Returns the default explorer switch action for explorer list dialogs.
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.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
 

Field Detail

ACTION_EXPLORER_SWITCH_ID

public static final java.lang.String ACTION_EXPLORER_SWITCH_ID
List independent action id constant.

See Also:
Constant Field Values
Constructor Detail

CmsListIndependentAction

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

Parameters:
id - unique id
Method Detail

resolveOnClic

protected java.lang.String resolveOnClic(CmsWorkplace wp)
Help method to resolve the on clic text to use.

Parameters:
wp - the workplace context
Returns:
the on clic text

buttonHtml

public java.lang.String buttonHtml(CmsWorkplace wp)
Description copied from interface: I_CmsHtmlIconButton
Returns the necessary html code.

Parameters:
wp - the jsp page to write the code to
Returns:
html code
See Also:
I_CmsHtmlIconButton.buttonHtml(CmsWorkplace)

getDefaultExplorerSwitchAction

public static CmsListIndependentAction getDefaultExplorerSwitchAction()
Returns the default explorer switch action for explorer list dialogs.

Returns:
the default explorer switch action