public class ProgressEvent extends EventObject
source
Constructor and Description |
---|
ProgressEvent(ProgressSource source,
URL url,
String method,
String contentType,
ProgressSource.State state,
long progress,
long expected)
Construct a ProgressEvent object.
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Return content type of the URL.
|
long |
getExpected()
Return expected maximum progress value; -1 if expected is unknown.
|
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.
|
String |
toString()
Returns a String representation of this EventObject.
|
getSource
public ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, long progress, long expected)
public String getContentType()
public long getExpected()
public String getMethod()
public long getProgress()
public ProgressSource.State getState()
public URL getURL()
public String toString()
EventObject
toString
in class EventObject