public class AbstractCrudItemBean.SearchItemsDelegate extends Object implements Serializable
Constructor and Description |
---|
SearchItemsDelegate() |
Modifier and Type | Method and Description |
---|---|
String |
backAction()
Determines the action to navigate to the previous page.
|
javax.faces.model.DataModel<T> |
getDataModel()
Gets the DataModel.
|
List<T> |
getItems()
Gets the Items to show in the DataTable.
|
JsfSearchMode |
getSearchMode()
Gets the search mode.
|
String |
getSortColumn()
Gets the name of the column used for sorting.
|
String[] |
getSortColumns()
Gets the name of the columns used for sorting.
|
boolean |
isSortAscending()
Determines whether sorting is done ascending or descending.
|
boolean |
isSortColumnChangedOrToggled()
Determines whether the sort column or ascending/descending has
changed.
|
void |
setBackAction(String backAction)
Sets action to navigate to the previous page.
|
void |
setSearchMode(JsfSearchMode searchMode)
Sets the search mode.
|
void |
setSortAscending(boolean sortAscending)
Sets sorting to be either ascending or descending.
|
void |
setSortColumn(String sortColumn)
Sets the name of the columns used for sorting.
|
void |
setSortColumnChangedOrToggled(boolean sortColumnChangedOrToggled)
Sets the current sort column to changed or not.
|
public javax.faces.model.DataModel<T> getDataModel()
public List<T> getItems()
public String getSortColumn()
public void setSortColumn(String sortColumn)
sortColumn
- The name of the column used for sorting.public String[] getSortColumns()
public boolean isSortAscending()
public void setSortAscending(boolean sortAscending)
sortAscending
- True for ascending, false for descending.public boolean isSortColumnChangedOrToggled()
public void setSortColumnChangedOrToggled(boolean sortColumnChangedOrToggled)
sortColumnChangedOrToggled
- True when the sort column has
changed or when the sort column is the same but ordering needs to be
toggled.public JsfSearchMode getSearchMode()
public void setSearchMode(JsfSearchMode searchMode)
searchMode
- The search mode.public String backAction()
public void setBackAction(String backAction)
backAction
- The action to navigate to the previous page.Copyright © 2008–2018. All rights reserved.