|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.gargoylesoftware.htmlunit.WebWindowEvent
public final class WebWindowEvent
An event that will be fired when a WebWindow changes.
Field Summary | |
---|---|
static int |
CHANGE
The content of the window has changed |
static int |
CLOSE
A window has closed |
static int |
OPEN
A window has opened |
Constructor Summary | |
---|---|
WebWindowEvent(WebWindow webWindow,
int type,
Page oldPage,
Page newPage)
Create an instance |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Return true if the two objects are equal |
int |
getEventType()
|
Page |
getNewPage()
Return the oldPage |
Page |
getOldPage()
Return the oldPage |
WebWindow |
getWebWindow()
Return the web window that fired the event. |
int |
hashCode()
Return the hash code for this object. |
java.lang.String |
toString()
Return a string representation of this event |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CHANGE
public static final int CLOSE
public static final int OPEN
Constructor Detail |
---|
public WebWindowEvent(WebWindow webWindow, int type, Page oldPage, Page newPage)
webWindow
- The WebWindow that caused the eventtype
- The type - one of OPEN
, CLOSE
or CHANGE
oldPage
- The old contents of the web windownewPage
- The new contents of the web windowMethod Detail |
---|
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare against.
public int getEventType()
public Page getNewPage()
public Page getOldPage()
public WebWindow getWebWindow()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.util.EventObject
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |