|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.object.ListTableContentProvider
com.webmethods.caf.faces.data.object.FilterableListTableContentProvider
public class FilterableListTableContentProvider
Adapts List
and Array objects to the IFilterableTableContentProvider
interface.
Field Summary | |
---|---|
protected String |
m_filter
Filter expression; null by default (indicating no filter). |
protected boolean |
m_filterable
True if this table can filter rows; false by default. |
protected ValueBinding |
m_filterValue
Value binding used to calculate row filter value. |
protected List |
m_unfilteredlist
The original, unfiltered list. |
Fields inherited from class com.webmethods.caf.faces.data.object.ListTableContentProvider |
---|
m_array, m_canTemplateRow, m_index, m_list, m_onCreateRow, m_onDeleteRow, m_rowId, m_rowType, m_sort, m_templateRow, m_var |
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
fExpireWithPageFlow |
Constructor Summary | |
---|---|
FilterableListTableContentProvider()
Default constructor. |
|
FilterableListTableContentProvider(List list)
Initializes provider with the given list |
|
FilterableListTableContentProvider(List list,
String filterValueBinding,
String rowVariable)
Initializes provider with the given list |
|
FilterableListTableContentProvider(Object[] array)
Initializes provider with the given array of objects |
|
FilterableListTableContentProvider(Object[] array,
String filterValueBinding,
String rowVariable)
Initializes provider with the given array of objects |
Method Summary | |
---|---|
protected void |
filter()
Updates m_list to be the filtered version of m_unfilteredlist ,
using the filter expression specified by m_filter . |
String |
getFilter()
Filter expression. |
ValueBinding |
getRowFilterValueBinding()
Value-binding which calculates the value to filter for the current row. |
boolean |
isFilterable()
True if this provider truely is filterable. |
void |
setFilter(String filter)
Filter expression. |
void |
setFilterable(boolean filterable)
True if this provider truely is filterable. |
void |
setList(List list)
Sets source list object. |
void |
setRowFilterValueBinding(ValueBinding binding)
Value-binding which calculates the value to filter for the current row. |
void |
setRowFilterValueBindingAsString(String binding)
Value-binding (in string form) which calculates the value to filter for the current row. |
protected void |
sort()
(Re-)sorts list according to sort info. |
Methods inherited from class com.webmethods.caf.faces.data.object.ListTableContentProvider |
---|
calculateRowId, calculateRowId, createRow, deleteRow, getArray, getCanTemplateRow, getCurrentRow, getList, getOnCreateRow, getOnDeleteRow, getPropertyKeys, getRowCount, getRowId, getRowIdBinding, getRowIndex, getRowType, getRowVariable, getSort, getType, getValue, hasProperty, isAddressable, isReadOnly, isReorderable, isRowAvailable, isTemplateRow, moveTo, newRow, setArray, setCanTemplateRow, setCurrentRow, setOnCreateRow, setOnDeleteRow, setRowById, setRowId, setRowIdBinding, setRowIndex, setRowType, setRowVariable, setSort, setTemplateRow, setValue, toString |
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter |
---|
getExpireWithPageFlow, setExpireWithPageFlow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.webmethods.caf.faces.data.ITableContentProvider |
---|
getCurrentRow, getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex, setRowVariable |
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider |
---|
getPropertyKeys, getType, getValue, hasProperty, toString |
Field Detail |
---|
protected List m_unfilteredlist
protected boolean m_filterable
protected String m_filter
protected ValueBinding m_filterValue
Constructor Detail |
---|
public FilterableListTableContentProvider()
Default constructor.
FilterableListTableContentProvider.setList(List)
or ListTableContentProvider.setArray(Object[])
property must be set before use.
public FilterableListTableContentProvider(List list)
list
- list of objectspublic FilterableListTableContentProvider(Object[] array)
array
- array of objectspublic FilterableListTableContentProvider(List list, String filterValueBinding, String rowVariable)
list
- list of objectspublic FilterableListTableContentProvider(Object[] array, String filterValueBinding, String rowVariable)
array
- array of objectsMethod Detail |
---|
public boolean isFilterable()
IFilterableTableContentProvider
isFilterable
in interface IFilterableTableContentProvider
public String getFilter()
IFilterableTableContentProvider
getFilter
in interface IFilterableTableContentProvider
public void setFilter(String filter)
IFilterableTableContentProvider
setFilter
in interface IFilterableTableContentProvider
protected void sort()
ListTableContentProvider
sort
in class ListTableContentProvider
ListTableContentProvider.setSort(ISortInfo)
public void setList(List list)
ListTableContentProvider
setList
in class ListTableContentProvider
list
- the listpublic void setFilterable(boolean filterable)
public ValueBinding getRowFilterValueBinding()
public void setRowFilterValueBinding(ValueBinding binding)
public void setRowFilterValueBindingAsString(String binding)
protected void filter()
m_list
to be the filtered version of m_unfilteredlist
,
using the filter expression specified by m_filter
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |