Package org.opencms.workplace.list
Class CmsListMultiSearchAction
- 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
-
- org.opencms.workplace.list.CmsListMultiSearchAction
-
- All Implemented Interfaces:
I_CmsListAction
,org.opencms.workplace.tools.I_CmsHtmlIconButton
public class CmsListMultiSearchAction extends CmsListSearchAction
Displays an advanced search form over several columns.- Since:
- 7.6
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_VAL_DELIM
The string to delimit key and value.static java.lang.String
PARAM_DELIM
The string to delimit each column-value pair.static java.lang.String
SEARCH_COL_INPUT_ID
the html id prefix for the input element of the search bar.-
Fields inherited from class org.opencms.workplace.list.CmsListSearchAction
SEARCH_BAR_INPUT_ID
-
Fields inherited from class org.opencms.workplace.list.A_CmsListSearchAction
m_defaultShowAllAction, SEARCH_ACTION_ID, SHOWALL_ACTION_ID
-
Fields inherited from class org.opencms.workplace.list.CmsListIndependentAction
ACTION_EXPLORER_SWITCH_ID
-
-
Constructor Summary
Constructors Constructor Description CmsListMultiSearchAction(CmsListColumnDefinition column)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
barHtml(org.opencms.workplace.CmsWorkplace wp)
Returns the html code for the search bar.java.util.List<CmsListItem>
filter(java.util.List<CmsListItem> items, java.lang.String searchFilter)
Returns a sublist of the given items, that match the given filter string.-
Methods inherited from class org.opencms.workplace.list.CmsListSearchAction
addColumn, buttonHtml, getColumns, isCaseInSensitive, setCaseInSensitive, setSearchFilter, setWp
-
Methods inherited from class org.opencms.workplace.list.A_CmsListSearchAction
getShowAllAction, setListId, setShowAllAction, useDefaultShowAllAction
-
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
-
Methods inherited from class org.opencms.workplace.tools.A_CmsHtmlIconButton
defaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisible
-
-
-
-
Field Detail
-
KEY_VAL_DELIM
public static final java.lang.String KEY_VAL_DELIM
The string to delimit key and value.- See Also:
- Constant Field Values
-
PARAM_DELIM
public static final java.lang.String PARAM_DELIM
The string to delimit each column-value pair.- See Also:
- Constant Field Values
-
SEARCH_COL_INPUT_ID
public static final java.lang.String SEARCH_COL_INPUT_ID
the html id prefix for the input element of the search bar.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsListMultiSearchAction
public CmsListMultiSearchAction(CmsListColumnDefinition column)
Default constructor.- Parameters:
column
- the first column to search in- See Also:
CmsListSearchAction.addColumn(CmsListColumnDefinition)
-
-
Method Detail
-
barHtml
public java.lang.String barHtml(org.opencms.workplace.CmsWorkplace wp)
Description copied from class:CmsListSearchAction
Returns the html code for the search bar.- Overrides:
barHtml
in classCmsListSearchAction
- Parameters:
wp
- the workplace context- Returns:
- html code
- See Also:
CmsListSearchAction.barHtml(org.opencms.workplace.CmsWorkplace)
-
filter
public java.util.List<CmsListItem> filter(java.util.List<CmsListItem> items, java.lang.String searchFilter)
Description copied from class:CmsListSearchAction
Returns a sublist of the given items, that match the given filter string.- Overrides:
filter
in classCmsListSearchAction
- Parameters:
items
- the items to filtersearchFilter
- the string to filter- Returns:
- the filtered sublist
- See Also:
CmsListSearchAction.filter(java.util.List, java.lang.String)
-
-