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

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.ContentPanel
                                  extended by com.extjs.gxt.ui.client.widget.Window
すべての実装インターフェース:
Observable, com.google.gwt.user.client.EventListener
Direct Known Subclasses:
Dialog

public class Window
extends ContentPanel

A specialized content panel intended for use as an application window.

The window is automatically registered with the WindowManager when created. The window should be unregistered with the WindownManager when it is no longer used.

Events:
Activate : WindowEvent(window)
Fires after the window has been visually activated via setActive(boolean).
Deactivate : WindowEvent(window)
Fires after the window has been visually deactivated via setActive(boolean)
Minimize : WindowEvent(window)
Fires after the window has been minimized.
Maximize : WindowEvent(window)
Fires after the window has been maximized.
Restore : WindowEvent(window)
Fires after the window has been restored to its original size after being maximized.
Resize : WindowEvent(window)
Fires after the window has been resized.
BeforeHide : WindowEvent(window, buttonClicked)
Fires before the window is to be hidden.
Hide : WindowEvent(window, buttonClicked)
Fires after the window has been hidden.


入れ子クラス 概要
 
クラス 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
 
コンストラクタ 概要
Window()
          Creates a new window.
 
メソッド 概要
 void addWindowListener(WindowListener listener)
          Adds a listener to receive window events.
 void alignTo(com.google.gwt.user.client.Element elem, java.lang.String pos, int[] offsets)
          Aligns the window to the specified element.
 void center()
          Centers the window in the viewport.
 void focus()
          Focuses the window.
 boolean getConstrain()
          Returns true if the window is constrained.
 Draggable getDraggable()
          Returns the window's draggable instance.
 com.google.gwt.user.client.ui.Widget getFocusWidget()
          Returns the focus widget.
 int getInitialWidth()
          Returns the window's initial width.
 int getMinHeight()
          Returns the min height.
 int getMinWidth()
          Returns the min width.
 void hide()
          Hide this component.
 void hide(Button buttonPressed)
          Hides the window.
 boolean isBlinkModal()
          Returns true if modal blinking is enabled.
 boolean isClosable()
          Returns true if the window is closable.
 boolean isDraggable()
          Returns true if the panel is draggable.
 boolean isMaximizable()
          Returns true if window miximizing is enabled.
 boolean isMinimizable()
          Returns true if window minimizing is enabled.
 boolean isModal()
          Returns true if modal behavior is enabled.
 boolean isOnEsc()
          Returns true if the window is closed when the esc key is pressed.
 boolean isPlain()
          Returns true if the plain style is enabled.
 boolean isResizable()
          Returns true if window resizing is enabled.
 void maximize()
          Fits the window within its current container and automatically replaces the 'maximize' tool button with the 'restore' tool button.
 void minimize()
          Placeholder method for minimizing the window.
 void removeWindowListener(WindowListener listener)
          Removes a previously added listener.
 void restore()
          Restores a maximized window back to its original size and position prior to being maximized and also replaces the 'restore' tool button with the 'maximize' tool button.
 void setActive(boolean active)
          Makes this the active window by showing its shadow, or deactivates it by hiding its shadow.
 void setBlinkModal(boolean blinkModal)
          True to blink the window when the user clicks outside of the windows bounds (defaults to false).
 void setClosable(boolean closable)
          True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow closing the window (default to true).
 void setConstrain(boolean constrain)
          True to constrain the window to the viewport, false to allow it to fall outside of the viewport (defaults to true).
 void setDraggable(boolean draggable)
          True to enable dragging of this Panel (defaults to false).
 void setFocusWidget(com.google.gwt.user.client.ui.Widget focusWidget)
          Widget to be given focus when the window is focused).
 void setInitialWidth(int initialWidth)
          The width of the window if no width has been specified (defaults to 300).
 void setMaximizable(boolean maximizable)
          True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button and disallow maximizing the window (defaults to false).
 void setMinHeight(int minHeight)
          The minimum height in pixels allowed for this window (defaults to 100).
 void setMinimizable(boolean minimizable)
          True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button and disallow minimizing the window (defaults to false).
 void setMinWidth(int minWidth)
          The minimum width in pixels allowed for this window (defaults to 200).
 void setModal(boolean modal)
          True to make the window modal and mask everything behind it when displayed, false to display it without restricting access to other UI elements (defaults to false).
 void setOnEsc(boolean onEsc)
          Allows override of the built-in processing for the escape key.
 void setPagePosition(int x, int y)
          Sets the page XY position of the component.
 void setPlain(boolean plain)
          True to render the window body with a transparent background so that it will blend into the framing elements, false to add a lighter background color to visually highlight the body element and separate it more distinctly from the surrounding frame (defaults to false).
 void setPosition(int left, int top)
          Sets the left and top of the component.
 void setResizable(boolean resizable)
          True to allow user resizing at each edge and corner of the window, false to disable resizing (defaults to true).
 void show()
          Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.
 void toBack()
          Sends this window to the back of (lower z-index than) any other visible windows.
 void toFront()
          Brings this window to the front of any other visible windows.
 
