|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gwtext.client.widgets.QuickTips
public class QuickTips
Provides attractive and customizable tooltips for any element. The QuickTips singleton is used to configure and manage
tooltips globally for multiple elements in a generic manner. To create individual tooltips with maximum customizability,
you should consider either Tip
or ToolTip
.
QuickTip
is available via getQuickTip()
, and supports all the methods,
and all the all the configuration properties of QuickTip
. These settings will apply to all tooltips shown by the
singleton.
To register a quick tip in markup, you simply add one or more of the valid QuickTip attributes prefixed with the ext:
namespace. The HTML element itself is automatically set as the quick tip target. Here is the summary of supported attributes
(optional unless otherwise noted):
// Add a quick tip to an HTML button
<input type="button" value="OK" ext:qtitle="OK Button" ext:qwidth="100" ext:qtip="This is a quick tip from markup!"></input>
Constructor Summary | |
---|---|
QuickTips()
|
Method Summary | |
---|---|
static void |
disable()
Disable this quick tip. |
static void |
enable()
Enable this quick tip. |
static QuickTip |
getQuickTip()
Gets the global QuickTips instance. |
static void |
init()
Initialize and enable QuickTips for first use. |
static boolean |
isEnabled()
Returns true if the quick tip is enabled, else false. |
void |
register(com.google.gwt.user.client.Element element,
QuickTipsConfig config)
Configures a new quick tip instance and assigns it to a target element. |
void |
register(java.lang.String id,
QuickTipsConfig config)
Configures a new quick tip instance and assigns it to a target element. |
void |
unregister(com.google.gwt.user.client.Element element)
Removes any registered quick tip from the target element and destroys it. |
void |
unregister(java.lang.String elementID)
Removes any registered quick tip from the target element and destroys it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QuickTips()
Method Detail |
---|
public static void disable()
public static void enable()
public static QuickTip getQuickTip()
public static void init()
public static boolean isEnabled()
public void register(java.lang.String id, QuickTipsConfig config)
id
- target element idconfig
- the configpublic void register(com.google.gwt.user.client.Element element, QuickTipsConfig config)
element
- the target elementconfig
- the quick tip configpublic void unregister(java.lang.String elementID)
elementID
- the element IDpublic void unregister(com.google.gwt.user.client.Element element)
element
- the element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |