public class FilterableSelectableListTableContentProvider extends SelectableListTableContentProvider implements IFilterableTableContentProvider
List
and Array objects to the IFilterableTableContentProvider
the and ISelectableTableContentProvider
interfaces.Modifier and Type | Class and Description |
---|---|
protected static class |
FilterableSelectableListTableContentProvider.RowFilterableValueDecorator
Filter value decorator for wrapped table rows, using a binding expression to calculate the value.
|
SelectableListTableContentProvider.Row, SelectableListTableContentProvider.RowComparator
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; true by default.
|
protected ValueBinding |
m_filterValue
Value binding used to calculate row filter value.
|
protected List |
m_unfilteredlist
The original, unfiltered list.
|
m_autoIdCounter, m_map, m_originalList, m_selectableHelper
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 |
---|
FilterableSelectableListTableContentProvider()
Default constructor.
|
FilterableSelectableListTableContentProvider(List list)
Constructor.
|
FilterableSelectableListTableContentProvider(List list,
String rowIdBinding,
String filterValueBinding,
String rowVariable)
Fully initialized constructor.
|
FilterableSelectableListTableContentProvider(Object[] array)
Constructor.
|
FilterableSelectableListTableContentProvider(Object[] array,
String rowIdBinding,
String filterValueBinding,
String rowVariable)
Fully initialized constructor.
|
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()
Value-binding which calculates the value to filter for the current row.
|
String |
getRowFilterValueBindingAsString() |
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 a list to wrap
|
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.
|
createRow, deleteRow, getCurrentRow, getList, getNeedRefresh, getRowId, getRowSelectedCount, getRowSelectedIds, getRowUnselectedIds, getSelectedRows, getUseUnselectedModel, isAddressable, isAutoRefresh, isRowSelected, moveTo, refresh, setAutoRefresh, setCurrentRow, setNeedRefresh, setRowById, setRowSelected, setRowSelectedIds, setRowUnselectedIds, setRowVariable, setTemplateRow, supportsAutoRefresh, updateOriginalList
calculateRowId, calculateRowId, getArray, getCanTemplateRow, getOnCreateRow, getOnDeleteRow, getPropertyKeys, getRowCount, getRowIdBinding, getRowIndex, getRowType, getRowVariable, getSort, getType, getValue, hasProperty, isReadOnly, isReorderable, isRowAvailable, isTemplateRow, newRow, setArray, setCanTemplateRow, setOnCreateRow, setOnDeleteRow, setRowId, setRowIdBinding, setRowIndex, setRowType, setSort, 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 List m_unfilteredlist
protected boolean m_filterable
protected String m_filter
protected ValueBinding m_filterValue
public FilterableSelectableListTableContentProvider()
setList(List)
or ListTableContentProvider.setArray(Object[])
, ListTableContentProvider.setRowIdBinding(ValueBinding)
and
SelectableListTableContentProvider.setRowVariable(String)
to be set before use.public FilterableSelectableListTableContentProvider(List list)
ListTableContentProvider.setRowIdBinding(ValueBinding)
and
SelectableListTableContentProvider.setRowVariable(String)
to be set before use.list
- a list to wrappublic FilterableSelectableListTableContentProvider(List list, String rowIdBinding, String filterValueBinding, String rowVariable)
list
- a list to wraprowIdBinding
- row id binding expressionfilterValueBinding
- Value-binding which calculates the value to filter for the current row.rowVariable
- row variable to use in the expression for accessing list elements datapublic FilterableSelectableListTableContentProvider(Object[] array)
ListTableContentProvider.setRowIdBinding(ValueBinding)
and
SelectableListTableContentProvider.setRowVariable(String)
to be set before use.array
- an array to wrappublic FilterableSelectableListTableContentProvider(Object[] array, String rowIdBinding, String filterValueBinding, String rowVariable)
array
- an array to wraprowIdBinding
- row id binding expressionfilterValueBinding
- Value-binding which calculates the value to filter for the current row.rowVariable
- row variable to use in the expression for accessing list elements datapublic 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 SelectableListTableContentProvider
ListTableContentProvider.setSort(ISortInfo)
public void setList(List list)
SelectableListTableContentProvider
setList
in class SelectableListTableContentProvider
list
- a listpublic void setFilterable(boolean filterable)
public ValueBinding getRowFilterValueBinding()
public void setRowFilterValueBinding(ValueBinding binding)
public String getRowFilterValueBindingAsString()
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
.