com.gargoylesoftware.htmlunit.javascript.host
Class HashChangeEvent

java.lang.Object
  extended by net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
      extended by com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
          extended by com.gargoylesoftware.htmlunit.javascript.host.Event
              extended by com.gargoylesoftware.htmlunit.javascript.host.HashChangeEvent
All Implemented Interfaces:
Serializable, Cloneable, net.sourceforge.htmlunit.corejs.javascript.ConstProperties, net.sourceforge.htmlunit.corejs.javascript.debug.DebuggableObject, net.sourceforge.htmlunit.corejs.javascript.Scriptable

public class HashChangeEvent
extends Event

JavaScript object representing the HashChangeEvent.

Version:
$Revision: 8960 $
Author:
Ronald Brill, Marc Guillemot, Frank Danek
See Also:
Mozilla Developer Network, MSDN, Serialized Form

Field Summary
 
Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.Event
ABORT, ALT_MASK, AT_TARGET, BACK, BLUR, BUBBLING_PHASE, CAPTURING_PHASE, CHANGE, CLICK, CONTROL_MASK, DBLCLICK, DRAGDROP, ERROR, FOCUS, FORWARD, HELP, KEYDOWN, KEYPRESS, KEYUP, LOAD, LOCATE, META_MASK, MOUSEDOWN, MOUSEDRAG, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOVE, NONE, RESET, RESIZE, SCROLL, SELECT, SHIFT_MASK, SUBMIT, TEXT, TYPE_BEFORE_UNLOAD, TYPE_BLUR, TYPE_CHANGE, TYPE_DOM_DOCUMENT_LOADED, TYPE_ERROR, TYPE_FOCUS, TYPE_FOCUS_IN, TYPE_FOCUS_OUT, TYPE_HASH_CHANGE, TYPE_INPUT, TYPE_KEY_DOWN, TYPE_KEY_PRESS, TYPE_KEY_UP, TYPE_LOAD, TYPE_MESSAGE, TYPE_PROPERTY_CHANGE, TYPE_READY_STATE_CHANGE, TYPE_RESET, TYPE_SUBMIT, TYPE_UNLOAD, UNLOAD, XFER_DONE
 
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
HashChangeEvent()
          Creates a new event instance.
HashChangeEvent(SimpleScriptable scriptable, String type, String oldURL, String newURL)
          Creates a new event instance.
 
Method Summary
 Object getNewURL()
          Returns the new URL.
 Object getOldURL()
          Returns the old URL.
 void initHashChangeEvent(String type, boolean bubbles, boolean cancelable, String oldURL, String newURL)
          Initializes this event.
 void jsConstructor(String type, net.sourceforge.htmlunit.corejs.javascript.ScriptableObject details)
          JavaScript constructor.
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Event
applies, createPropertyChangeEvent, eventCreated, getAltKey, getBubbles, getCancelable, getCancelBubble, getCtrlKey, getCurrentTarget, getDefaultPrevented, getEventPhase, getKeyCode, getPropertyName, getReturnValue, getShiftKey, getSrcElement, getTarget, getTimeStamp, getType, initEvent, isAborted, isPropagationStopped, preventDefault, setAltKey, setBubbles, setCancelable, setCancelBubble, setCtrlKey, setCurrentTarget, setEventPhase, setEventType, setKeyCode, setReturnValue, setShiftKey, setSrcElement, setTarget, setType, stopPropagation, toString
 
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setDomNode, setDomNode, setHtmlElement, setParentScope
 
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setPrototype, size
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashChangeEvent

public HashChangeEvent()
Creates a new event instance.


HashChangeEvent

public HashChangeEvent(SimpleScriptable scriptable,
                       String type,
                       String oldURL,
                       String newURL)
Creates a new event instance.

Parameters:
scriptable - the SimpleScriptable that triggered the event
type - the event type
oldURL - the old URL
newURL - the new URL
Method Detail

jsConstructor

public void jsConstructor(String type,
                          net.sourceforge.htmlunit.corejs.javascript.ScriptableObject details)
JavaScript constructor.

Overrides:
jsConstructor in class Event
Parameters:
type - the event type
details - the event details (optional)

initHashChangeEvent

public void initHashChangeEvent(String type,
                                boolean bubbles,
                                boolean cancelable,
                                String oldURL,
                                String newURL)
Initializes this event.

Parameters:
type - the event type
bubbles - whether or not the event should bubble
cancelable - whether or not the event the event should be cancelable
oldURL - the old URL
newURL - the new URL

getOldURL

public Object getOldURL()
Returns the old URL.

Returns:
the old URL

getNewURL

public Object getNewURL()
Returns the new URL.

Returns:
the new URL


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.