|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.decorator.Filter
public abstract class Filter
A Filter
is used to filter the data presented in a
data-aware component such as a JXList
or a
JXTable
. Filtering involves interposing one or
more filters in a FilterPipeline
between
a data model and a view to change the apparent order and/or number of records
in the data model.
FilterPipeline
,
JXTable
Constructor Summary | |
---|---|
Filter()
Constructs a new filter for the first column of a data model. |
|
Filter(int column)
Constructs a new filter for the specified column of a data model in absolute model coordinates. |
Method Summary | |
---|---|
int |
convertRowIndexToModel(int row)
Convert row index from view coordinates to model coordinates accounting for the presence of sorters and filters. |
int |
convertRowIndexToView(int row)
Convert row index from model coordinates to view coordinates accounting for the presence of sorters and filters. |
int |
getColumnIndex()
Returns the model index of the column that this filter has been bound to. |
java.lang.String |
getColumnName()
|
abstract int |
getSize()
Returns the number of records that remain in this filter's output ("view") after the input records have been filtered. |
java.lang.String |
getStringAt(int row,
int column)
Returns the string representation at the specified row and column. |
java.lang.Object |
getValueAt(int row,
int column)
Returns the value at the specified row and column. |
boolean |
isCellEditable(int row,
int column)
Returns editability of the cell identified by the specified row and column index. |
void |
refresh()
Refreshes the internal state of the filter, performs the filter
operation and regenerates row mappings from the previous filter. |
void |
setColumnIndex(int modelColumn)
TODO: PENDING: not tested! |
void |
setValueAt(java.lang.Object aValue,
int row,
int column)
Sets the specified value as the new value for the cell identified by the specified row and column index. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Filter()
public Filter(int column)
column
- column index in absolute model coordinatesMethod Detail |
---|
public void refresh()
filter
operation and regenerates row mappings from the previous filter. If this
filter is bound to a filter pipeline (as most filters are), it also triggers a
filterChanged
notification.
public int getColumnIndex()
public void setColumnIndex(int modelColumn)
modelColumn
- column index in absolute model coordinatespublic java.lang.String getColumnName()
public int convertRowIndexToModel(int row)
row
- the row index in this filter's output ("view") coordinates
public int convertRowIndexToView(int row)
row
- row index in model coordinates
public java.lang.Object getValueAt(int row, int column)
row
- the row index in this filter's output ("view") coordinatescolumn
- column index in absolute model coordinates
public java.lang.String getStringAt(int row, int column)
row
- the row index in this filter's output ("view") coordinatescolumn
- column index in model coordinates
public void setValueAt(java.lang.Object aValue, int row, int column)
aValue
- new value for the specified cellrow
- the row index in this filter's output ("view") coordinatescolumn
- the column index in absolute model coordinatespublic boolean isCellEditable(int row, int column)
getSize()
row
- the row index in this filter's output ("view") coordinatescolumn
- column index in model coordinates
public abstract int getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |