org.jdesktop.swingx.decorator
Class ComponentOrientationHighlighter
- java.lang.Object
-
- org.jdesktop.swingx.decorator.AbstractHighlighter
-
- org.jdesktop.swingx.decorator.ComponentOrientationHighlighter
-
- All Implemented Interfaces:
- Highlighter
public class ComponentOrientationHighlighter extends AbstractHighlighter
A Highlighter which applies the ComponentOrientation to the component.
-
-
Constructor Summary
Constructors Constructor and Description ComponentOrientationHighlighter()Instantiates a ComponentOrientationHighlighter withComponentOrientation.LEFT_TO_RIGHT.ComponentOrientationHighlighter(java.awt.ComponentOrientation co)Instantiates a ComponentOrientationHighlighter with the given ComponentOrientation.ComponentOrientationHighlighter(HighlightPredicate predicate)Instantiates a ComponentOrientationHighlighter with the given HighlightPredicate andComponentOrientation.LEFT_TO_RIGHT.ComponentOrientationHighlighter(HighlightPredicate predicate, java.awt.ComponentOrientation co)Instantiates a ComponentOrientationHighlighter with the given ComponentOrientation and HighlightPredicate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.ComponentOrientationgetComponentOrientation()Returns the ComponentOrientation to apply.voidsetComponentOrientation(java.awt.ComponentOrientation co)Sets the ComponentOrientation to apply.-
Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter
addChangeListener, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate
-
-
-
-
Constructor Detail
-
ComponentOrientationHighlighter
public ComponentOrientationHighlighter()
Instantiates a ComponentOrientationHighlighter withComponentOrientation.LEFT_TO_RIGHT. The Highlighter is applied always.
-
ComponentOrientationHighlighter
public ComponentOrientationHighlighter(HighlightPredicate predicate)
Instantiates a ComponentOrientationHighlighter with the given HighlightPredicate andComponentOrientation.LEFT_TO_RIGHT.- Parameters:
predicate- the HighlightPredicate to use, may be null to default to ALWAYS.
-
ComponentOrientationHighlighter
public ComponentOrientationHighlighter(java.awt.ComponentOrientation co)
Instantiates a ComponentOrientationHighlighter with the given ComponentOrientation. The Highlighter is applied always.- Parameters:
co- the ComponentOrientation to apply
-
ComponentOrientationHighlighter
public ComponentOrientationHighlighter(HighlightPredicate predicate, java.awt.ComponentOrientation co)
Instantiates a ComponentOrientationHighlighter with the given ComponentOrientation and HighlightPredicate.- Parameters:
predicate- the HighlightPredicate to use, may be null to default to ALWAYS.co- the ComponentOrientation to apply, may be null
-
-
Method Detail
-
getComponentOrientation
public java.awt.ComponentOrientation getComponentOrientation()
Returns the ComponentOrientation to apply.- Returns:
- the ComponentOrientation to apply, guaranteed to be not null.
-
setComponentOrientation
public void setComponentOrientation(java.awt.ComponentOrientation co)
Sets the ComponentOrientation to apply.- Parameters:
co- the co to set, may be null to denote fallback to LEFT_TO_RIGHT
-
-
DataMelt 3.0 © DataMelt by jWork.ORG