public class FilterableListTableContentProvider extends ListTableContentProvider implements IFilterableTableContentProvider
List
and Array objects to the IFilterableTableContentProvider
interface.Modifier and Type | Field and Description |
---|---|
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 ValueExpression |
m_filterValue
Value binding used to calculate row filter value.
|
protected List<Object> |
m_unfilteredlist
The original, unfiltered list.
|
m_array, m_canTemplateRow, m_index, m_list, m_onCreateRow, m_onDeleteRow, m_rowId, m_rowType, m_sort, m_templateRow, m_var
fExpireWithPageFlow
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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()
Deprecated.
use
getRowFilterValueExpression() instead |
ValueExpression |
getRowFilterValueExpression()
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)
Deprecated.
use
setRowFilterValueExpression(ValueExpression) instead |
void |
setRowFilterValueBindingAsString(String binding)
Value-binding (in string form) which calculates the value to filter for the current row.
|
void |
setRowFilterValueExpression(ValueExpression binding)
Value-binding which calculates the value to filter for the current row.
|
protected void |
sort()
(Re-)sorts list according to sort info.
|
calculateRowId, calculateRowId, createRow, deleteRow, getArray, getCanTemplateRow, getCurrentRow, getList, getOnCreateRow, getOnCreateRowExpression, getOnDeleteRow, getOnDeleteRowExpression, getPropertyKeys, getRowCount, getRowId, getRowIdBinding, getRowIdExpression, getRowIndex, getRowType, getRowVariable, getSort, getType, getValue, hasProperty, isAddressable, isReadOnly, isReorderable, isRowAvailable, isTemplateRow, moveTo, newRow, setArray, setCanTemplateRow, setCurrentRow, setOnCreateRow, setOnCreateRowExpression, setOnDeleteRow, setOnDeleteRowExpression, setRowById, setRowId, setRowIdBinding, setRowIdExpression, setRowIndex, setRowType, setRowVariable, setSort, setTemplateRow, setValue, toString
getExpireWithPageFlow, setExpireWithPageFlow
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCurrentRow, getRowCount, getRowIndex, getRowVariable, isRowAvailable, setRowIndex, setRowVariable
getPropertyKeys, getType, getValue, hasProperty, toString
protected boolean m_filterable
protected String m_filter
protected ValueExpression m_filterValue
public FilterableListTableContentProvider()
Default constructor.
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 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)
@Deprecated public ValueBinding getRowFilterValueBinding()
getRowFilterValueExpression()
instead@Deprecated public void setRowFilterValueBinding(ValueBinding binding)
setRowFilterValueExpression(ValueExpression)
insteadpublic ValueExpression getRowFilterValueExpression()
public void setRowFilterValueExpression(ValueExpression 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
.