com.extjs.gxt.ui.client.event
Class WindowEvent

java.lang.Object
  extended by com.extjs.gxt.ui.client.event.BaseEvent
      extended by com.extjs.gxt.ui.client.event.DomEvent
          extended by com.extjs.gxt.ui.client.event.ComponentEvent
              extended by com.extjs.gxt.ui.client.event.BoxComponentEvent
                  extended by com.extjs.gxt.ui.client.event.WindowEvent
Direct Known Subclasses:
MessageBoxEvent

public class WindowEvent
extends BoxComponentEvent

Window event type.

See Also:
Window, Dialog

Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.event.DomEvent
event
 
Constructor Summary
WindowEvent(Window window)
           
WindowEvent(Window window, Button buttonClicked)
           
WindowEvent(Window window, com.google.gwt.user.client.Event event)
           
 
Method Summary
 Button getButtonClicked()
          Returns the button that was clicked.
 Window getWindow()
          Returns the source window.
 void setButtonClicked(Button buttonClicked)
          Sets the clicked button.
 void setWindow(Window window)
          Sets the source window.
 
Methods inherited from class com.extjs.gxt.ui.client.event.BoxComponentEvent
getBoxComponent, getHeight, getSize, getWidth, getX, getY, setBoxComponent, setHeight, setSize, setWidth, setX, setY
 
Methods inherited from class com.extjs.gxt.ui.client.event.ComponentEvent
getComponent, getState, setComponent, setState
 
Methods inherited from class com.extjs.gxt.ui.client.event.DomEvent
cancelBubble, getClientX, getClientY, getEvent, getEventTypeInt, getKeyCode, getTarget, getTarget, getTargetEl, getXY, hasModifier, isAltKey, isControlKey, isNavKeyPress, isNavKeyPress, isRightClick, isShiftKey, isSpecialKey, isSpecialKey, preventDefault, setEvent, stopEvent, within, within
 
Methods inherited from class com.extjs.gxt.ui.client.event.BaseEvent
getSource, getType, isCancelled, setCancelled, setSource, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowEvent

public WindowEvent(Window window)

WindowEvent

public WindowEvent(Window window,
                   com.google.gwt.user.client.Event event)

WindowEvent

public WindowEvent(Window window,
                   Button buttonClicked)
Method Detail

getWindow

public Window getWindow()
Returns the source window.

Returns:
the source window

setWindow

public void setWindow(Window window)
Sets the source window.

Parameters:
window - the source window

getButtonClicked

public Button getButtonClicked()
Returns the button that was clicked.

Returns:
the clicked button

setButtonClicked

public void setButtonClicked(Button buttonClicked)
Sets the clicked button.

Parameters:
buttonClicked - the clicked button