|
|||||||||
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.ToolTipHighlighter
public class ToolTipHighlighter
A highlighter for setting a tool tip on the component.
Field Summary |
---|
Fields inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
---|
listenerList |
Constructor Summary | |
---|---|
ToolTipHighlighter()
Instantiates a ToolTipHighlighter with null StringValue. |
|
ToolTipHighlighter(HighlightPredicate predicate)
Instantiates a ToolTipHighlighter with the specified HighlightPredicate and a null StringValue. |
|
ToolTipHighlighter(HighlightPredicate predicate,
StringValue toolTipValue)
Instantiates a ToolTipHighlighter with the specified HighlightPredicate and StringValue. |
|
ToolTipHighlighter(StringValue toolTipValue)
Instantiates a ToolTipHighlighter with the specified StringValue. |
Method Summary | |
---|---|
protected boolean |
canHighlight(java.awt.Component component,
ComponentAdapter adapter)
Subclasses may override to further limit the highlighting based on Highlighter state, f.i. |
protected java.awt.Component |
doHighlight(java.awt.Component component,
ComponentAdapter adapter)
Apply the highlights. |
StringValue |
getToolTipValue()
Returns the StringValue used for decoration. |
void |
setToolTipValue(StringValue toolTipValue)
Sets the StringValue used for decoration. |
Methods inherited from class org.jdesktop.swingx.decorator.AbstractHighlighter |
---|
addChangeListener, areEqual, 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 ToolTipHighlighter()
public ToolTipHighlighter(StringValue toolTipValue)
toolTipValue
- the StringValue used to create the tool tippublic ToolTipHighlighter(HighlightPredicate predicate)
predicate
- the HighlightPredicate to use, may be null to default to ALWAYS.public ToolTipHighlighter(HighlightPredicate predicate, StringValue toolTipValue)
predicate
- the HighlightPredicate to use, may be null to default to ALWAYS.toolTipValue
- the StringValue used to create the tool tipMethod Detail |
---|
public StringValue getToolTipValue()
#setToolTipValue(Font)
public void setToolTipValue(StringValue toolTipValue)
font
- the Font used for decoration, may be null to use default decoration.getToolTipValue()
protected boolean canHighlight(java.awt.Component component, ComponentAdapter adapter)
This implementation returns true always.
Implemented to return false if the component is not a JComponent.
canHighlight
in class AbstractHighlighter
protected java.awt.Component doHighlight(java.awt.Component component, ComponentAdapter adapter)
doHighlight
in class AbstractHighlighter
component
- 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 |