public interface HighlightPredicate
Note: implementations should be immutable because Highlighter
s
guarantee to notify listeners on any state change which might effect the highlight.
They can't comply to that contract if predicate internal state changes under their
feet. If dynamic predicate state is required, the safe alternative is to create
and set a new predicate.
AbstractHighlighter
Modifier and Type | Interface and Description |
---|---|
static class |
HighlightPredicate.AndHighlightPredicate
Ands a list of predicates.
|
static class |
HighlightPredicate.ColumnHighlightPredicate
A HighlightPredicate based on column index.
|
static class |
HighlightPredicate.ColumnTypeHighlightPredicate
Predicate testing the componentAdapter column type against a given
Class.
|
static class |
HighlightPredicate.DepthHighlightPredicate
A
HighlightPredicate based on adapter depth. |
static class |
HighlightPredicate.EqualsHighlightPredicate
Predicate testing the componentAdapter value against a fixed
Object.
|
static class |
HighlightPredicate.IdentifierHighlightPredicate
A HighlightPredicate based on column identifier.
|
static class |
HighlightPredicate.NotHighlightPredicate
Negation of a HighlightPredicate.
|
static class |
HighlightPredicate.OrHighlightPredicate
Or's a list of predicates.
|
static class |
HighlightPredicate.RowGroupHighlightPredicate |
static class |
HighlightPredicate.TypeHighlightPredicate
Predicate testing the componentAdapter value type against a given
Class.
|
Modifier and Type | Field and Description |
---|---|
static HighlightPredicate |
ALWAYS
Unconditional true.
|
static HighlightPredicate |
BIG_DECIMAL_NEGATIVE
Negative BigDecimals.
|
static HighlightPredicate |
EDITABLE
Is editable.
|
static Integer[] |
EMPTY_INTEGER_ARRAY |
static Object[] |
EMPTY_OBJECT_ARRAY |
static HighlightPredicate[] |
EMPTY_PREDICATE_ARRAY |
static HighlightPredicate |
EVEN
Even rows.
|
static HighlightPredicate |
HAS_FOCUS
Focus predicate.
|
static HighlightPredicate |
INTEGER_NEGATIVE
Negative Number.
|
static HighlightPredicate |
IS_FOLDER
Folder predicate - convenience: same as !
|
static HighlightPredicate |
IS_LEAF
Leaf predicate.
|
static HighlightPredicate |
IS_SELECTED
Selected predicate.
|
static HighlightPredicate |
IS_TEXT_TRUNCATED
Determines if the displayed text is truncated.
|
static HighlightPredicate |
NEVER
Unconditional false.
|
static HighlightPredicate |
ODD
Odd rows.
|
static HighlightPredicate |
READ_ONLY
Convenience for read-only (same as !
|
static HighlightPredicate |
ROLLOVER_CELL
Rollover Cell.
|
static HighlightPredicate |
ROLLOVER_COLUMN
Rollover Column.
|
static HighlightPredicate |
ROLLOVER_ROW
Rollover Row.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isHighlighted(Component renderer,
ComponentAdapter adapter)
Returns a boolean to indicate whether the component should be
highlighted.
|
static final HighlightPredicate ALWAYS
static final HighlightPredicate NEVER
static final HighlightPredicate ROLLOVER_ROW
static final HighlightPredicate ROLLOVER_COLUMN
static final HighlightPredicate ROLLOVER_CELL
static final HighlightPredicate EDITABLE
static final HighlightPredicate READ_ONLY
static final HighlightPredicate IS_LEAF
static final HighlightPredicate IS_FOLDER
static final HighlightPredicate IS_SELECTED
static final HighlightPredicate IS_TEXT_TRUNCATED
static final HighlightPredicate HAS_FOCUS
static final HighlightPredicate EVEN
static final HighlightPredicate ODD
static final HighlightPredicate BIG_DECIMAL_NEGATIVE
static final HighlightPredicate INTEGER_NEGATIVE
static final HighlightPredicate[] EMPTY_PREDICATE_ARRAY
static final Object[] EMPTY_OBJECT_ARRAY
static final Integer[] EMPTY_INTEGER_ARRAY
boolean isHighlighted(Component renderer, ComponentAdapter adapter)
Note: both parameters should be considered strictly read-only!
renderer
- the cell renderer component that is to be decorated,
must not be nulladapter
- the ComponentAdapter for this decorate operation,
most not be nullWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses