|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.decorator.PatternPredicate
public class PatternPredicate
Pattern based HighlightPredicate.
| Nested Class Summary |
|---|
| Field Summary | |
|---|---|
static int |
ALL
|
| Fields inherited from interface org.jdesktop.swingx.decorator.HighlightPredicate |
|---|
ALWAYS, BIG_DECIMAL_NEGATIVE, EDITABLE, EMPTY_INTEGER_ARRAY, EMPTY_OBJECT_ARRAY, EMPTY_PREDICATE_ARRAY, EVEN, HAS_FOCUS, INTEGER_NEGATIVE, IS_FOLDER, IS_LEAF, IS_SELECTED, IS_TEXT_TRUNCATED, NEVER, ODD, READ_ONLY, ROLLOVER_CELL, ROLLOVER_COLUMN, ROLLOVER_ROW |
| Constructor Summary | |
|---|---|
PatternPredicate(java.util.regex.Pattern pattern,
int testColumn)
Instantiates a Predicate with the given Pattern and testColumn index (in model coordinates) highlighting all columns. |
|
PatternPredicate(java.util.regex.Pattern pattern,
int testColumn,
int decorateColumn)
Instantiates a Predicate with the given Pattern and test-/decorate column index in model coordinates. |
|
PatternPredicate(java.lang.String regex,
int testColumn)
Instantiates a Predicate with the given regex and test column index in model coordinates. |
|
PatternPredicate(java.lang.String regex,
int testColumn,
int decorateColumn)
Instantiates a Predicate with the given regex and test-/decorate column index in model coordinates. |
|
| Method Summary | |
|---|---|
int |
getHighlightColumn()
|
java.util.regex.Pattern |
getPattern()
|
int |
getTestColumn()
|
boolean |
isHighlighted(java.awt.Component renderer,
ComponentAdapter adapter)
Returns a boolean to indicate whether the component should be highlighted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ALL
| Constructor Detail |
|---|
public PatternPredicate(java.util.regex.Pattern pattern,
int testColumn)
pattern - the Pattern to test the cell value againsttestColumn - the column index of the cell which contains the value
to test against the pattern
public PatternPredicate(java.util.regex.Pattern pattern,
int testColumn,
int decorateColumn)
pattern - the Pattern to test the cell value againsttestColumn - the column index of the cell which contains the value
to test against the patterndecorateColumn - the column index of the cell which should be
decorated if the test against the value succeeds.
public PatternPredicate(java.lang.String regex,
int testColumn,
int decorateColumn)
regex - the regex string to test the cell value againsttestColumn - the column index of the cell which contains the value
to test against the patterndecorateColumn - the column index of the cell which should be
decorated if the test against the value succeeds.
public PatternPredicate(java.lang.String regex,
int testColumn)
regex - the regex string to test the cell value againsttestColumn - the column index of the cell which contains the value
to test against the pattern| Method Detail |
|---|
public boolean isHighlighted(java.awt.Component renderer,
ComponentAdapter adapter)
HighlightPredicateNote: both parameters should be considered strictly read-only!
isHighlighted in interface HighlightPredicaterenderer - the cell renderer component that is to be decorated,
must not be nulladapter - the ComponentAdapter for this decorate operation,
most not be null
public int getHighlightColumn()
public java.util.regex.Pattern getPattern()
public int getTestColumn()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||