|
|||||||||
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.gwtext.client.widgets.Component
com.gwtext.client.widgets.BoxComponent
com.gwtext.client.widgets.Container
com.gwtext.client.widgets.Panel
com.gwtext.client.widgets.Tip
public class Tip
This is the base class for QuickTips
and 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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.gwtext.client.widgets.Component |
---|
config, id |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
Tip()
|
|
Tip(com.google.gwt.core.client.JavaScriptObject jsObj)
|
|
Tip(java.lang.String html)
|
Method Summary | |
---|---|
protected com.google.gwt.core.client.JavaScriptObject |
create(com.google.gwt.core.client.JavaScriptObject config)
|
void |
setClosable(boolean closable)
True to render a close tool button into the tooltip header (defaults to false). |
void |
setDefaultAlign(java.lang.String defaultAlign)
The default BaseElement.alignTo(String, String) anchor position value for this tip
relative to its element of origin. |
void |
setMaxWidth(int maxWidth)
The maximum width of the tip in pixels (defaults to 300). |
void |
setMinWidth(int minWidth)
The minimum width of the tip in pixels (defaults to 40). |
void |
setShadow(boolean shadow)
True for shadows on sides. |
void |
setShadow(Shadow.Type shadow)
Set a shadow type for the tooltip. |
void |
setWidth(int width)
Width in pixels of the tip (defaults to auto). |
void |
showAt(int x,
int y)
Shows this tip at the specified XY position. |
void |
showBy(com.google.gwt.user.client.Element element)
Shows this tip at a position relative to another element. |
void |
showBy(com.google.gwt.user.client.Element element,
java.lang.String position)
Shows this tip at a position relative to another element. |
void |
showBy(java.lang.String elementID)
Shows this tip at a position relative to another element. |
void |
showBy(java.lang.String elementID,
java.lang.String position)
Shows this tip at a position relative to another element. |
Methods inherited from class com.gwtext.client.widgets.Container |
---|
add, add, add, add, addListener, bubble, cascade, clear, doLayout, doLayout, findBy, findByID, findByType, getActiveItem, getActiveItemID, getAutoDestroy, getBufferResize, getComponent, getComponent, getComponents, getHideBorders, getItems, getLayout, getMonitorResize, insert, iterator, remove, remove, remove, remove, removeAll, removeAll, setActiveItem, setActiveItemID, setAutoDestroy, setBufferResize, setDefaults, setHideBorders, setLayout, setMonitorResize |
Methods inherited from class com.gwtext.client.widgets.BoxComponent |
---|
addListener, doOnRender, doOnRender, getAutoHeight, getAutoWidth, getBox, getBox, getHeight, getPosition, getPosition, getSize, getWidth, setAutoHeight, setAutoWidth, setHeight, setHeight, setPagePosition, setPosition, setSize, setSize, setWidth, syncSize, updateBox |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, isAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, setElement, setPixelSize, setStyleName, setStyleName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tip()
public Tip(java.lang.String html)
public Tip(com.google.gwt.core.client.JavaScriptObject jsObj)
Method Detail |
---|
protected com.google.gwt.core.client.JavaScriptObject create(com.google.gwt.core.client.JavaScriptObject config)
create
in class Panel
public void setClosable(boolean closable) throws java.lang.IllegalStateException
setClosable
in class Panel
closable
- true for closable
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setDefaultAlign(java.lang.String defaultAlign) throws java.lang.IllegalStateException
BaseElement.alignTo(String, String)
anchor position value for this tip
relative to its element of origin. (defaults to "tl-bl?")
defaultAlign
- the align poistion.
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setMaxWidth(int maxWidth) throws java.lang.IllegalStateException
maxWidth
- the max width
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setMinWidth(int minWidth) throws java.lang.IllegalStateException
minWidth
- the min width
java.lang.IllegalStateException
- this property cannot be changed after the Component has been renderedpublic void setShadow(boolean shadow)
setShadow
in class Panel
shadow
- true for shadowpublic void setShadow(Shadow.Type shadow)
setShadow
in class Panel
shadow
- the shadow typeShadow.SIDES
,
Shadow.FRAME
,
Shadow.DROP
public void setWidth(int width)
setWidth
in class BoxComponent
width
- the tooltip widthpublic void showAt(int x, int y)
x
- the X positiony
- the Y positionpublic void showBy(com.google.gwt.user.client.Element element)
element
- the element to show tip byBaseElement.alignTo(String, String)
public void showBy(java.lang.String elementID)
elementID
- the element ID to show tip byBaseElement.alignTo(String, String)
public void showBy(com.google.gwt.user.client.Element element, java.lang.String position)
element
- the element to show tip byposition
- the tooltip positionBaseElement.alignTo(String, String)
public void showBy(java.lang.String elementID, java.lang.String position)
elementID
- the element ID to show tip byposition
- the tooltip positionBaseElement.alignTo(String, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |