MultiProgressObjectWrapper wraps multiple progress objects into a single one.
If all wrapped objects are in COMPLETED or FAILED state the state object
will be changed to:
-
StateType.COMPLETED if all wrapped objects reached the COMPLETED state
-
StateType.FAILED if any of wrapped objects reached the FAILED state
Note that all wrapped objects have to be in COMPLETED or FAILED state to
invoke the change of the state of this object. However this does not mean
the events from the wrapped objects are not propagated to the listeners of
this object.
The behaviour of
StateType.RELEASED is quite unsure from JSR-88.
This implementation does not consider it as end state of the ProgressObject.
author: herolds author: Petr Hejl |