|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.SwtToolTipManager
This class is intended to be equivalent to the Swing
ToolTipManager
and to palliate the lack of means of controlling the tooltips in a SWT
environment.
SwtToolTipManager follows the Singleton Design Pattern and the
only instance of this class can be retrievd by means of the getInstance()
method.
One can register several instances of
SwtToolTipGenerator to the instance of
SwtToolTipManager.
All registered SwtToolTipGenerator instances
will then beneficiate from any change made to the following properties:
setEnabled(boolean)setInitialDelay(int)setReshowDelay(int)setDismissDelay(int)
| Field Summary | |
static int |
DEFAULT_DISMISS_DELAY
Default value for the "dismiss delay" property |
static boolean |
DEFAULT_ENABLED
Default value for the "enabled" property |
static int |
DEFAULT_INITIAL_DELAY
Default value for the "initial delay" property |
static int |
DEFAULT_RESHOW_DELAY
Default value for the "reshow delay" property |
| Method Summary | |
int |
getDismissDelay()
Returns the dismissDelay. |
int |
getInitialDelay()
Returns the initialDelay. |
static SwtToolTipManager |
getInstance()
Returns the singleton instance. |
int |
getReshowDelay()
Returns the reshowDelay. |
boolean |
isEnabled()
Returns true if tooltips are enabled, false otherwise. |
void |
registerSwtToolTipGenerator(SwtToolTipGenerator generator)
Register a SwtToolTipGenerator.
|
void |
setDismissDelay(int dismissDelay)
Sets the dismissDelay property on all registered s. |
void |
setEnabled(boolean enabled)
Enables or disables the tooltips on all registered s. |
void |
setInitialDelay(int initialDelay)
Sets the initialDelay property on all registered s. |
void |
setReshowDelay(int reshowDelay)
Sets the reshowDelay property on all registered s. |
void |
unregisterSwtToolTipGenerator(SwtToolTipGenerator generator)
Unregisters a SwtToolTipGenerator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final boolean DEFAULT_ENABLED
public static final int DEFAULT_INITIAL_DELAY
public static final int DEFAULT_DISMISS_DELAY
public static final int DEFAULT_RESHOW_DELAY
| Method Detail |
public static SwtToolTipManager getInstance()
Returns the singleton instance.
public void registerSwtToolTipGenerator(SwtToolTipGenerator generator)
Register a SwtToolTipGenerator.
generator - a SwtToolTipGenerator to registerpublic void unregisterSwtToolTipGenerator(SwtToolTipGenerator generator)
Unregisters a SwtToolTipGenerator. The SwtToolTipGenerator
will now be independant from the SwtToolTipManager
instance.
generator - the SwtToolTipGenerator to unregisterpublic int getDismissDelay()
public void setDismissDelay(int dismissDelay)
SwtToolTipGenerators.
dismissDelay - The dismissDelay to set.public boolean isEnabled()
public void setEnabled(boolean enabled)
SwtToolTipGenerators.
enabled - if false no tooltip is displayed.public int getInitialDelay()
public void setInitialDelay(int initialDelay)
SwtToolTipGenerators.
initialDelay - The initialDelay to set.public int getReshowDelay()
public void setReshowDelay(int reshowDelay)
SwtToolTipGenerators.
reshowDelay - The reshowDelay to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||