public class Progress extends Object
Progress
instances, each modelling a phase of
execution. The root is constructed with Progress()
. Nodes for
sub-phases are created by calling addPhase()
.构造器和说明 |
---|
Progress()
Creates a new root node.
|
限定符和类型 | 方法和说明 |
---|---|
Progress |
addPhase()
Adds a node to the tree.
|
Progress |
addPhase(String status)
Adds a named node to the tree.
|
void |
complete()
Completes this node, moving the parent node to its next child.
|
float |
get()
Returns the overall progress of the root.
|
float |
getProgress()
Returns progress in this node. get() would give overall progress of the
root node(not just given current node).
|
Progress |
phase()
Returns the current sub-node executing.
|
void |
set(float progress)
Called during execution on a leaf node to set its progress.
|
void |
setStatus(String status) |
void |
startNextPhase()
Called during execution to move to the next phase at this level in the
tree.
|
String |
toString() |
public Progress addPhase()
public void startNextPhase()
public Progress phase()
public void complete()
public void set(float progress)
public float get()
public float getProgress()
public void setStatus(String status)
Copyright © 2009 The Apache Software Foundation