Class HashChangeEvent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class HashChangeEvent
    extends Event
    JavaScript object representing the HashChangeEvent.
    See Also:
    Mozilla Developer Network, MSDN, Serialized Form
    • Field Detail

      • oldURL_

        private java.lang.String oldURL_
      • newURL_

        private java.lang.String newURL_
    • Constructor Detail

      • HashChangeEvent

        public HashChangeEvent()
        Creates a new event instance.
      • HashChangeEvent

        public HashChangeEvent​(EventTarget target,
                               java.lang.String type,
                               java.lang.String oldURL,
                               java.lang.String newURL)
        Creates a new event instance.
        Parameters:
        target - the event target
        type - the event type
        oldURL - the old URL
        newURL - the new URL
    • Method Detail

      • jsConstructor

        public void jsConstructor​(java.lang.String type,
                                  org.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​(java.lang.String type,
                                        boolean bubbles,
                                        boolean cancelable,
                                        java.lang.String oldURL,
                                        java.lang.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 java.lang.Object getOldURL()
        Returns the old URL.
        Returns:
        the old URL
      • getNewURL

        public java.lang.Object getNewURL()
        Returns the new URL.
        Returns:
        the new URL