Package org.jdesktop.swingx.decorator
Class FilterPipeline.IdentityFilter
- java.lang.Object
-
- org.jdesktop.swingx.decorator.Filter
-
- org.jdesktop.swingx.decorator.FilterPipeline.IdentityFilter
-
- Enclosing class:
- FilterPipeline
public class FilterPipeline.IdentityFilter extends Filter
-
-
Field Summary
-
Fields inherited from class org.jdesktop.swingx.decorator.Filter
adapter, fromPrevious, pipeline
-
-
Constructor Summary
Constructors Constructor Description IdentityFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
filter()
Performs the filter operation defined by this filter.int
getSize()
Returns the number of records that remain in this filter's output ("view") after the input records have been filtered.protected void
init()
Provides filter-specific initialization.protected int
mapTowardModel(int row)
PRE: 0 <= row <getSize();
protected int
mapTowardView(int row)
PRE: 0 <= row <getInputSize();
void
refresh()
PENDING JW: fires always, even without sorter ..protected void
reset()
Resets the internal row mappings from this filter to the previous filter.-
Methods inherited from class org.jdesktop.swingx.decorator.Filter
assign, convertRowIndexToModel, convertRowIndexToView, fireFilterChanged, getColumnIndex, getColumnName, getInputSize, getInputString, getInputValue, getMappingFilter, getPipeline, getStringAt, getValueAt, isCellEditable, refresh, setColumnIndex, setValueAt
-
-
-
-
Method Detail
-
refresh
public void refresh()
PENDING JW: fires always, even without sorter .. Could do better - but will break behaviour of apps which relied on the (buggy) side-effect of repainting on each change.
-
init
protected void init()
Description copied from class:Filter
Provides filter-specific initialization. Called from theFilter
constructor.
-
reset
protected void reset()
Description copied from class:Filter
Resets the internal row mappings from this filter to the previous filter.
-
filter
protected void filter()
Description copied from class:Filter
Performs the filter operation defined by this filter.
-
getSize
public int getSize()
Description copied from class:Filter
Returns the number of records that remain in this filter's output ("view") after the input records have been filtered.
-
mapTowardModel
protected int mapTowardModel(int row)
Description copied from class:Filter
PRE: 0 <= row <getSize();
- Specified by:
mapTowardModel
in classFilter
- Returns:
- TODO:
-
mapTowardView
protected int mapTowardView(int row)
Description copied from class:Filter
PRE: 0 <= row <getInputSize();
- Overrides:
mapTowardView
in classFilter
- Returns:
- TODO:
-
-