|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swing.decorator.Filter
org.jdesktop.swing.decorator.PatternFilter
Pluggable pattern filter.
| Field Summary | |
protected Pattern |
pattern
|
| Fields inherited from class org.jdesktop.swing.decorator.Filter |
adapter |
| Constructor Summary | |
PatternFilter()
|
|
PatternFilter(String regularExpr,
int matchFlags,
int col)
|
|
| Method Summary | |
protected void |
filter()
Performs the filter operation defined by this filter. |
protected void |
generateMappingFromPrevious()
Generates the row mappings from the previous filter to this filter. |
Pattern |
getPattern()
Returns the pattern used by this filter for matching. |
int |
getSize()
Returns the number of records that remain in this filter's "view" after the input records have been filtered. |
protected void |
init()
Provides filter-specific initialization. |
protected void |
reset()
Resets the internal row mappings from this filter to the previous filter. |
void |
setPattern(Pattern pattern)
Sets the pattern used by this filter for matching. |
void |
setPattern(String regularExpr,
int matchFlags)
|
boolean |
test(int row)
|
protected int |
translateFromPreviousFilter(int row)
Returns the row in this filter that maps to the specified row in the previous filter. |
protected int |
translateToPreviousFilter(int row)
Returns the row in the previous filter that maps to the specified row in this filter. |
| Methods inherited from class org.jdesktop.swing.decorator.Filter |
convertRowIndexToModel, convertRowIndexToView, getColumnIndex, getColumnName, getInputSize, getInputValue, getPipeline, getValueAt, isCellEditable, refresh, refresh, setValueAt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Pattern pattern
| Constructor Detail |
public PatternFilter()
public PatternFilter(String regularExpr,
int matchFlags,
int col)
| Method Detail |
protected void init()
FilterFilter
constructor.
init in class Filter
public void setPattern(String regularExpr,
int matchFlags)
public void setPattern(Pattern pattern)
setPattern in interface PatternMatcherpattern - the pattern used by this filter for matchingPatternpublic Pattern getPattern()
getPattern in interface PatternMatcherPatternprotected void reset()
reset in class Filterprotected void generateMappingFromPrevious()
generateMappingFromPrevious in class Filterprotected void filter()
Filter
filter in class Filterpublic boolean test(int row)
public int getSize()
Filter
getSize in class Filterprotected int translateFromPreviousFilter(int row)
convertRowIndexToView
translateFromPreviousFilter in class Filterrow - a row index in the previous filter's "view" of the data model
protected int translateToPreviousFilter(int row)
convertRowIndexToModel
translateToPreviousFilter in class Filterrow - a row index in this filter's "view" of the data model
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||