|
||||||||||
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.PatternFilter
public class PatternFilter
Pluggable pattern filter.
Field Summary | |
---|---|
protected java.util.regex.Pattern |
pattern
|
Fields inherited from class org.jdesktop.swingx.decorator.Filter |
---|
adapter, fromPrevious, pipeline |
Constructor Summary | |
---|---|
PatternFilter()
|
|
PatternFilter(java.lang.String regularExpr,
int matchFlags,
int col)
|
Method Summary | |
---|---|
protected void |
filter()
Performs the filter operation defined by this filter. |
java.util.regex.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 int |
mapTowardModel(int row)
PRE: 0 <= row < getSize(); |
protected void |
reset()
Resets the internal row mappings from this filter to the previous filter. |
void |
setPattern(java.util.regex.Pattern pattern)
Sets the pattern used by this filter for matching. |
void |
setPattern(java.lang.String regularExpr,
int matchFlags)
|
boolean |
test(int row)
|
Methods inherited from class org.jdesktop.swingx.decorator.Filter |
---|
assign, convertRowIndexToModel, convertRowIndexToView, getColumnIndex, getColumnName, getInputSize, getInputValue, getPipeline, getValueAt, isCellEditable, mapTowardView, refresh, refresh, setColumnIndex, setValueAt, translateFromPreviousFilter, translateToPreviousFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.regex.Pattern pattern
Constructor Detail |
---|
public PatternFilter()
public PatternFilter(java.lang.String regularExpr, int matchFlags, int col)
Method Detail |
---|
protected void init()
Filter
Filter
constructor.
init
in class Filter
public void setPattern(java.lang.String regularExpr, int matchFlags)
public void setPattern(java.util.regex.Pattern pattern)
setPattern
in interface PatternMatcher
pattern
- the pattern used by this filter for matchingPattern
public java.util.regex.Pattern getPattern()
getPattern
in interface PatternMatcher
Pattern
protected void reset()
reset
in class Filter
protected void filter()
Filter
filter
in class Filter
public boolean test(int row)
row
-
public int getSize()
Filter
getSize
in class Filter
protected int mapTowardModel(int row)
Filter
mapTowardModel
in class Filter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |