Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Types | |
enum | ProgressAction { BEGINTASK, SUBTASK, SETTASKNAME, UPDATE, DONE, CANCEL } |
Public Member Functions | |
ProgressActivity (User source, User target, String progressID, int workCurrent, int workTotal, String taskName, ProgressAction action) | |
boolean | isValid () |
String | toString () |
void | dispatch (IActivityReceiver receiver) |
String | getProgressID () |
int | getWorkCurrent () |
int | getWorkTotal () |
String | getTaskName () |
int | hashCode () |
boolean | equals (Object obj) |
ProgressAction | getAction () |
User | getTarget () |
Protected Attributes | |
String | progressID |
int | workCurrent |
int | workTotal |
String | taskName |
ProgressAction | action |
User | target |
A ProgressActivity is used for controlling a progress bar at a remote peer.
de.fu_berlin.inf.dpp.activities.ProgressActivity.ProgressActivity | ( | User | source, |
User | target, | ||
String | progressID, | ||
int | workCurrent, | ||
int | workTotal, | ||
String | taskName, | ||
ProgressAction | action | ||
) |
void de.fu_berlin.inf.dpp.activities.ProgressActivity.dispatch | ( | IActivityReceiver | receiver | ) |
boolean de.fu_berlin.inf.dpp.activities.ProgressActivity.equals | ( | Object | obj | ) |
Reimplemented from de.fu_berlin.inf.dpp.activities.AbstractActivity.
ProgressAction de.fu_berlin.inf.dpp.activities.ProgressActivity.getAction | ( | ) |
The action describes whether the associated progress bar at the remote site should be updated or closed.
Once a remote progress has been closed the peer might discard all updates.
String de.fu_berlin.inf.dpp.activities.ProgressActivity.getProgressID | ( | ) |
The unique ID by which local users and remote peers can identify the progress process.
User de.fu_berlin.inf.dpp.activities.ProgressActivity.getTarget | ( | ) |
Implements de.fu_berlin.inf.dpp.activities.ITargetedActivity.
String de.fu_berlin.inf.dpp.activities.ProgressActivity.getTaskName | ( | ) |
A human readable description of the work currently being done as part of the process about which this ProgressActivity is informing about.
int de.fu_berlin.inf.dpp.activities.ProgressActivity.getWorkCurrent | ( | ) |
The current position the progress bar should be shown at (in relation to getWorkTotal().
For instance if workCurrent == 3 and workTotal == 10, then the progress bar should be shown at 30% of the total width of the progress dialog.
int de.fu_berlin.inf.dpp.activities.ProgressActivity.getWorkTotal | ( | ) |
The total amount of work associated with this progress process.
int de.fu_berlin.inf.dpp.activities.ProgressActivity.hashCode | ( | ) |
Reimplemented from de.fu_berlin.inf.dpp.activities.AbstractActivity.
boolean de.fu_berlin.inf.dpp.activities.ProgressActivity.isValid | ( | ) |
Reimplemented from de.fu_berlin.inf.dpp.activities.AbstractActivity.
String de.fu_berlin.inf.dpp.activities.ProgressActivity.toString | ( | ) |
String de.fu_berlin.inf.dpp.activities.ProgressActivity.progressID [protected] |
String de.fu_berlin.inf.dpp.activities.ProgressActivity.taskName [protected] |
int de.fu_berlin.inf.dpp.activities.ProgressActivity.workCurrent [protected] |
int de.fu_berlin.inf.dpp.activities.ProgressActivity.workTotal [protected] |