com.webrenderer.event
Class WindowEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycom.webrenderer.event.WindowEvent
All Implemented Interfaces:
java.io.Serializable

public class WindowEvent
extends java.util.EventObject

An event which indicates that the browser has changed the window. Currently, a WindowEvent will be invoked if:

To reduce the cost of multiple method invocations, the event object will record the new data pertaining to the event. The object will only contain the data required for the given event. This implies that if the event was generated due to a window resize request, then the other information will be invalid.

See Also:
Serialized Form

Constructor Summary
WindowEvent(java.lang.Object source)
          Constructor for WindowEvent with a source.
WindowEvent(java.lang.Object source, int width, int height, java.lang.String url)
           
 
Method Summary
 int getChildControlID()
           
 int getHeight()
          Gets the requested window height.
 IBrowserCanvas getPopupBrowser()
           
 java.lang.String getURL()
           
 int getWidth()
          Gets the requested window width.
 void setChildControlID(int i)
           
 void setDimensions(java.lang.String strURL, int w, int h)
          Sets the height and width of the window request.
 void setHeight(int i)
           
 void setPopupBrowser(IBrowserCanvas canvas)
           
 void setURL(java.lang.String strURL)
           
 void setWidth(int i)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowEvent

public WindowEvent(java.lang.Object source)
Constructor for WindowEvent with a source.

See Also:
EventObject.EventObject(Object)

WindowEvent

public WindowEvent(java.lang.Object source,
                   int width,
                   int height,
                   java.lang.String url)
Method Detail

getHeight

public int getHeight()
Gets the requested window height.

Returns:
int Height of window.

getWidth

public int getWidth()
Gets the requested window width.

Returns:
int Width of window.

setDimensions

public void setDimensions(java.lang.String strURL,
                          int w,
                          int h)
Sets the height and width of the window request.

Parameters:
w - Width of the window.
h - Height of the window.

getURL

public java.lang.String getURL()
Returns:
the URL

setURL

public void setURL(java.lang.String strURL)
Parameters:
strURL - URL

setHeight

public void setHeight(int i)
Parameters:
i - height

setWidth

public void setWidth(int i)
Parameters:
i - width

getChildControlID

public int getChildControlID()
Returns:
child control ID

setChildControlID

public void setChildControlID(int i)
Parameters:
i - control ID of child

getPopupBrowser

public IBrowserCanvas getPopupBrowser()
Returns:
The browser object for the popup.

setPopupBrowser

public void setPopupBrowser(IBrowserCanvas canvas)
Parameters:
canvas -