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 voidfilter()Performs the filter operation defined by this filter.intgetSize()Returns the number of records that remain in this filter's output ("view") after the input records have been filtered.protected voidinit()Provides filter-specific initialization.protected intmapTowardModel(int row)PRE: 0 <= row <getSize();protected intmapTowardView(int row)PRE: 0 <= row <getInputSize();voidrefresh()PENDING JW: fires always, even without sorter ..protected voidreset()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:FilterProvides filter-specific initialization. Called from theFilterconstructor.
-
reset
protected void reset()
Description copied from class:FilterResets the internal row mappings from this filter to the previous filter.
-
filter
protected void filter()
Description copied from class:FilterPerforms the filter operation defined by this filter.
-
getSize
public int getSize()
Description copied from class:FilterReturns 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:FilterPRE: 0 <= row <getSize();- Specified by:
mapTowardModelin classFilter- Returns:
- TODO:
-
mapTowardView
protected int mapTowardView(int row)
Description copied from class:FilterPRE: 0 <= row <getInputSize();- Overrides:
mapTowardViewin classFilter- Returns:
- TODO:
-
-