public class RichTooltipManager
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
RichTooltipManager.JTrackableComponent |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getDismissDelay() |
Returns the dismissal delay value.
|
int |
getInitialDelay() |
Returns the initial delay value.
|
void |
hideCurrentlyShowingTipIfNecessary() |
|
void |
registerComponent(RichTooltipManager.JTrackableComponent comp) |
Registers a component for tooltip management.
|
void |
setDismissDelay(int milliseconds) |
Specifies the dismissal delay value.
|
void |
setInitialDelay(int milliseconds) |
Specifies the initial delay value.
|
static RichTooltipManager |
sharedInstance() |
Returns a shared
ToolTipManager instance. |
void |
unregisterComponent(RichTooltipManager.JTrackableComponent comp) |
Removes a component from tooltip control.
|
public void setInitialDelay(int milliseconds)
milliseconds - the number of milliseconds to delay (after the cursor has
paused) before displaying the tooltipgetInitialDelay()public int getInitialDelay()
setInitialDelay(int)public void setDismissDelay(int milliseconds)
milliseconds - the number of milliseconds to delay before taking away the
tooltipgetDismissDelay()public int getDismissDelay()
setDismissDelay(int)public static RichTooltipManager sharedInstance()
ToolTipManager instance.ToolTipManager objectpublic void registerComponent(RichTooltipManager.JTrackableComponent comp)
This will register key bindings to show and hide the tooltip text only if
component has focus bindings. This is done so that
components that are not normally focus traversable, such as
JLabel, are not made focus traversable as a result of
invoking this method.
comp - a JComponent object to addComponent.isFocusTraversable()public void unregisterComponent(RichTooltipManager.JTrackableComponent comp)
comp - a JComponent object to removepublic void hideCurrentlyShowingTipIfNecessary()