|
||||||||||
| 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.container.Container
com.sencha.gxt.widget.core.client.container.ResizeContainer
com.sencha.gxt.widget.core.client.container.SimpleContainer
com.sencha.gxt.widget.core.client.Popup
public class Popup
A panel that can be displayed over other widgets.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
HasWidgets.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
IndexedPanel.ForIsWidget |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
Popup()
Creates a new popup panel. |
|
| Method Summary | |
|---|---|
void |
center()
Centers the panel within the viewport. |
Style.AnchorAlignment |
getDefaultAlign()
Returns the default alignment. |
CompositeElement |
getIgnoreList()
Any elements added to this list will be ignored when auto close is enabled. |
int |
getXOffset()
Returns the x offset. |
int |
getYOffset()
Returns the y offsets. |
void |
hide()
Hides the popup. |
boolean |
isAnimate()
Returns true if animations are enabled. |
boolean |
isAutoFocus()
Returns true if auto focus is enabled. |
boolean |
isAutoHide()
Returns true if auto hide is enabled. |
boolean |
isConstrainViewport()
Returns true if constrain to viewport is enabled. |
void |
setAnimate(boolean animate)
True to enable animations when showing and hiding (defaults to false). |
void |
setAutoFocus(boolean autoFocus)
True to move focus to the popup when being opened (defaults to true). |
void |
setAutoHide(boolean autoHide)
True to close the popup when the user clicks outside of the menu (default to true). |
void |
setConstrainViewport(boolean constrainViewport)
True to ensure popup is displayed within the browser's viewport. |
void |
setDefaultAlign(Style.AnchorAlignment defaultAlign)
The default XElement.alignTo(com.google.gwt.dom.client.Element, com.sencha.gxt.core.client.Style.AnchorAlignment, int[]) anchor position value for this menu
relative to its element of origin (defaults to "tl-bl?"). |
void |
setXOffset(int xOffset)
Sets the xOffset when constrainViewport == true (defaults to 10). |
void |
setYOffset(int yOffset)
Sets the yOffset when constrainViewport == true (defaults to 15). |
void |
show()
Displays the popup. |
void |
show(Component widget)
Displays the popup aligned to the bottom left of the widget. |
void |
show(Element elem,
Style.AnchorAlignment pos)
Displays the popup. |
void |
show(Element elem,
Style.AnchorAlignment pos,
int[] offsets)
Displays the popup. |
void |
showAt(int x,
int y)
Shows the popup at the specified location. |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.SimpleContainer |
|---|
add, add, getWidget, isResize, setResize, setWidget, setWidget |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.ResizeContainer |
|---|
forceLayout, isLayoutRunning, isOrWasLayoutRunning, onResize |
| Methods inherited from class com.sencha.gxt.widget.core.client.container.Container |
|---|
add, addAddHandler, addBeforeAddHandler, addBeforeRemoveHandler, addContainerHandler, addRemoveHandler, clear, disable, enable, findWidget, getItemByItemId, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, remove, remove |
| 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 Popup()
| Method Detail |
|---|
public void center()
public Style.AnchorAlignment getDefaultAlign()
public CompositeElement getIgnoreList()
public int getXOffset()
public int getYOffset()
public void hide()
hide in class Componentpublic boolean isAnimate()
public boolean isAutoFocus()
public boolean isAutoHide()
public boolean isConstrainViewport()
public void setAnimate(boolean animate)
animate - true to enable animationspublic void setAutoFocus(boolean autoFocus)
autoFocus - true for auto focuspublic void setAutoHide(boolean autoHide)
autoHide - true for auto hidepublic void setConstrainViewport(boolean constrainViewport)
constrainViewport - true to constrainpublic void setDefaultAlign(Style.AnchorAlignment defaultAlign)
XElement.alignTo(com.google.gwt.dom.client.Element, com.sencha.gxt.core.client.Style.AnchorAlignment, int[]) anchor position value for this menu
relative to its element of origin (defaults to "tl-bl?").
defaultAlign - the default alignmentpublic void setXOffset(int xOffset)
xOffset - the x offsetpublic void setYOffset(int yOffset)
yOffset - the offsetpublic void show()
show in class Componentpublic void show(Component widget)
show(Element, com.sencha.gxt.core.client.Style.AnchorAlignment, int[]).
widget - the widget to use for alignment
public void show(Element elem,
Style.AnchorAlignment pos)
elem - the element to align topos - the position
public void show(Element elem,
Style.AnchorAlignment pos,
int[] offsets)
elem - the element to align topos - the positionoffsets - the offsets
public void showAt(int x,
int y)
x - the x coordinatey - the y coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||