|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.decorator.AbstractHighlighter
org.jdesktop.swingx.decorator.ComponentOrientationHighlighter
public class ComponentOrientationHighlighter
A Highlighter which applies the ComponentOrientation to the component.
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
|---|
listenerList |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
|---|
addChangeListener, areEqual, canHighlight, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 apply
public ComponentOrientationHighlighter(HighlightPredicate predicate,
ComponentOrientation co)
predicate - the HighlightPredicate to use, may be null to default to ALWAYS.co - the ComponentOrientation to apply, may be null| Method Detail |
|---|
public ComponentOrientation getComponentOrientation()
public void setComponentOrientation(ComponentOrientation co)
co - the co to set, may be null to denote fallback to LEFT_TO_RIGHT
protected Component doHighlight(Component component,
ComponentAdapter adapter)
AbstractHighlighter
doHighlight in class AbstractHighlightercomponent - the cell renderer component that is to be decoratedadapter - the ComponentAdapter for this decorate operationAbstractHighlighter.highlight(Component, ComponentAdapter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||