|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.event.MouseAdapter | +--javax.swing.ToolTipManager
Manages all the ToolTips in the system.
JComponent.createToolTip()
Inner Class Summary | |
protected class |
ToolTipManager.insideTimerAction
|
protected class |
ToolTipManager.outsideTimerAction
|
protected class |
ToolTipManager.stillInsideTimerAction
|
Field Summary | |
protected boolean |
heavyWeightPopupEnabled
|
protected boolean |
lightWeightPopupEnabled
|
Method Summary | |
int |
getDismissDelay()
Returns the dismisal delay value. |
int |
getInitialDelay()
Returns the initial delay value. |
int |
getReshowDelay()
Returns the reshow delay value. |
boolean |
isEnabled()
Returns true if this object is enabled. |
boolean |
isLightWeightPopupEnabled()
Returns true if lightweight (all-Java) Tooltips are in use, or false if heavyweight (native peer) Tooltips are being used. |
void |
mouseDragged(MouseEvent event)
|
void |
mouseEntered(MouseEvent event)
|
void |
mouseExited(MouseEvent event)
|
void |
mouseMoved(MouseEvent event)
|
void |
mousePressed(MouseEvent event)
|
void |
registerComponent(JComponent component)
Register a component for tooltip management. |
void |
setDismissDelay(int microSeconds)
Specifies the dismisal delay value. |
void |
setEnabled(boolean flag)
Enables or disables the tooltip. |
void |
setInitialDelay(int microSeconds)
Specifies the initial delay value. |
void |
setLightWeightPopupEnabled(boolean aFlag)
Deprecated. As of Swing1.1 replaced by setToolTipWindowUsePolicy(int) . |
void |
setReshowDelay(int microSeconds)
Specifies the time to delay before reshowing the tooltip. |
static ToolTipManager |
sharedInstance()
Returns a shared ToolTipManager instance. |
void |
unregisterComponent(JComponent component)
Remove a component from tooltip control. |
Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked,
mouseReleased |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected boolean lightWeightPopupEnabled
protected boolean heavyWeightPopupEnabled
Method Detail |
public void setEnabled(boolean flag)
flag
- true to enable the tippublic boolean isEnabled()
public void setLightWeightPopupEnabled(boolean aFlag)
setToolTipWindowUsePolicy(int)
.public boolean isLightWeightPopupEnabled()
public void setInitialDelay(int microSeconds)
microSeconds
- an int specifying the number of microseconds
to delay (after the cursor has paused) before displaying the
tooltipgetInitialDelay()
public int getInitialDelay()
setInitialDelay(int)
public void setDismissDelay(int microSeconds)
microSeconds
- an int specifying the number of microseconds
to delay (after the cursor has moved on) before taking away
the tooltipgetDismissDelay()
public int getDismissDelay()
setDismissDelay(int)
public void setReshowDelay(int microSeconds)
microSeconds
- an int specifying the time in microseconds
before reshowing the tooltip if the cursor stops againgetReshowDelay()
public int getReshowDelay()
setReshowDelay(int)
public static ToolTipManager sharedInstance()
public void registerComponent(JComponent component)
component
- a JComponent objectpublic void unregisterComponent(JComponent component)
component
- a JComponent objectpublic void mouseEntered(MouseEvent event)
public void mouseExited(MouseEvent event)
public void mousePressed(MouseEvent event)
public void mouseDragged(MouseEvent event)
public void mouseMoved(MouseEvent event)
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |