org.jdesktop.swingx.decorator
Class FilterPipeline.IdentityFilter

java.lang.Object
  extended by org.jdesktop.swingx.decorator.Filter
      extended by org.jdesktop.swingx.decorator.FilterPipeline.IdentityFilter
Enclosing class:
FilterPipeline

public static class FilterPipeline.IdentityFilter
extends Filter


Field Summary
 
Fields inherited from class org.jdesktop.swingx.decorator.Filter
adapter, fromPrevious, pipeline
 
Constructor Summary
FilterPipeline.IdentityFilter()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterPipeline.IdentityFilter

public FilterPipeline.IdentityFilter()
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.

Overrides:
refresh in class Filter

init

protected void init()
Description copied from class: Filter
Provides filter-specific initialization. Called from the Filter constructor.

Specified by:
init in class Filter

reset

protected void reset()
Description copied from class: Filter
Resets the internal row mappings from this filter to the previous filter.

Specified by:
reset in class Filter

filter

protected void filter()
Description copied from class: Filter
Performs the filter operation defined by this filter.

Specified by:
filter in class 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.

Specified by:
getSize in 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 class Filter
Returns:
TODO:

mapTowardView

protected int mapTowardView(int row)
Description copied from class: Filter
PRE: 0 <= row < getInputSize();

Overrides:
mapTowardView in class Filter
Returns:
TODO: