|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.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
public class CmsListSearchAction
Default implementation for a search action in an html list.
It allows to search in several columns, including item details.
| Field Summary | |
|---|---|
static java.lang.String |
SEARCH_BAR_INPUT_ID
the 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_ID |
| 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 | |
|---|---|
CmsListSearchAction(CmsListColumnDefinition column)
Default Constructor. |
|
| Method Summary | |
|---|---|
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)
Deprecated. use CmsHtmlList.setSearchFilter(String) instead |
void |
setWp(A_CmsListDialog wp)
Sets the workplace dialog object. |
| 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 |
| 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 Detail |
|---|
public static final java.lang.String SEARCH_BAR_INPUT_ID
| Constructor Detail |
|---|
public CmsListSearchAction(CmsListColumnDefinition column)
column - the column to search into| Method Detail |
|---|
public void addColumn(CmsListColumnDefinition column)
column - the additional column to search intopublic java.lang.String barHtml(CmsWorkplace wp)
wp - the workplace context
public java.lang.String buttonHtml(CmsWorkplace wp)
I_CmsHtmlIconButton
buttonHtml in interface I_CmsHtmlIconButtonbuttonHtml in class A_CmsListSearchActionwp - the jsp page to write the code to
A_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 filter
public 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) instead
filter - the current search filterpublic void setWp(A_CmsListDialog wp)
I_CmsListAction
setWp in interface I_CmsListActionsetWp in class A_CmsListActionwp - the workplace dialog objectI_CmsListAction.setWp(org.opencms.workplace.list.A_CmsListDialog)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||