|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface describes an activity monitor. Objects of classes implementing this interface can then be used to display information about how the task is doing.
| Field Summary | |
static java.lang.String |
COMPLETION_PERCENTAGE_PROPERTY
The name of the property for CompletionPercentage. |
static java.lang.String |
END_DATE_PROPERTY
The name of the property for EndDate. |
static java.lang.String |
START_DATE_PROPERTY
The name of the property for StartDate. |
static java.lang.String |
TASK_NAME_PROPERTY
The name of the property for TaskName. |
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
java.lang.Double |
getCompletionPercentage()
Gives access to the completion percentage of the task. |
java.lang.Long |
getElapsedTime()
Provides the elapsed time since the task started. |
java.util.Date |
getEndDate()
Gives access to the task's completion date. |
java.util.Date |
getStartDate()
Gives access to the date when the task started. |
java.lang.String |
getTaskName()
Gives access to the task's name. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
| Field Detail |
public static final java.lang.String TASK_NAME_PROPERTY
public static final java.lang.String COMPLETION_PERCENTAGE_PROPERTY
public static final java.lang.String START_DATE_PROPERTY
public static final java.lang.String END_DATE_PROPERTY
| Method Detail |
public java.lang.String getTaskName()
public java.lang.Double getCompletionPercentage()
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public java.lang.Long getElapsedTime()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - a property change listener as defined by the beans
conventions. It should at least be reported any change to the
following properties: completionPercentage, startDate,
endDate.
public void addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
propertyName - the name of a property that the listener has to monitor.listener - a property change listener as defined by the beans
conventions.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - the listener that must be removed from the event diffusion
list.
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
propertyName - the property for which changes won't be monitored anymore.listener - the listener that must be removed from the event diffusion
list for that property.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||