クラス com.extjs.gxt.ui.client.widget.ContentPanel から継承されたメソッド
addButton, collapse, expand, getAnimCollapse, getBodyBorder, getBodyStyle, getBottomComponent, getButtonAlign, getButtonBar, getCollapsible, getElement, getFooter, getFrame, getFrameHeight, getFrameWidth, getHeader, getInnerHeight, getInnerWidth, getLayoutTarget, getTitleCollapse, getTitleText, getTopComponent, getWidget, isExpanded, isHeaderVisible, isHideCollapseTool, onComponentEvent, setAnimCollapse, setBodyBorder, setBodyStyle, setBodyStyleName, setBottomComponent, setButtonAlign, setButtonBar, setCollapsible, setExpanded, setFooter, setFrame, setHeaderVisible, setHeading, setHideCollapseTool, setIconStyle, setInsetBorder, setTitleCollapse, setTopComponent, setUrl
 
クラス com.extjs.gxt.ui.client.widget.LayoutContainer から継承されたメソッド
add, add, addText, findComponent, getLayout, getLayoutOnChange, insert, insert, isMonitorResize, isMonitorWindowResize, layout, remove, removeAll, setLayout, setLayoutData, setLayoutOnChange, setMonitorWindowResize
 
クラス com.extjs.gxt.ui.client.widget.ScrollContainer から継承されたメソッド
addScrollListener, getHScrollPosition, getScrollMode, getVScrollPosition, 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, setPixelSize, 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, 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
 

コンストラクタ 詳細

Window

public Window()
Creates a new window.

メソッド 詳細

addWindowListener

public void addWindowListener(WindowListener listener)
Adds a listener to receive window events.

パラメータ:
listener - the listener

alignTo

public void alignTo(com.google.gwt.user.client.Element elem,
                    java.lang.String pos,
                    int[] offsets)
Aligns the window to the specified element.

パラメータ:
elem - the element to align to.
pos - the position to align to (see El.alignTo(com.google.gwt.user.client.Element, java.lang.String, int[]) for more details)
offsets - the offsets

center

public void center()
Centers the window in the viewport.


focus

public void focus()
Focuses the window. If a focusWidget is set, it will receive focus, otherwise the window itself will receive focus.

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

getConstrain

public boolean getConstrain()
Returns true if the window is constrained.

戻り値:
the contstrain state

getDraggable

public Draggable getDraggable()
Returns the window's draggable instance.

戻り値:
the draggable instance

getFocusWidget

public com.google.gwt.user.client.ui.Widget getFocusWidget()
Returns the focus widget.

戻り値:
the focus widget

getInitialWidth

public int getInitialWidth()
Returns the window's initial width.

戻り値:
the width

getMinHeight

public int getMinHeight()
Returns the min height.

戻り値:
the min height

getMinWidth

public int getMinWidth()
Returns the min width.

戻り値:
the min width

hide

public void hide()
Description copied from class: Component
Hide this component. Fires the BeforeHide event before the component is hidden, the fires the Hide event after the component is hidden.

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

hide

public void hide(Button buttonPressed)
Hides the window.

パラメータ:
buttonPressed - the button that was pressed or null

isBlinkModal

public boolean isBlinkModal()
Returns true if modal blinking is enabled.

戻り値:
the blink modal state

isClosable

public boolean isClosable()
Returns true if the window is closable.

戻り値:
the closable state

isDraggable

public boolean isDraggable()
Returns true if the panel is draggable.

戻り値:
the draggable state

isMaximizable

public boolean isMaximizable()
Returns true if window miximizing is enabled.

戻り値:
the maximizable state

isMinimizable

public boolean isMinimizable()
Returns true if window minimizing is enabled.

戻り値:
the minimizable state

isModal

public boolean isModal()
Returns true if modal behavior is enabled.

戻り値:
the modal state

isOnEsc

public boolean isOnEsc()
Returns true if the window is closed when the esc key is pressed.

戻り値:
the on esc state

isPlain

public boolean isPlain()
Returns true if the plain style is enabled.

戻り値:
the plain style state

isResizable

public boolean isResizable()
Returns true if window resizing is enabled.

戻り値:
the resizable state

