Package org.opencms.workplace.list
Class CmsListDropdownAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListIndependentAction
org.opencms.workplace.list.CmsListDropdownAction
- All Implemented Interfaces:
I_CmsListAction,org.opencms.workplace.tools.I_CmsHtmlIconButton
Independent action to switch the resource state filter.
Do not forget to add parameter evaluation code overwritting the A_CmsListDialog#getList() method, like in CmsProjectFilesDialog.
- Since:
- 6.0.0
-
Field Summary
FieldsFields inherited from class org.opencms.workplace.list.CmsListIndependentAction
ACTION_EXPLORER_SWITCH_IDFields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an item to be displayed in the drop-down list.buttonHtml(org.opencms.workplace.CmsWorkplace wp) Returns the selected item.voidsetSelection(String selection) Sets the selected item.Methods inherited from class org.opencms.workplace.list.CmsListIndependentAction
getDefaultExplorerSwitchAction, resolveOnClicMethods 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, setVisible
-
Field Details
-
SUFFIX_PARAM
parameter name suffix.- See Also:
-
-
Constructor Details
-
CmsListDropdownAction
Default Constructor.- Parameters:
id- unique id
-
-
Method Details
-
addItem
Adds an item to be displayed in the drop-down list.- Parameters:
id- the id of the itemname- the display name
-
buttonHtml
- Specified by:
buttonHtmlin interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton- Overrides:
buttonHtmlin classCmsListIndependentAction- See Also:
-
getSelection
Returns the selected item.- Returns:
- the selected item
-
setSelection
Sets the selected item.- Parameters:
selection- the selected item to set
-