|
||||||||||
| 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.EnabledHighlighter
public class EnabledHighlighter
A Highlighter which sets the enabled property.
Note: the enabled is a mutable property of this Highlighter which defaults to false because we assume that's the most common use case to make a rendering component look disabled when the parent is enabled. It's mutable for symmetry reasons, though the other way round - enabled looking rendering component on a disabled parent - most probably will confuse users.
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
|---|
listenerList |
| Constructor Summary | |
|---|---|
EnabledHighlighter()
Instantiates a EnabledHighlighter with default enabled property (== false). |
|
EnabledHighlighter(boolean enabled)
Instantiates a EnabledHighlighter with the specified enabled property. |
|
EnabledHighlighter(HighlightPredicate predicate)
Instantiates a EnabledHighlighter with the specified HighlightPredicate and default enabled property (== false). |
|
EnabledHighlighter(HighlightPredicate predicate,
boolean enabled)
Instantiates a EnabledHighlighter with the specified HighlightPredicate and default enabled property. |
|
| Method Summary | |
|---|---|
protected java.awt.Component |
doHighlight(java.awt.Component renderer,
ComponentAdapter adapter)
Apply the highlights. |
boolean |
isEnabled()
Returns the enabled property. |
void |
setEnabled(boolean enabled)
Sets the enabled property. |
| 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 EnabledHighlighter()
public EnabledHighlighter(boolean enabled)
enabled - the enabled propertypublic EnabledHighlighter(HighlightPredicate predicate)
predicate - the HighlightPredicate to use, may be null to default to ALWAYS.
public EnabledHighlighter(HighlightPredicate predicate,
boolean enabled)
predicate - the HighlightPredicate to use, may be null to default to ALWAYS.enabled - the enabled property| Method Detail |
|---|
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - the enabled to set
protected java.awt.Component doHighlight(java.awt.Component renderer,
ComponentAdapter adapter)
Implemented to set the rendering component's enabled property.
doHighlight in class AbstractHighlighterrenderer - 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 | |||||||||