public class ToolTip.TooltipWorker
extends java.util.Timer
| Modifier and Type | Field and Description |
|---|---|
private boolean |
cancelled
Flags an aborted state.
|
private boolean |
displayed
true if the tooltip is visible and need to be erased. |
private AbstractWidget |
owner
The widget that owns the tooltip.
|
| Constructor and Description |
|---|
TooltipWorker(AbstractWidget<?> owner)
Creates a new object and schedule tasks for show and hide events for the tooltip.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Terminates this timer, discarding any currently scheduled tasks.
|
private void |
clear()
Clears the area occupied by tooltip.
|
AbstractWidget |
getOwner()
Retrieves the source widget that owns the tooltip.
|
private volatile boolean cancelled
true, the tooltip will not be shown any more.private volatile boolean displayed
true if the tooltip is visible and need to be erased.private final AbstractWidget owner
TooltipWorker(AbstractWidget<?> owner)
owner - The widget that owns the tooltip.private void clear()
public void cancel()
This method may be called repeatedly; the second and subsequent calls have no effect.
cancel in class java.util.Timerpublic AbstractWidget getOwner()