maximize

public void maximize()
Fits the window within its current container and automatically replaces the 'maximize' tool button with the 'restore' tool button.


minimize

public void minimize()
Placeholder method for minimizing the window. By default, this method simply fires the minimize event since the behavior of minimizing a window is application-specific. To implement custom minimize behavior, either the minimize event can be handled or this method can be overridden.


removeWindowListener

public void removeWindowListener(WindowListener listener)
Removes a previously added listener.

パラメータ:
listener - the listener to remove

restore

public void restore()
Restores a maximized window back to its original size and position prior to being maximized and also replaces the 'restore' tool button with the 'maximize' tool button.


setActive

public void setActive(boolean active)
Makes this the active window by showing its shadow, or deactivates it by hiding its shadow. This method also fires the activate or deactivate event depending on which action occurred.


setBlinkModal

public void setBlinkModal(boolean blinkModal)
True to blink the window when the user clicks outside of the windows bounds (defaults to false). Only applies window model = true.

パラメータ:
blinkModal - true to blink

setClosable

public void setClosable(boolean closable)
True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow closing the window (default to true).

パラメータ:
closable - true to enable closing

setConstrain

public void setConstrain(boolean constrain)
True to constrain the window to the viewport, false to allow it to fall outside of the viewport (defaults to true).

パラメータ:
constrain - true to constrain, otherwise false

setDraggable

public void setDraggable(boolean draggable)
True to enable dragging of this Panel (defaults to false).

パラメータ:
draggable - the draggable to state

setFocusWidget

public void setFocusWidget(com.google.gwt.user.client.ui.Widget focusWidget)
Widget to be given focus when the window is focused).

パラメータ:
focusWidget - the focu widget

setInitialWidth

public void setInitialWidth(int initialWidth)
The width of the window if no width has been specified (defaults to 300).

パラメータ:
initialWidth - the initial width

setMaximizable

public void setMaximizable(boolean maximizable)
True to display the 'maximize' tool button and allow the user to maximize the window, false to hide the button and disallow maximizing the window (defaults to false). Note that when a window is maximized, the tool button will automatically change to a 'restore' button with the appropriate behavior already built-in that will restore the window to its previous size.

パラメータ:
maximizable - the maximizable state

setMinHeight

public void setMinHeight(int minHeight)
The minimum height in pixels allowed for this window (defaults to 100). Only applies when resizable = true.

パラメータ:
minHeight - the min height

setMinimizable

public void setMinimizable(boolean minimizable)
True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button and disallow minimizing the window (defaults to false). Note that this button provides no implementation -- the behavior of minimizing a window is implementation-specific, so the minimize event must be handled and a custom minimize behavior implemented for this option to be useful.

パラメータ:
minimizable - true to enabled minimizing

setMinWidth

public void setMinWidth(int minWidth)
The minimum width in pixels allowed for this window (defaults to 200). Only applies when resizable = true.

パラメータ:
minWidth - the minimum height

setModal

public void setModal(boolean modal)
True to make the window modal and mask everything behind it when displayed, false to display it without restricting access to other UI elements (defaults to false).

パラメータ:
modal - true for modal

setOnEsc

public void setOnEsc(boolean onEsc)
Allows override of the built-in processing for the escape key. Default action is to close the Window.

パラメータ:
onEsc - true to close window on esc key press

setPagePosition

public void setPagePosition(int x,
                            int y)
Description copied from class: BoxComponent
Sets the page XY position of the component. To set the left and top instead, use BoxComponent.setPosition(int, int). This method fires the Move event.

オーバーライド:
setPagePosition in class BoxComponent
パラメータ:
x - the x coordinate
y - the y coordinate

setPlain

public void setPlain(boolean plain)
True to render the window body with a transparent background so that it will blend into the framing elements, false to add a lighter background color to visually highlight the body element and separate it more distinctly from the surrounding frame (defaults to false).

パラメータ:
plain - true to enable the plain style

setPosition

public void setPosition(int left,
                        int top)
Description copied from class: BoxComponent
Sets the left and top of the component. To set the page XY position instead, use BoxComponent.setPagePosition(int, int). This method fires the move event.

オーバーライド:
setPosition in class BoxComponent
パラメータ:
left - the new left
top - the new top

setResizable

public void setResizable(boolean resizable)
True to allow user resizing at each edge and corner of the window, false to disable resizing (defaults to true).

パラメータ:
resizable - true to enabled resizing

show

public void show()
Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.

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

toBack

public void toBack()
Sends this window to the back of (lower z-index than) any other visible windows.


toFront

public void toFront()
Brings this window to the front of any other visible windows.