org.opencms.workplace.list
Class CmsListResourceIconAction

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.CmsListResourceIconAction
All Implemented Interfaces:
I_CmsListAction, I_CmsListDirectAction, I_CmsHtmlIconButton

public class CmsListResourceIconAction
extends CmsListDirectAction

Displays an icon action for dependency lists.

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

Field Summary
 
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id
 
Constructor Summary
CmsListResourceIconAction(String id, String resColumnTypeId, CmsObject cms)
          Default Constructor.
 
Method Summary
 String buttonHtml(CmsWorkplace wp)
          Returns the necessary html code.
 CmsObject getCms()
          Returns the cms context.
 String getIconPath()
          Returns the path to the icon.
 
Methods inherited from class org.opencms.workplace.list.CmsListDirectAction
confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveButtonStyle, resolveHelpText, resolveName, resolveOnClic, setColumnForTexts, setItem
 
Methods inherited from class org.opencms.workplace.list.A_CmsListAction
defaultConfirmationHtml, getConfirmationMessage, getListId, setConfirmationMessage, setListId
 
Methods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, 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.list.I_CmsListAction
getConfirmationMessage, getListId, setConfirmationMessage, setListId
 
Methods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton
getHelpText, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
 

Constructor Detail

CmsListResourceIconAction

public CmsListResourceIconAction(String id,
                                 String resColumnTypeId,
                                 CmsObject cms)
Default Constructor.

Parameters:
id - the unique id
resColumnTypeId - the id of the column with the resource type
cms - the cms context
Method Detail

buttonHtml

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

Specified by:
buttonHtml in interface I_CmsHtmlIconButton
Overrides:
buttonHtml in class CmsListDirectAction
Parameters:
wp - the jsp page to write the code to
Returns:
html code
See Also:
CmsListDirectAction.buttonHtml(org.opencms.workplace.CmsWorkplace)

getCms

public CmsObject getCms()
Returns the cms context.

Returns:
the cms context

getIconPath

public 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
Returns:
the path to the icon
See Also:
A_CmsHtmlIconButton.getIconPath()