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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe content of the window has changed.static final intA window has closed.private final Pageprivate final Pagestatic final intA window has opened.private final intFields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionWebWindowEvent(WebWindow webWindow, int type, Page oldPage, Page newPage) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the two objects are equal.intReturns the oldPage.Returns the oldPage.Returns the web window that fired the event.inthashCode()Returns the hash code for this object.private static booleantoString()Returns a string representation of this event.Methods inherited from class EventObject
getSource
-
Field Details
-
oldPage_
-
newPage_
-
type_
private final int type_ -
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
-
isEqual
-
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
-