public class MyIdentifierHighlightPredicate extends Object implements org.jdesktop.swingx.decorator.HighlightPredicate
org.jdesktop.swingx.decorator.HighlightPredicate.AndHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.ColumnHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.ColumnTypeHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.DepthHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.EqualsHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.IdentifierHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.NotHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.OrHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.RowGroupHighlightPredicate, org.jdesktop.swingx.decorator.HighlightPredicate.TypeHighlightPredicate| Modifier and Type | Field and Description |
|---|---|
protected List<Object> |
columnList |
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 and Description |
|---|
MyIdentifierHighlightPredicate(Object... columns)
Instantiates a predicate which returns true for the
given column identifiers.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getIdentifiers() |
boolean |
isHighlighted(Component renderer,
org.jdesktop.swingx.decorator.ComponentAdapter adapter)
This implementation returns true if the adapter's column
is contained in this predicates list.
|
public MyIdentifierHighlightPredicate(Object... columns)
columns - the identitiers of the columns to highlight.public boolean isHighlighted(Component renderer, org.jdesktop.swingx.decorator.ComponentAdapter adapter)
isHighlighted in interface org.jdesktop.swingx.decorator.HighlightPredicatepublic Object[] getIdentifiers()
Copyright © 2012-2013 Ifremer. All Rights Reserved.