|
||||||||||
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. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
WebWindowEvent(WebWindow webWindow,
int type,
Page oldPage,
Page newPage)
Creates an instance. |
Method Summary | |
---|---|
boolean |
equals(Object object)
Returns true if the two objects are equal. |
int |
getEventType()
|
Page |
getNewPage()
Returns the oldPage. |
Page |
getOldPage()
Returns the oldPage. |
WebWindow |
getWebWindow()
Returns the web window that fired the event. |
int |
hashCode()
Returns the hash code for this object. |
String |
toString()
Returns a string representation of this event. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OPEN
public static final int CLOSE
public static final int CHANGE
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(Object object)
equals
in class Object
object
- the object to compare against
public int hashCode()
hashCode
in class Object
public Page getOldPage()
public Page getNewPage()
public WebWindow getWebWindow()
public String toString()
toString
in class EventObject
public int getEventType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |