com.webrenderer.se.event
Class WindowEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.webrenderer.se.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.

Author:
JadeLiquid Software
See Also:
Serialized Form

Field Summary
protected  int childControlID
          Child controlID
protected  int height
          The requested window height.
protected  IBrowserCanvas popupBrowser
           
protected  java.lang.String URL
           
protected  int width
          The requested window width.
 
Fields inherited from class java.util.EventObject
source
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

URL

protected java.lang.String URL

height

protected int height
The requested window height.


popupBrowser

protected IBrowserCanvas popupBrowser

width

protected int width
The requested window width.


childControlID

protected int childControlID
Child controlID

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 -