Class ProgressEvent

  • 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 ProgressEvent
    extends Event
    A JavaScript object for ProgressEvent.
    See Also:
    Serialized Form
    • Field Detail

      • lengthComputable_

        private boolean lengthComputable_
      • loaded_

        private java.lang.Object loaded_
      • total_

        private long total_
    • Constructor Detail

      • ProgressEvent

        public ProgressEvent()
        Default constructor.
      • ProgressEvent

        public ProgressEvent​(EventTarget target,
                             java.lang.String type)
        Creates a new event instance.
        Parameters:
        target - the event target
        type - the event type
    • 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)
      • isLengthComputable

        public boolean isLengthComputable()
        Returns the lengthComputable property from the event.
        Returns:
        the lengthComputable property from the event.
      • setLengthComputable

        public void setLengthComputable​(boolean lengthComputable)
        Sets the lengthComputable information for this event.
        Parameters:
        lengthComputable - the lengthComputable information for this event
      • getLoaded

        public java.lang.Object getLoaded()
        Returns the loaded property from the event.
        Returns:
        the loaded property from the event.
      • setLoaded

        public void setLoaded​(java.lang.Object loaded)
        Sets the loaded information for this event.
        Parameters:
        loaded - the loaded information for this event
      • getTotal

        public long getTotal()
        Returns the total property from the event.
        Returns:
        the total property from the event.
      • setTotal

        public void setTotal​(long total)
        Sets the total information for this event.
        Parameters:
        total - the total information for this event