com.extjs.gxt.ui.client.widget
クラス Popup

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.Container<T>
                      extended by com.extjs.gxt.ui.client.widget.ScrollContainer<Component>
                          extended by com.extjs.gxt.ui.client.widget.LayoutContainer
                              extended by com.extjs.gxt.ui.client.widget.Popup
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener

public class Popup
extends LayoutContainer

A panel that can be displayed over other widgets.

Events:
BeforeShow : ComponentEvent(component)
Fires before the popup is displayed. Listeners can set the doit field to false to cancel the action.
Show : ComponentEvent(component)
Fires after a popup is displayed.
BeforeShow : ComponentEvent(component)
Fires before the popup is hidden. Listeners can set the doit field to false to cancel the action.
Hide : ComponentEvent(component)
Fires after a popup is hidden.
CSS:
.x-popup (the popup itself)


入れ子クラス 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承された 入れ子クラス/インターフェース
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field 概要
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたフィールド(Fields)
DEBUG_ID_PREFIX
 
コンストラクタ 概要
Popup()
          Creates a new popup panel.
 
メソッド 概要
 void center()
          Centers the panel within the viewport.
 java.lang.String 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 contrain to viewport is enabled.
 boolean isEventPreview()
          Returns true if event preview 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 dislayed within the browser's viewport.
 void setDefaultAlign(java.lang.String defaultAlign)
          The default El.alignTo(com.google.gwt.user.client.Element, java.lang.String, int[]) anchor position value for this menu relative to its element of origin (defaults to "tl-bl?").
 void setEventPreview(boolean eventPreview)
          True to enable event preview (defaults to true).
 void setItem(Component item)
          Sets the popup's content.
 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(com.google.gwt.user.client.Element elem, java.lang.String pos)
          Displays the popup.
 void show(com.google.gwt.user.client.Element elem, java.lang.String pos, int[] offsets)
          Displays the popup.
 void showAt(int x, int y)
          Shows the popup at the specified location.
 
クラス com.extjs.gxt.ui.client.widget.LayoutContainer から継承されたメソッド
add, add, addText, findComponent, getLayout, getLayoutOnChange, getLayoutTarget, insert, insert, isMonitorResize, isMonitorWindowResize, layout, remove, removeAll, setLayout, setLayoutData, setLayoutOnChange, setMonitorWindowResize
 
クラス com.extjs.gxt.ui.client.widget.ScrollContainer から継承されたメソッド
addScrollListener, getHScrollPosition, getScrollMode, getVScrollPosition, onComponentEvent, removeScrollListener, scrollIntoView, setHScrollPosition, setScrollMode, setVScrollPosition
 
クラス com.extjs.gxt.ui.client.widget.Container から継承されたメソッド
findItem, getItem, getItemByItemId, getItemCount, getItems, getWidget, indexOf, iterator, scrollIntoView
 
クラス com.extjs.gxt.ui.client.widget.BoxComponent から継承されたメソッド
getBounds, getHeight, getHeight, getPosition, getShadow, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShim, setSize, setSize, setWidth, setWidth
 
クラス com.extjs.gxt.ui.client.widget.Component から継承されたメソッド
addListener, addStyleName, addWidgetListener, disable, disableEvents, disableTextSelection, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, focus, getBaseStyle, getBorders, getData, getData, getElement, getId, getItemId, getModel, getState, getToolTip, hideToolTip, isEnabled, isRendered, isVisible, onBrowserEvent, recalculate, removeAllListeners, removeFromParent, removeListener, removeStyleName, removeWidgetListener, render, render, saveState, setBorders, setData, setData, setElement, setEnabled, setEnableState, setId, setIntStyleAttribute, setItemId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, toString
 
クラス com.google.gwt.user.client.ui.Widget から継承されたメソッド
getParent, isAttached
 
クラス com.google.gwt.user.client.ui.UIObject から継承されたメソッド
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, sinkEvents, unsinkEvents
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタ 詳細

Popup

public Popup()
Creates a new popup panel.

メソッド 詳細

center

public void center()
Centers the panel within the viewport.


getDefaultAlign

public java.lang.String getDefaultAlign()
Returns the default alignment.

戻り値:
the default align

getIgnoreList

public CompositeElement getIgnoreList()
Any elements added to this list will be ignored when auto close is enabled.

戻り値:
the list of ignored elements

getXOffset

public int getXOffset()
Returns the x offset.

戻り値:
the offset

getYOffset

public int getYOffset()
Returns the y offsets.

戻り値:
the offset

hide

public void hide()
Hides the popup.

オーバーライド:
hide in class Component

isAnimate

public boolean isAnimate()
Returns true if animations are enabled.

戻り値:
the animation state

isAutoFocus

public boolean isAutoFocus()
Returns true if auto focus is enabled.

戻り値:
the auto focus state

isAutoHide

public boolean isAutoHide()
Returns true if auto hide is enabled.

戻り値:
the auto hide state

isConstrainViewport

public boolean isConstrainViewport()
Returns true if contrain to viewport is enabled.

戻り値:
the constrain viewport state

isEventPreview

public boolean isEventPreview()
Returns true if event preview is enabled.

戻り値:
the event preview state

setAnimate

public void setAnimate(boolean animate)
True to enable animations when showing and hiding (defaults to false).

パラメータ:
animate - true to enable animations

setAutoFocus

public void setAutoFocus(boolean autoFocus)
True to move focus to the popup when being opened (defaults to true).

パラメータ:
autoFocus - true for auto focus

setAutoHide

public void setAutoHide(boolean autoHide)
True to close the popup when the user clicks outside of the menu (default to true).

パラメータ:
autoHide - true for auto hide

setConstrainViewport

public void setConstrainViewport(boolean constrainViewport)
True to ensure popup is dislayed within the browser's viewport.

パラメータ:
constrainViewport - true to constrain

setDefaultAlign

public void setDefaultAlign(java.lang.String defaultAlign)
The default El.alignTo(com.google.gwt.user.client.Element, java.lang.String, int[]) anchor position value for this menu relative to its element of origin (defaults to "tl-bl?").

パラメータ:
defaultAlign - the default alignment

setEventPreview

public void setEventPreview(boolean eventPreview)
True to enable event preview (defaults to true).

パラメータ:
eventPreview - true to enable event preview

setItem

public void setItem(Component item)
Sets the popup's content.

パラメータ:
item - the content item

setXOffset

public void setXOffset(int xOffset)
Sets the xOffset when constrainViewport == true (defaults to 10).

パラメータ:
xOffset - the x offset

setYOffset

public void setYOffset(int yOffset)
Sets the yOffset when constrainViewport == true (defaults to 15).

パラメータ:
yOffset - the offset

show

public void show()
Displays the popup.

オーバーライド:
show in class Component

show

public void show(Component widget)
Displays the popup aligned to the bottom left of the widget. For exact control of popup position see show(Element, String, int[]).

パラメータ:
widget - the widget to use for alignment

show

public void show(com.google.gwt.user.client.Element elem,
                 java.lang.String pos)
Displays the popup.

パラメータ:
elem - the element to align to
pos - the position

show

public void show(com.google.gwt.user.client.Element elem,
                 java.lang.String pos,
                 int[] offsets)
Displays the popup.

パラメータ:
elem - the element to align to
pos - the postion
offsets - the offsets

showAt

public void showAt(int x,
                   int y)
Shows the popup at the specified location.

パラメータ:
x - the x coordinate
y - the y coordinate