public class ProgressUtil extends Object
showUserUpdates(String)
which watches for stings that include KEY strings.Modifier and Type | Field and Description |
---|---|
(package private) static LabeledSpinner |
activeIndicator |
(package private) static Timer |
t |
Constructor and Description |
---|
ProgressUtil()
Utility class, no instantiation.
|
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Use with caution.
|
static void |
printStatus(String s,
boolean endExistingStatus)
Print a message to the screen.
|
(package private) static void |
showFileContents(File file) |
(package private) static void |
showFileContents(File file,
int leading,
int trailing) |
static void |
showUserUpdates(String s)
Pass BioLockJ out/err stream lines.
|
static void |
startSpinner(String label) |
static Timer t
static LabeledSpinner activeIndicator
public static void showUserUpdates(String s)
Constants.STATUS_MARK_KEY
or Constants.STATUS_START_KEY
s
- a string, expected to be a line of standard out/err from the main instance of BioLockJ.public static void startSpinner(String label)
public static void printStatus(String s, boolean endExistingStatus)
s
- endExistingStatus
- if there is an active spinner, should it be terminated. If false, the active spinner
will be resumed (if one existed) after printing this message.public static void clear()
static void showFileContents(File file) throws IOException
IOException
static void showFileContents(File file, int leading, int trailing) throws IOException
IOException