Package me.tongfei.progressbar
Class ProgressUpdateAction
java.lang.Object
me.tongfei.progressbar.ProgressUpdateAction
- All Implemented Interfaces:
Runnable
Represents the action that is executed for each refresh of a progress bar.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ProgressBarConsumerprivate booleanprivate booleanprivate long(package private) ProgressStateprivate ProgressBarRenderer -
Constructor Summary
ConstructorsConstructorDescriptionProgressUpdateAction(ProgressState progress, ProgressBarRenderer renderer, ProgressBarConsumer consumer, boolean continuousUpdate, boolean clearDisplayOnFinish) -
Method Summary
-
Field Details
-
progress
ProgressState progress -
renderer
-
consumer
-
continuousUpdate
private boolean continuousUpdate -
clearDisplayOnFinish
private boolean clearDisplayOnFinish -
last
private volatile long last -
first
private volatile boolean first
-
-
Constructor Details
-
ProgressUpdateAction
ProgressUpdateAction(ProgressState progress, ProgressBarRenderer renderer, ProgressBarConsumer consumer, boolean continuousUpdate, boolean clearDisplayOnFinish)
-
-
Method Details