public class ProgressEvent
extends java.util.EventObject
Constructor and Description |
---|
ProgressEvent(ProgressSource source,
URL url,
java.lang.String method,
java.lang.String contentType,
ProgressSource.State state,
long progress,
long expected)
Construct a ProgressEvent object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType()
Return content type of the URL.
|
long |
getExpected()
Return expected maximum progress value; -1 if expected is unknown.
|
java.lang.String |
getMethod()
Return method associated with URL.
|
long |
getProgress()
Return current progress value.
|
ProgressSource.State |
getState()
Return state.
|
URL |
getURL()
Return URL related to the progress.
|
java.lang.String |
toString() |
public ProgressEvent(ProgressSource source, URL url, java.lang.String method, java.lang.String contentType, ProgressSource.State state, long progress, long expected)
public URL getURL()
public java.lang.String getMethod()
public java.lang.String getContentType()
public long getProgress()
public long getExpected()
public ProgressSource.State getState()
public java.lang.String toString()
toString
in class java.util.EventObject