|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<T>
com.extjs.gxt.ui.client.widget.ScrollContainer<Component>
com.extjs.gxt.ui.client.widget.LayoutContainer
com.extjs.gxt.ui.client.widget.ContentPanel
com.extjs.gxt.ui.client.widget.Window
public class Window
A specialized content panel intended for use as an application window.
The window is automatically registered with theWindowManager
when created. The window should be unregistered with the WindownManager when
it is no longer used.
setActive(boolean).setActive(boolean)
| 入れ子クラス 概要 |
|---|
| クラス 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.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 |
| コンストラクタ 詳細 |
|---|
public Window()
| メソッド 詳細 |
|---|
public void addWindowListener(WindowListener listener)
listener - the listener
public void alignTo(com.google.gwt.user.client.Element elem,
java.lang.String pos,
int[] offsets)
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 offsetspublic void center()
public void focus()
focus in class Componentpublic boolean getConstrain()
public Draggable getDraggable()
public com.google.gwt.user.client.ui.Widget getFocusWidget()
public int getInitialWidth()
public int getMinHeight()
public int getMinWidth()
public void hide()
Component
hide in class Componentpublic void hide(Button buttonPressed)
buttonPressed - the button that was pressed or nullpublic boolean isBlinkModal()
public boolean isClosable()
public boolean isDraggable()
public boolean isMaximizable()
public boolean isMinimizable()
public boolean isModal()
public boolean isOnEsc()
public boolean isPlain()
public boolean isResizable()
public void maximize()
public void minimize()
public void removeWindowListener(WindowListener listener)
listener - the listener to removepublic void restore()
public void setActive(boolean active)
public void setBlinkModal(boolean blinkModal)
blinkModal - true to blinkpublic void setClosable(boolean closable)
closable - true to enable closingpublic void setConstrain(boolean constrain)
constrain - true to constrain, otherwise falsepublic void setDraggable(boolean draggable)
draggable - the draggable to statepublic void setFocusWidget(com.google.gwt.user.client.ui.Widget focusWidget)
focusWidget - the focu widgetpublic void setInitialWidth(int initialWidth)
initialWidth - the initial widthpublic void setMaximizable(boolean maximizable)
maximizable - the maximizable statepublic void setMinHeight(int minHeight)
minHeight - the min heightpublic void setMinimizable(boolean minimizable)
minimizable - true to enabled minimizingpublic void setMinWidth(int minWidth)
minWidth - the minimum heightpublic void setModal(boolean modal)
modal - true for modalpublic void setOnEsc(boolean onEsc)
onEsc - true to close window on esc key press
public void setPagePosition(int x,
int y)
BoxComponentBoxComponent.setPosition(int, int). This method fires the Move
event.
setPagePosition in class BoxComponentx - the x coordinatey - the y coordinatepublic void setPlain(boolean plain)
plain - true to enable the plain style
public void setPosition(int left,
int top)
BoxComponentBoxComponent.setPagePosition(int, int). This method fires the move event.
setPosition in class BoxComponentleft - the new lefttop - the new toppublic void setResizable(boolean resizable)
resizable - true to enabled resizingpublic void show()
show in class Componentpublic void toBack()
public void toFront()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||