Package org.opencms.workplace.list
Class CmsListDirectAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListDirectAction
- All Implemented Interfaces:
I_CmsListAction,I_CmsListDirectAction,org.opencms.workplace.tools.I_CmsHtmlIconButton
- Direct Known Subclasses:
A_CmsListDirectJsAction,CmsChangeLogLevelAction,CmsListDefaultAction,CmsListEditResourceAction,CmsListExplorerDirectAction,CmsListItemSelectionAction,CmsListResourceIconAction
Default implementation of a direct action for a html list column.
- 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) Generates a confirmation text div tag, to use in lists where all items use the same confirmation text.Returns the id of the column to use as parameter for the helptext and confirmation message.getItem()Returns the current item.Generates a help text div tag, to use in lists where all items use the same help text.protected org.opencms.workplace.tools.CmsHtmlIconButtonStyleEnumHelp method to resolve the style of the button.protected StringresolveHelpText(Locale locale) Help method to resolve the help text to use.protected StringresolveName(Locale locale) Help method to resolve the name to use.protected StringresolveOnClic(Locale locale) Help method to resolve the on clic text to use.voidsetColumnForTexts(String columnId) Sets the id of the column to use as parameter for the helptext and confirmation message.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.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
-
CmsListDirectAction
Default Constructor.- Parameters:
id- unique id
-
-
Method Details
-
resolveHelpText
Help method to resolve the help text to use.- Parameters:
locale- the used locale- Returns:
- the help text
-
resolveOnClic
Help method to resolve the on clic text to use.- Parameters:
locale- the used locale- Returns:
- the on clic text
-
resolveName
Help method to resolve the name to use.- Parameters:
locale- the used locale- Returns:
- the name
-
resolveButtonStyle
Help method to resolve the style of the button.- Returns:
- the style of the button
-
buttonHtml
- Specified by:
buttonHtmlin interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton- See Also:
-
confirmationTextHtml
Description copied from interface:I_CmsListDirectActionGenerates a confirmation text div tag, to use in lists where all items use the same confirmation text.- Specified by:
confirmationTextHtmlin interfaceI_CmsListDirectAction- Returns:
- html code
- See Also:
-
getColumnForTexts
Description copied from interface:I_CmsListDirectActionReturns the id of the column to use as parameter for the helptext and confirmation message.- Specified by:
getColumnForTextsin interfaceI_CmsListDirectAction- Returns:
- the id of the column to use
- See Also:
-
getItem
Description copied from interface:I_CmsListDirectActionReturns the current item.- Specified by:
getItemin interfaceI_CmsListDirectAction- Returns:
- the current item
- See Also:
-
helpTextHtml
Description copied from interface:I_CmsListDirectActionGenerates a help text div tag, to use in lists where all items use the same help text.- Specified by:
helpTextHtmlin interfaceI_CmsListDirectAction- Returns:
- html code
- See Also:
-
setColumnForTexts
Description copied from interface:I_CmsListDirectActionSets the id of the column to use as parameter for the helptext and confirmation message.- Specified by:
setColumnForTextsin interfaceI_CmsListDirectAction- Parameters:
columnId- the id of the column to use- 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- Parameters:
item- the item- See Also:
-