public class WaitingHandlerCLIImpl extends Object implements WaitingHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
iReport
The report to append.
|
sdf, tabHtml| Constructor and Description |
|---|
WaitingHandlerCLIImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendReport(String report,
boolean includeDate,
boolean addNewLine)
Append text to the report.
|
void |
appendReportEndLine()
Append a new line to the report.
|
void |
appendReportNewLineNoDate()
Append two tabs to the report.
|
int |
getMaxPrimaryProgressCounter()
Returns the max primary progress counter.
|
int |
getMaxSecondaryProgressCounter()
Returns the max secondary progress counter.
|
int |
getPrimaryProgressCounter()
Returns the primary progress counter.
|
int |
getSecondaryProgressCounter()
Returns the secondary progress counter.
|
void |
increasePrimaryProgressCounter()
Increase the primary progress counter by one "counter".
|
void |
increasePrimaryProgressCounter(int amount)
Increase the primary progress counter by the given increment.
|
void |
increaseSecondaryProgressCounter()
Increase the secondary progress counter by one "counter".
|
void |
increaseSecondaryProgressCounter(int amount)
Increase the secondary progress counter by the given amount.
|
boolean |
isReport()
Indicates whether this waiting handler supports reports.
|
boolean |
isRunCanceled()
Returns true if the run is canceled.
|
boolean |
isRunFinished()
Returns true if the process is finished.
|
void |
resetPrimaryProgressCounter()
Reset the primary progress counter to 0.
|
void |
resetSecondaryProgressCounter()
Reset the secondary progress counter to 0.
|
void |
setMaxPrimaryProgressCounter(int maxProgressValue)
Set the maximum value for the primary progress counter.
|
void |
setMaxSecondaryProgressCounter(int maxProgressValue)
Set the maximum value for the secondary progress counter.
|
void |
setPrimaryProgressCounter(int value)
Sets the primary progress counter to the given value.
|
void |
setPrimaryProgressCounterIndeterminate(boolean indeterminate)
Sets whether the primary progress counter is indeterminate or not.
|
void |
setRunCanceled()
Set the process as canceled.
|
void |
setRunFinished()
Set the process as finished.
|
void |
setSecondaryProgressCounter(int value)
Sets the secondary progress counter to the given value.
|
void |
setSecondaryProgressCounterIndeterminate(boolean indeterminate)
Sets the secondary progress counter to indeterminate or not.
|
void |
setSecondaryProgressText(String text)
Set the secondary progress counter text.
|
void |
setWaitingText(String text)
Sets the text describing what is currently being waited for.
|
protected String iReport
public void setMaxPrimaryProgressCounter(int maxProgressValue)
WaitingHandlersetMaxPrimaryProgressCounter in interface WaitingHandlermaxProgressValue - the max valuepublic void increasePrimaryProgressCounter()
WaitingHandlerincreasePrimaryProgressCounter in interface WaitingHandlerpublic void increasePrimaryProgressCounter(int amount)
WaitingHandlerincreasePrimaryProgressCounter in interface WaitingHandleramount - the increment to increase the value bypublic void setPrimaryProgressCounter(int value)
WaitingHandlersetPrimaryProgressCounter in interface WaitingHandlervalue - the progress valuepublic void setMaxSecondaryProgressCounter(int maxProgressValue)
WaitingHandlersetMaxSecondaryProgressCounter in interface WaitingHandlermaxProgressValue - the max valuepublic void resetSecondaryProgressCounter()
WaitingHandlerresetSecondaryProgressCounter in interface WaitingHandlerpublic void increaseSecondaryProgressCounter()
WaitingHandlerincreaseSecondaryProgressCounter in interface WaitingHandlerpublic void setSecondaryProgressCounter(int value)
WaitingHandlersetSecondaryProgressCounter in interface WaitingHandlervalue - the progress valuepublic void increaseSecondaryProgressCounter(int amount)
WaitingHandlerincreaseSecondaryProgressCounter in interface WaitingHandleramount - the amount to increase the value bypublic void setSecondaryProgressCounterIndeterminate(boolean indeterminate)
WaitingHandlersetSecondaryProgressCounterIndeterminate in interface WaitingHandlerindeterminate - if true, set to indeterminatepublic void setRunFinished()
WaitingHandlersetRunFinished in interface WaitingHandlerpublic void setRunCanceled()
WaitingHandlersetRunCanceled in interface WaitingHandlerpublic void appendReport(String report, boolean includeDate, boolean addNewLine)
WaitingHandlerappendReport in interface WaitingHandlerreport - the text to appendincludeDate - if the date and time is to be added to the front of
the textaddNewLine - add a new line after the text?public void appendReportNewLineNoDate()
WaitingHandlerappendReportNewLineNoDate in interface WaitingHandlerpublic void appendReportEndLine()
WaitingHandlerappendReportEndLine in interface WaitingHandlerpublic boolean isRunCanceled()
WaitingHandlerisRunCanceled in interface WaitingHandlerpublic boolean isRunFinished()
WaitingHandlerisRunFinished in interface WaitingHandlerpublic void setWaitingText(String text)
WaitingHandlersetWaitingText in interface WaitingHandlertext - a text describing what is currently waited forpublic void setPrimaryProgressCounterIndeterminate(boolean indeterminate)
WaitingHandlersetPrimaryProgressCounterIndeterminate in interface WaitingHandlerindeterminate - a boolean indicating whether the primary progress
counter is indeterminate or notpublic boolean isReport()
WaitingHandlerisReport in interface WaitingHandlerpublic void setSecondaryProgressText(String text)
WaitingHandlersetSecondaryProgressText in interface WaitingHandlertext - the text to setpublic void resetPrimaryProgressCounter()
WaitingHandlerresetPrimaryProgressCounter in interface WaitingHandlerpublic int getPrimaryProgressCounter()
WaitingHandlergetPrimaryProgressCounter in interface WaitingHandlerpublic int getMaxPrimaryProgressCounter()
WaitingHandlergetMaxPrimaryProgressCounter in interface WaitingHandlerpublic int getSecondaryProgressCounter()
WaitingHandlergetSecondaryProgressCounter in interface WaitingHandlerpublic int getMaxSecondaryProgressCounter()
WaitingHandlergetMaxSecondaryProgressCounter in interface WaitingHandlerCopyright © 2014. All rights reserved.