Package org.opencms.workplace.list
Class CmsListSearchAction
java.lang.Object
org.opencms.workplace.tools.A_CmsHtmlIconButton
org.opencms.workplace.list.A_CmsListAction
org.opencms.workplace.list.CmsListIndependentAction
org.opencms.workplace.list.A_CmsListSearchAction
org.opencms.workplace.list.CmsListSearchAction
- All Implemented Interfaces:
I_CmsListAction,org.opencms.workplace.tools.I_CmsHtmlIconButton
- Direct Known Subclasses:
CmsListMultiSearchAction
Default implementation for a search action in an html list.
It allows to search in several columns, including item details.
- Since:
- 6.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe html id for the input element of the search bar.Fields inherited from class org.opencms.workplace.list.A_CmsListSearchAction
m_defaultShowAllAction, SEARCH_ACTION_ID, SHOWALL_ACTION_IDFields 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 TypeMethodDescriptionvoidaddColumn(CmsListColumnDefinition column) Adds a column to search into.barHtml(org.opencms.workplace.CmsWorkplace wp) Returns the html code for the search bar.buttonHtml(org.opencms.workplace.CmsWorkplace wp) filter(List<CmsListItem> items, String filter) Returns a sublist of the given items, that match the given filter string.Returns the list of columns to be searched.booleanReturns the caseInSensitive.voidsetCaseInSensitive(boolean caseInSensitive) Sets the caseInSensitive.voidsetSearchFilter(String filter) Deprecated.voidsetWp(A_CmsListDialog wp) Sets the workplace dialog object.Methods inherited from class org.opencms.workplace.list.A_CmsListSearchAction
getShowAllAction, setListId, setShowAllAction, useDefaultShowAllActionMethods inherited from class org.opencms.workplace.list.CmsListIndependentAction
getDefaultExplorerSwitchAction, resolveOnClicMethods inherited from class org.opencms.workplace.list.A_CmsListAction
buttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessageMethods 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
-
SEARCH_BAR_INPUT_ID
the html id for the input element of the search bar.- See Also:
-
-
Constructor Details
-
CmsListSearchAction
Default Constructor.- Parameters:
column- the column to search into
-
-
Method Details
-
addColumn
Adds a column to search into.- Parameters:
column- the additional column to search into
-
barHtml
Returns the html code for the search bar.- Parameters:
wp- the workplace context- Returns:
- html code
-
buttonHtml
- Specified by:
buttonHtmlin interfaceorg.opencms.workplace.tools.I_CmsHtmlIconButton- Overrides:
buttonHtmlin classA_CmsListSearchAction- See Also:
-
filter
Returns a sublist of the given items, that match the given filter string.- Parameters:
items- the items to filterfilter- the string to filter- Returns:
- the filtered sublist
-
getColumns
Returns the list of columns to be searched.- Returns:
- a list of
CmsListColumnDefinitionobjects
-
isCaseInSensitive
Returns the caseInSensitive.- Returns:
- the caseInSensitive
-
setCaseInSensitive
Sets the caseInSensitive.- Parameters:
caseInSensitive- the caseInSensitive to set
-
setSearchFilter
Deprecated.useCmsHtmlList.setSearchFilter(String)insteadSets the current search filter.- Parameters:
filter- the current search filter
-
setWp
Description copied from interface:I_CmsListActionSets the workplace dialog object.- Specified by:
setWpin interfaceI_CmsListAction- Overrides:
setWpin classA_CmsListAction- Parameters:
wp- the workplace dialog object- See Also:
-
CmsHtmlList.setSearchFilter(String)instead