|
||||||||||
| 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.CompoundHighlighter
public class CompoundHighlighter
A class which manages the lists of Highlighters.
Highlighter| Field Summary | |
|---|---|
static Highlighter[] |
EMPTY_HIGHLIGHTERS
|
| Constructor Summary | |
|---|---|
CompoundHighlighter(Highlighter... inList)
Instantiates a CompoundHighlighter containing the given Highlighters. |
|
CompoundHighlighter(HighlightPredicate predicate,
Highlighter... inList)
Instantiates a CompoundHighlighter with the given predicate containing the given Highlighters. |
|
| Method Summary | |
|---|---|
void |
addHighlighter(Highlighter highlighter)
Appends a highlighter to the pipeline. |
void |
addHighlighter(Highlighter highlighter,
boolean prepend)
Adds a highlighter to the pipeline. |
Highlighter[] |
getHighlighters()
Returns an array of contained Highlighters. |
void |
removeHighlighter(Highlighter hl)
Removes a highlighter from the pipeline. |
void |
setHighlighters(Highlighter... inList)
Sets the given Highlighters. |
void |
updateUI()
method to call after the LookAndFeel changed. |
| Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
|---|
addChangeListener, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Highlighter[] EMPTY_HIGHLIGHTERS
| Constructor Detail |
|---|
public CompoundHighlighter(Highlighter... inList)
Highlighters.
inList - zero or more not-null Highlighters to manage by this
CompoundHighlighter.
java.lang.NullPointerException - if array is null or array contains null values.
public CompoundHighlighter(HighlightPredicate predicate,
Highlighter... inList)
Highlighters.
predicate - the highlightPredicate to useinList - zero or more not-null Highlighters to manage by this
CompoundHighlighter.
java.lang.NullPointerException - if array is null or array contains null values.| Method Detail |
|---|
public void setHighlighters(Highlighter... inList)
Highlighters.
inList - zero or more not-null Highlighters to manage by this
CompoundHighlighter.
java.lang.NullPointerException - if array is null or array contains null values.public void addHighlighter(Highlighter highlighter)
highlighter - highlighter to add
java.lang.NullPointerException - if highlighter is null.
public void addHighlighter(Highlighter highlighter,
boolean prepend)
highlighter - highlighter to addprepend - prepend the highlighter if true; false will append
java.lang.NullPointerException - if highlighter is null.public void removeHighlighter(Highlighter hl)
hl - highlighter to removepublic Highlighter[] getHighlighters()
public void updateUI()
Implemented to call updateUI on contained Highlighters.
updateUI in interface UIDependent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||