|
||||||||||
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 Highlighter
s.
Highlighter
Field Summary | |
---|---|
static Highlighter[] |
EMPTY_HIGHLIGHTERS
|
protected List<Highlighter> |
highlighters
|
Fields inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
---|
listenerList |
Constructor Summary | |
---|---|
CompoundHighlighter(Highlighter... inList)
Instantiates a CompoundHighlighter containing the given Highlighter s. |
Method Summary | |
---|---|
void |
addHighlighter(Highlighter highlighter)
Appends a highlighter to the pipeline. |
void |
addHighlighter(Highlighter highlighter,
boolean prepend)
Adds a highlighter to the pipeline. |
Component |
apply(Component stamp,
ComponentAdapter adapter)
Deprecated. use highlight |
protected ChangeListener |
createHighlighterChangeListener()
Creates and returns the ChangeListener registered to contained Highlighter s. |
protected Component |
doHighlight(Component stamp,
ComponentAdapter adapter)
Apply the highlights. |
protected ChangeListener |
getHighlighterChangeListener()
Returns the ChangeListner to contained
Highlighter s. |
Highlighter[] |
getHighlighters()
|
void |
removeHighlighter(Highlighter hl)
Removes a highlighter from the pipeline. |
void |
updateUI()
method to call after the LookAndFeel changed. |
Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
---|
addChangeListener, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Highlighter[] EMPTY_HIGHLIGHTERS
protected List<Highlighter> highlighters
Constructor Detail |
---|
public CompoundHighlighter(Highlighter... inList)
Highlighter
s.
inList
- zero or more not-null Highlighters to manage by this
CompoundHighlighter.
NullPointerException
- if array is null or array contains null values.Method Detail |
---|
public void addHighlighter(Highlighter highlighter)
highlighter
- highlighter to add
NullPointerException
- if highlighter is null.public void addHighlighter(Highlighter highlighter, boolean prepend)
highlighter
- highlighter to addprepend
- prepend the highlighter if true; false will append
NullPointerException
- if highlighter is null.public void removeHighlighter(Highlighter hl)
hl
- highlighter to removepublic Highlighter[] getHighlighters()
public void updateUI()
UIDependent
updateUI
in interface LegacyHighlighter.UIHighlighter
updateUI
in interface UIDependent
protected ChangeListener getHighlighterChangeListener()
ChangeListner
to contained
Highlighter
s. The listener is lazily created.
protected ChangeListener createHighlighterChangeListener()
Highlighter
s. Here: fires a
stateChanged on each notification.
public Component apply(Component stamp, ComponentAdapter adapter)
NullPointerException
- if either stamp or adapter is null.AbstractHighlighter.highlight(Component, ComponentAdapter)
protected Component doHighlight(Component stamp, ComponentAdapter adapter)
AbstractHighlighter
doHighlight
in class AbstractHighlighter
stamp
- 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 |