public class WaitingHandlerCLIImpl extends java.lang.Object implements WaitingHandler
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
iReport
The report to append.
|
sdf, tab
Constructor and Description |
---|
WaitingHandlerCLIImpl() |
Modifier and Type | Method and Description |
---|---|
void |
appendReport(java.lang.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.
|
void |
displayHtmlMessage(javax.swing.JEditorPane messagePane,
java.lang.String title,
int messageType)
Display a given HTML containing message to the user separately from the
main output.
|
void |
displayMessage(java.lang.String message,
java.lang.String title,
int messageType)
Display a given message to the user separately from the main output.
|
javax.swing.JProgressBar |
getPrimaryProgressBar()
Returns the primary progress bar for updates from external processes.
|
javax.swing.JProgressBar |
getSecondaryProgressBar()
Returns the secondary progress bar for updates from external processes.
|
void |
increaseProgressValue()
Increase the progress bar value by one "counter".
|
void |
increaseProgressValue(int amount)
Increase the progress bar value by the given number.
|
void |
increaseSecondaryProgressValue()
Increase the secondary progress bar value by one "counter".
|
void |
increaseSecondaryProgressValue(int amount)
Increase the secondary progress bar value by the given amount.
|
boolean |
isRunCanceled()
Returns true if the run is canceled.
|
boolean |
isRunFinished()
Returns true if the run is finished.
|
void |
resetSecondaryProgressBar()
Reset the secondary progress bar value to 0.
|
void |
setIndeterminate(boolean indeterminate)
Sets whether the primary progress bar is indeterminate or not.
|
void |
setMaxProgressValue(int maxProgressValue)
Set the maximum value of the progress bar.
|
void |
setMaxSecondaryProgressValue(int maxProgressValue)
Set the maximum value of the secondary progress bar.
|
void |
setRunCanceled()
Set the analysis as canceled.
|
void |
setRunFinished()
Set the analysis as finished.
|
void |
setSecondaryProgressDialogIndeterminate(boolean intermediate)
Sets the secondary progress bar to indeterminate or not.
|
void |
setSecondaryProgressValue(int value)
Sets the secondary progress bar to the given value.
|
void |
setWaitingText(java.lang.String text)
Sets the text describing what is currently waited for.
|
public void setMaxProgressValue(int maxProgressValue)
WaitingHandler
setMaxProgressValue
in interface WaitingHandler
maxProgressValue
- the max valuepublic void increaseProgressValue()
WaitingHandler
increaseProgressValue
in interface WaitingHandler
public void increaseProgressValue(int amount)
WaitingHandler
increaseProgressValue
in interface WaitingHandler
amount
- the increment to increase the value bypublic void setMaxSecondaryProgressValue(int maxProgressValue)
WaitingHandler
setMaxSecondaryProgressValue
in interface WaitingHandler
maxProgressValue
- the max valuepublic void resetSecondaryProgressBar()
WaitingHandler
resetSecondaryProgressBar
in interface WaitingHandler
public void increaseSecondaryProgressValue()
WaitingHandler
increaseSecondaryProgressValue
in interface WaitingHandler
public void setSecondaryProgressValue(int value)
WaitingHandler
setSecondaryProgressValue
in interface WaitingHandler
value
- the progress valuepublic void increaseSecondaryProgressValue(int amount)
WaitingHandler
increaseSecondaryProgressValue
in interface WaitingHandler
amount
- the amount to increase the value bypublic void setSecondaryProgressDialogIndeterminate(boolean intermediate)
WaitingHandler
setSecondaryProgressDialogIndeterminate
in interface WaitingHandler
intermediate
- if true, set to indeterminatepublic void setRunFinished()
WaitingHandler
setRunFinished
in interface WaitingHandler
public void setRunCanceled()
WaitingHandler
setRunCanceled
in interface WaitingHandler
public void appendReport(java.lang.String report, boolean includeDate, boolean addNewLine)
WaitingHandler
appendReport
in interface WaitingHandler
report
- 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()
WaitingHandler
appendReportNewLineNoDate
in interface WaitingHandler
public void appendReportEndLine()
WaitingHandler
appendReportEndLine
in interface WaitingHandler
public boolean isRunCanceled()
WaitingHandler
isRunCanceled
in interface WaitingHandler
public boolean isRunFinished()
WaitingHandler
isRunFinished
in interface WaitingHandler
public javax.swing.JProgressBar getSecondaryProgressBar()
getSecondaryProgressBar
in interface WaitingHandler
public void displayMessage(java.lang.String message, java.lang.String title, int messageType)
WaitingHandler
displayMessage
in interface WaitingHandler
message
- the message to displaytitle
- the title of the messagemessageType
- the message type in the, e.g.,
JOptionPane.INFORMATION_MESSAGEpublic void displayHtmlMessage(javax.swing.JEditorPane messagePane, java.lang.String title, int messageType)
WaitingHandler
displayHtmlMessage
in interface WaitingHandler
public void setWaitingText(java.lang.String text)
WaitingHandler
setWaitingText
in interface WaitingHandler
text
- a text describing what is currently waited forpublic javax.swing.JProgressBar getPrimaryProgressBar()
WaitingHandler
getPrimaryProgressBar
in interface WaitingHandler
public void setIndeterminate(boolean indeterminate)
WaitingHandler
setIndeterminate
in interface WaitingHandler
indeterminate
- a boolean indicating whether the primary progress
bar shall be indeterminate or notCopyright © 2013. All Rights Reserved.