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
Fields inherited from class org.opencms.workplace.list.CmsListIndependentAction
ACTION_EXPLORER_SWITCH_ID
Fields inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
EMPTY_MESSAGE, m_id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an item to be displayed in the drop-down list.buttonHtml
(org.opencms.workplace.CmsWorkplace wp) Returns the selected item.void
setSelection
(String selection) Sets the selected item.Methods inherited from class org.opencms.workplace.list.CmsListIndependentAction
getDefaultExplorerSwitchAction, resolveOnClic
Methods inherited from class org.opencms.workplace.list.A_CmsListAction
buttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessage, setListId, setWp
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
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:
buttonHtml
in interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton
- Overrides:
buttonHtml
in classCmsListIndependentAction
- See Also:
-
I_CmsHtmlIconButton.buttonHtml(org.opencms.workplace.CmsWorkplace)
-
getSelection
Returns the selected item.- Returns:
- the selected item
-
setSelection
Sets the selected item.- Parameters:
selection
- the selected item to set
-