public class CmsListSearchAction extends A_CmsListSearchAction
It allows to search in several columns, including item details.
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
SEARCH_BAR_INPUT_ID
the html id for the input element of the search bar.
|
m_defaultShowAllAction, SEARCH_ACTION_ID, SHOWALL_ACTION_IDACTION_EXPLORER_SWITCH_IDEMPTY_MESSAGE, m_id| 构造器和说明 |
|---|
CmsListSearchAction(CmsListColumnDefinition column)
Default Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addColumn(CmsListColumnDefinition column)
Adds a column to search into.
|
java.lang.String |
barHtml(CmsWorkplace wp)
Returns the html code for the search bar.
|
java.lang.String |
buttonHtml(CmsWorkplace wp)
Returns the necessary html code.
|
java.util.List<CmsListItem> |
filter(java.util.List<CmsListItem> items,
java.lang.String filter)
Returns a sublist of the given items, that match the given filter string.
|
java.util.List<CmsListColumnDefinition> |
getColumns()
Returns the list of columns to be searched.
|
boolean |
isCaseInSensitive()
Returns the caseInSensitive.
|
void |
setCaseInSensitive(boolean caseInSensitive)
Sets the caseInSensitive.
|
void |
setSearchFilter(java.lang.String filter)
已过时。
use
CmsHtmlList.setSearchFilter(String) instead |
void |
setWp(A_CmsListDialog wp)
Sets the workplace dialog object.
|
getShowAllAction, setListId, setShowAllAction, useDefaultShowAllActiongetDefaultExplorerSwitchAction, resolveOnClicbuttonHtml, defaultConfirmationHtml, getConfirmationMessage, getListId, getWp, setConfirmationMessagedefaultButtonHtml, defaultButtonHtml, defaultHelpHtml, getHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHelpText, getIconPath, getId, getName, isEnabled, isVisible, setEnabled, setHelpText, setIconPath, setName, setVisiblepublic static final java.lang.String SEARCH_BAR_INPUT_ID
public CmsListSearchAction(CmsListColumnDefinition column)
column - the column to search intopublic void addColumn(CmsListColumnDefinition column)
column - the additional column to search intopublic java.lang.String barHtml(CmsWorkplace wp)
wp - the workplace contextpublic java.lang.String buttonHtml(CmsWorkplace wp)
I_CmsHtmlIconButtonbuttonHtml 在接口中 I_CmsHtmlIconButtonbuttonHtml 在类中 A_CmsListSearchActionwp - the jsp page to write the code toA_CmsListSearchAction.buttonHtml(org.opencms.workplace.CmsWorkplace)public java.util.List<CmsListItem> filter(java.util.List<CmsListItem> items, java.lang.String filter)
items - the items to filterfilter - the string to filterpublic java.util.List<CmsListColumnDefinition> getColumns()
CmsListColumnDefinition objectspublic boolean isCaseInSensitive()
public void setCaseInSensitive(boolean caseInSensitive)
caseInSensitive - the caseInSensitive to set@Deprecated public void setSearchFilter(java.lang.String filter)
CmsHtmlList.setSearchFilter(String) insteadfilter - the current search filterpublic void setWp(A_CmsListDialog wp)
I_CmsListActionsetWp 在接口中 I_CmsListActionsetWp 在类中 A_CmsListActionwp - the workplace dialog objectI_CmsListAction.setWp(org.opencms.workplace.list.A_CmsListDialog)