public class WindowEvent extends EventObject
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.
source
Constructor and Description |
---|
WindowEvent(Object source)
Constructor for WindowEvent with a source.
|
WindowEvent(Object source,
int width,
int height,
String url) |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the requested window height.
|
IBrowserCanvas |
getPopupBrowser() |
String |
getURL() |
int |
getWidth()
Gets the requested window width.
|
boolean |
isModalPopup()
Returns
true if this event represents the creation of a
popup window that should be modal. |
void |
setDimensions(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(String strURL) |
void |
setWidth(int i) |
getSource, toString
public WindowEvent(Object source)
EventObject.EventObject(Object)
public int getHeight()
public int getWidth()
public void setDimensions(String strURL, int w, int h)
w
- Width of the window.h
- Height of the window.public String getURL()
public void setURL(String strURL)
strURL
- URLpublic void setHeight(int i)
i
- heightpublic void setWidth(int i)
i
- widthpublic IBrowserCanvas getPopupBrowser()
public void setPopupBrowser(IBrowserCanvas canvas)
canvas
- public boolean isModalPopup()
true
if this event represents the creation of a
popup window that should be modal. Listener implementations are
responsible for making the resulting popup window actually modal if
desired.
For other event types the value is always false
.