public class ToolTipHighlighter extends AbstractHighlighter
Modifier and Type | Field and Description |
---|---|
private StringValue |
toolTipValue |
listenerList
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canHighlight(Component component,
ComponentAdapter adapter)
Subclasses may override to further limit the highlighting based
on Highlighter state, f.i. a PainterHighlighter can only be applied
to PainterAware components.
|
protected Component |
doHighlight(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.
|
addChangeListener, areEqual, fireStateChanged, getChangeListeners, getHighlightPredicate, highlight, removeChangeListener, setHighlightPredicate
private StringValue toolTipValue
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 tippublic 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(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 Component doHighlight(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)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses