public class ComponentOrientationHighlighter extends AbstractHighlighter
Modifier and Type | Field and Description |
---|---|
private ComponentOrientation |
co |
listenerList
Constructor and Description |
---|
ComponentOrientationHighlighter()
Instantiates a ComponentOrientationHighlighter with
ComponentOrientation.LEFT_TO_RIGHT . |
ComponentOrientationHighlighter(ComponentOrientation co)
Instantiates a ComponentOrientationHighlighter with the given ComponentOrientation.
|
ComponentOrientationHighlighter(HighlightPredicate predicate)
Instantiates a ComponentOrientationHighlighter with the given HighlightPredicate
and
ComponentOrientation.LEFT_TO_RIGHT . |
ComponentOrientationHighlighter(HighlightPredicate predicate,
ComponentOrientation co)
Instantiates a ComponentOrientationHighlighter with the given ComponentOrientation and HighlightPredicate.
|
Modifier and Type | Method and Description |
---|---|
protected Component |
doHighlight(Component component,
ComponentAdapter adapter)
Apply the highlights.
|
ComponentOrientation |
getComponentOrientation()
Returns the ComponentOrientation to apply.
|
void |
setComponentOrientation(ComponentOrientation co)
Sets the ComponentOrientation to apply.
|
addChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate
private ComponentOrientation co
public ComponentOrientationHighlighter()
ComponentOrientation.LEFT_TO_RIGHT
.
The Highlighter is applied always.public ComponentOrientationHighlighter(HighlightPredicate predicate)
ComponentOrientation.LEFT_TO_RIGHT
.predicate
- the HighlightPredicate to use, may be null to default to ALWAYS.public ComponentOrientationHighlighter(ComponentOrientation co)
co
- the ComponentOrientation to applypublic ComponentOrientationHighlighter(HighlightPredicate predicate, ComponentOrientation co)
predicate
- the HighlightPredicate to use, may be null to default to ALWAYS.co
- the ComponentOrientation to apply, may be nullpublic ComponentOrientation getComponentOrientation()
public void setComponentOrientation(ComponentOrientation co)
co
- the co to set, may be null to denote fallback to LEFT_TO_RIGHTprotected Component doHighlight(Component component, ComponentAdapter adapter)
AbstractHighlighter
doHighlight
in class AbstractHighlighter
component
- the cell renderer component that is to be decoratedadapter
- the ComponentAdapter for this decorate operationAbstractHighlighter.highlight(Component, ComponentAdapter)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses