Package org.opencms.workplace.list
Class A_CmsListAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
- All Implemented Interfaces:
I_CmsListAction
,org.opencms.workplace.tools.I_CmsHtmlIconButton
- Direct Known Subclasses:
CmsListDirectAction
,CmsListIndependentAction
,CmsListMultiAction
public abstract class A_CmsListAction
extends org.opencms.workplace.tools.A_CmsHtmlIconButton
implements I_CmsListAction
The default skeleton for 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
-
Method Summary
Modifier and TypeMethodDescriptionThe same usingI_CmsListAction.getWp()
.static String
defaultConfirmationHtml
(String confId, String confText) Generates html for the confirmation message when having one confirmation message for several actions.org.opencms.i18n.CmsMessageContainer
Returns an optional confirmation message for the action.Returns the id of the associated list.getWp()
Returns the related workplace dialog object, to be able to access dynamic data.void
setConfirmationMessage
(org.opencms.i18n.CmsMessageContainer confirmationMsg) Sets the confirmation message.void
Sets the list id.void
setWp
(A_CmsListDialog wp) Sets the workplace dialog object.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
buttonHtml, getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
-
Constructor Details
-
A_CmsListAction
Default Constructor.- Parameters:
id
- unique id
-
-
Method Details
-
defaultConfirmationHtml
Generates html for the confirmation message when having one confirmation message for several actions.- Parameters:
confId
- the id of the confirmation messageconfText
- the confirmation message- Returns:
- html code
-
buttonHtml
Description copied from interface:I_CmsListAction
The same usingI_CmsListAction.getWp()
.- Specified by:
buttonHtml
in interfaceI_CmsListAction
- Returns:
- the buttons html code
- See Also:
-
getConfirmationMessage
Description copied from interface:I_CmsListAction
Returns an optional confirmation message for the action.It will be escaped for usage in java script code.
- Specified by:
getConfirmationMessage
in interfaceI_CmsListAction
- Returns:
- confirmation message
- See Also:
-
getListId
Description copied from interface:I_CmsListAction
Returns the id of the associated list.- Specified by:
getListId
in interfaceI_CmsListAction
- Returns:
- the id of the associated list
- See Also:
-
getWp
Description copied from interface:I_CmsListAction
Returns the related workplace dialog object, to be able to access dynamic data.- Specified by:
getWp
in interfaceI_CmsListAction
- Returns:
- the related workplace dialog object
- See Also:
-
setConfirmationMessage
Description copied from interface:I_CmsListAction
Sets the confirmation message.- Specified by:
setConfirmationMessage
in interfaceI_CmsListAction
- Parameters:
confirmationMsg
- the confirmation message to set- See Also:
-
setListId
Description copied from interface:I_CmsListAction
Sets the list id.- Specified by:
setListId
in interfaceI_CmsListAction
- Parameters:
listId
- the id of the list to set- See Also:
-
setWp
Description copied from interface:I_CmsListAction
Sets the workplace dialog object.- Specified by:
setWp
in interfaceI_CmsListAction
- Parameters:
wp
- the workplace dialog object- See Also:
-