|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jcreme.processing.BaseTaskActivityMonitor
This is a simple implementation of the TaskActivityMonitor interface. Objects of this class can be used to display information about how the task is doing.
| Field Summary |
| Fields inherited from interface org.jcreme.processing.TaskActivityMonitor |
COMPLETION_PERCENTAGE_PROPERTY, END_DATE_PROPERTY, START_DATE_PROPERTY, TASK_NAME_PROPERTY |
| Constructor Summary | |
BaseTaskActivityMonitor()
Creates new DefaultTaskActivityMonitor |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
protected void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
Fires a PropertyChangeEvent to the registered listener for an int property. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fires a PropertyChangeEvent to the registered listener for an Object property. |
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)
|
void |
setCompletionPercentage(java.lang.Double value)
Changes the completion percentage of the task. |
void |
setEndDate(java.util.Date value)
Sets the end date of the task. |
void |
setStartDate(java.util.Date value)
Sets the start date of the task. |
void |
setTaskName(java.lang.String value)
Changes the name of the task. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BaseTaskActivityMonitor()
| Method Detail |
public java.lang.String getTaskName()
getTaskName in interface TaskActivityMonitorpublic void setTaskName(java.lang.String value)
value - The name for the task.public java.lang.Double getCompletionPercentage()
getCompletionPercentage in interface TaskActivityMonitorpublic void setCompletionPercentage(java.lang.Double value)
value - The new completion percentage for this task.public java.util.Date getStartDate()
getStartDate in interface TaskActivityMonitorpublic void setStartDate(java.util.Date value)
value - The start date.public java.util.Date getEndDate()
getEndDate in interface TaskActivityMonitorpublic void setEndDate(java.util.Date value)
value - The end date.public java.lang.Long getElapsedTime()
getElapsedTime in interface TaskActivityMonitorpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface TaskActivityMonitorlistener - 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)
addPropertyChangeListener in interface TaskActivityMonitorpropertyName - 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)
removePropertyChangeListener in interface TaskActivityMonitorlistener - the listener that must be removed from the event diffusion
list.
public void removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface TaskActivityMonitorpropertyName - 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.
protected void firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyName - the property that was modified.oldValue - the previous value for the property.newValue - the new value for the property.
protected void firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
propertyName - the property that was modified.oldValue - the previous value for the property.newValue - the new value for the property.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||