|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.tips.Tip
public class Tip
This is the base class for ToolTip that provides the basic layout and
positioning that all tip-based classes require. This class can be used
directly for simple, statically-positioned tips that are displayed
programmatically, or it can be extended to provide custom tip
implementations.
| Nested Class Summary | |
|---|---|
static interface |
Tip.TipAppearance
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Tip()
Creates a new tip instance. |
|
Tip(Tip.TipAppearance appearance)
|
|
| Method Summary | |
|---|---|
Tip.TipAppearance |
getAppearance()
Returns the tip's appearance. |
int |
getMaxWidth()
Returns the maximum width. |
int |
getMinWidth()
Returns the minimum width. |
void |
hide()
Hide this widget. |
boolean |
isClosable()
Returns true if the tip is closable. |
void |
setClosable(boolean closable)
True to render a close tool button into the tooltip header (defaults to false). |
void |
setMaxWidth(int maxWidth)
Sets the maximum width of the tip in pixels (defaults to 300). |
void |
setMinWidth(int minWidth)
Sets the minimum width of the tip in pixels (defaults to 40). |
void |
showAt(int x,
int y)
Shows this tip at the specified position. |
void |
showAt(Point point)
Shows this tip at the specified position. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tip()
public Tip(Tip.TipAppearance appearance)
| Method Detail |
|---|
public Tip.TipAppearance getAppearance()
public int getMaxWidth()
public int getMinWidth()
public void hide()
Component
hide in class Componentpublic boolean isClosable()
public void setClosable(boolean closable)
closable - the closable statepublic void setMaxWidth(int maxWidth)
maxWidth - the max widthpublic void setMinWidth(int minWidth)
minWidth - the minimum width
public void showAt(int x,
int y)
x - the x coordinatey - the y coordinatepublic void showAt(Point point)
point - the position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||