Class WebWindowEvent
java.lang.Object
java.util.EventObject
org.htmlunit.WebWindowEvent
- All Implemented Interfaces:
Serializable
An event that will be fired when a WebWindow changes.
- Author:
- Mike Bowler, David K. Taylor
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe content of the window has changed.static final intA window has closed.static final intA window has opened.Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionWebWindowEvent(WebWindow webWindow, int type, Page oldPage, Page newPage) Creates an instance. -
Method Summary
Methods inherited from class EventObject
getSource
-
Field Details
-
OPEN
public static final int OPENA window has opened.- See Also:
-
CLOSE
public static final int CLOSEA window has closed.- See Also:
-
CHANGE
public static final int CHANGEThe content of the window has changed.- See Also:
-
-
Constructor Details
-
WebWindowEvent
-
-
Method Details
-
equals
-
hashCode
-
getOldPage
-
getNewPage
-
getWebWindow
Returns the web window that fired the event.- Returns:
- the web window that fired the event
-
toString
Returns a string representation of this event.- Overrides:
toStringin classEventObject- Returns:
- a string representation of this event
-
getEventType
public int getEventType()- Returns:
- the event type
-