Package org.opencms.workplace.list
Class CmsListExplorerDirectAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListDirectAction
org.opencms.workplace.list.CmsListExplorerDirectAction
- All Implemented Interfaces:
I_CmsListAction,I_CmsListDirectAction,org.opencms.workplace.tools.I_CmsHtmlIconButton
- Direct Known Subclasses:
CmsListResourceLockAction,CmsListResourceProjStateAction,CmsListResourceTypeIconAction
Displays a 16x16 icon from the explorer view in a list action.
- Since:
- 6.0.0
-
Field Summary
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuttonHtml(org.opencms.workplace.CmsWorkplace wp) protected StringdefButtonHtml(String id, String helpId, String name, String helpText, boolean enabled, String iconPath, String confirmationMessage, String onClick, boolean singleHelp) Generates a default html code where several buttons can have the same help text.protected org.opencms.workplace.explorer.CmsResourceUtilReturns the current result Util.voidsetItem(CmsListItem item) Sets the current item, should be called before themethod.I_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace)Methods inherited from class org.opencms.workplace.list.CmsListDirectAction
confirmationTextHtml, getColumnForTexts, getItem, helpTextHtml, resolveButtonStyle, resolveHelpText, resolveName, resolveOnClic, setColumnForTextsMethods inherited from class org.opencms.workplace.list.A_CmsListAction
buttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWpMethods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.workplace.tools.I_CmsHtmlIconButton
getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisibleMethods inherited from interface org.opencms.workplace.list.I_CmsListAction
buttonHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
-
Constructor Details
-
CmsListExplorerDirectAction
Default Constructor.- Parameters:
id- the unique id
-
-
Method Details
-
buttonHtml
- Specified by:
buttonHtmlin interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton- Overrides:
buttonHtmlin classCmsListDirectAction- See Also:
-
setItem
Description copied from interface:I_CmsListDirectActionSets the current item, should be called before themethod.I_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace)- Specified by:
setItemin interfaceI_CmsListDirectAction- Overrides:
setItemin classCmsListDirectAction- Parameters:
item- the item- See Also:
-
defButtonHtml
protected String defButtonHtml(String id, String helpId, String name, String helpText, boolean enabled, String iconPath, String confirmationMessage, String onClick, boolean singleHelp) Generates a default html code where several buttons can have the same help text.the only diff to
is that the icons are 16x16.A_CmsHtmlIconButton.defaultButtonHtml(org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnum, String, String, String, boolean, String, String, String)- Parameters:
id- the idhelpId- the id of the helptext div tagname- the name, if empty only the icon is displayedhelpText- the help text, if empty no mouse events are generatedenabled- if enabled or not, if not set be sure to take an according helptexticonPath- the path to the icon, if empty only the name is displayedconfirmationMessage- the confirmation messageonClick- the js code to execute, if empty no link is generatedsingleHelp- if set, no helptext is written, you have to use the defaultHelpHtml() method later- Returns:
- html code
- See Also:
-
getResourceUtil
Returns the current result Util.- Returns:
- the current result Util
-