|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.decorator.Filter
org.jdesktop.swingx.decorator.Sorter
org.jdesktop.swingx.decorator.ShuttleSorter
public class ShuttleSorter
Pluggable sorting filter.
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.decorator.Filter |
|---|
adapter, fromPrevious, pipeline |
| Constructor Summary | |
|---|---|
ShuttleSorter()
|
|
ShuttleSorter(int col,
boolean ascending)
|
|
ShuttleSorter(int col,
boolean ascending,
java.util.Comparator comparator)
|
|
| Method Summary | |
|---|---|
protected boolean |
canFilter()
This is a quickfix for #55-swingx: NPE if sorter is in pipeline. |
protected void |
filter()
Performs the sort. |
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 void |
reset()
Resets the internal row mappings from this filter to the previous filter. |
protected void |
sort(int[] from,
int[] to,
int low,
int high)
|
| Methods inherited from class org.jdesktop.swingx.decorator.Sorter |
|---|
compare, getCollator, getComparator, getSortKey, getSortOrder, isAscending, refresh, refreshCollator, setAscending, setComparator, setSortKey, toggle |
| Methods inherited from class org.jdesktop.swingx.decorator.Filter |
|---|
assign, convertRowIndexToModel, convertRowIndexToView, fireFilterChanged, getColumnIndex, getColumnName, getInputSize, getInputString, getInputValue, getMappingFilter, getPipeline, getStringAt, getValueAt, isCellEditable, mapTowardView, refresh, setColumnIndex, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShuttleSorter()
public ShuttleSorter(int col,
boolean ascending)
public ShuttleSorter(int col,
boolean ascending,
java.util.Comparator comparator)
| Method Detail |
|---|
protected void init()
FilterFilter
constructor.
init in class Filterprotected void reset()
reset in class Filterprotected void filter()
filter in class FiltercanFilter()protected boolean canFilter()
PENDING: should be done higher up?
public int getSize()
Filter
getSize in class Filterprotected int mapTowardModel(int row)
FiltergetSize();
mapTowardModel in class Filter
protected void sort(int[] from,
int[] to,
int low,
int high)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||