org.jdesktop.swingx.decorator
Interface HighlightPredicate

All Known Implementing Classes:
HighlightPredicate.AndHighlightPredicate, HighlightPredicate.ColumnHighlightPredicate, HighlightPredicate.DepthHighlightPredicate, HighlightPredicate.EqualsHighlightPredicate, HighlightPredicate.NotHighlightPredicate, HighlightPredicate.OrHighlightPredicate, HighlightPredicate.RowGroupHighlightPredicate, PatternPredicate, SearchPredicate

public interface HighlightPredicate

The predicate used by AbstractHighlighter to control highlight on/off.


Nested Class Summary
static class HighlightPredicate.AndHighlightPredicate
          Ands a list of predicates.
static class HighlightPredicate.ColumnHighlightPredicate
          A HighlightPredicate based on column index.
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.NotHighlightPredicate
          Negation of a HighlightPredicate.
static class HighlightPredicate.OrHighlightPredicate
          Or's a list of predicates.
static class HighlightPredicate.RowGroupHighlightPredicate
           
 
Field Summary
static HighlightPredicate ALWAYS
          Unconditional true.
static HighlightPredicate EDITABLE
          Is editable.
static HighlightPredicate EVEN
          Even rows.
static HighlightPredicate NEVER
          Unconditional false.
static HighlightPredicate ODD
          Odd rows.
static HighlightPredicate ROLLOVER_ROW
          Rollover Row.
 
Method Summary
 boolean isHighlighted(Component renderer, ComponentAdapter adapter)
          Returns a boolean to indicate whether the component should be highlighted.
 

Field Detail

ALWAYS

static final HighlightPredicate ALWAYS
Unconditional true.


NEVER

static final HighlightPredicate NEVER
Unconditional false.


ROLLOVER_ROW

static final HighlightPredicate ROLLOVER_ROW
Rollover Row.


EDITABLE

static final HighlightPredicate EDITABLE
Is editable.


EVEN

static final HighlightPredicate EVEN
Even rows. PENDING: this is zero based (that is "really" even 0, 2, 4 ..), differing from the old AlternateRowHighlighter.


ODD

static final HighlightPredicate ODD
Odd rows. PENDING: this is zero based (that is 1, 3, 4 ..), differs from the old implementation which was one based?

Method Detail

isHighlighted

boolean isHighlighted(Component renderer,
                      ComponentAdapter adapter)
Returns a boolean to indicate whether the component should be highlighted.

Parameters:
renderer - the cell renderer component that is to be decorated
adapter - the ComponentAdapter for this decorate operation
Returns:
a boolean to indicate whether the component should be highlighted.