Class ProgressEvent

java.lang.Object
org.htmlunit.corejs.javascript.ScriptableObject
All Implemented Interfaces:
Serializable, 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:
  • Field Details

    • lengthComputable_

      private boolean lengthComputable_
    • loaded_

      private Object loaded_
    • total_

      private long total_
  • Constructor Details

    • ProgressEvent

      public ProgressEvent()
      Default constructor.
    • ProgressEvent

      public ProgressEvent(EventTarget target, String type)
      Creates a new event instance.
      Parameters:
      target - the event target
      type - the event type
  • Method Details

    • jsConstructor

      public void jsConstructor(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 Object getLoaded()
      Returns the loaded property from the event.
      Returns:
      the loaded property from the event.
    • setLoaded

      public void setLoaded(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