public class ConsoleInterface extends java.lang.Object implements UserInterface
Constructor and Description |
---|
ConsoleInterface() |
Modifier and Type | Method and Description |
---|---|
void |
print(UI.Module m,
UI.PrintLevel level,
java.lang.String s)
Displays some information to the user from the specified module with the
specified print level.
|
void |
taskStart(java.lang.String s,
int min,
int max)
Prepare a progress bar representing a lengthy task.
|
void |
taskStop()
Closes the current progress bar to indicate the task is over
|
void |
taskUpdate(int current)
Updates the current progress bar to a value between the current min and
max.
|
public void print(UI.Module m, UI.PrintLevel level, java.lang.String s)
UserInterface
print
in interface UserInterface
m
- module the message came fromlevel
- seriousness of the messages
- string to displaypublic void taskStart(java.lang.String s, int min, int max)
UserInterface
taskStart
in interface UserInterface
s
- desriptive stringmin
- minimum value of the taskmax
- maximum value of the taskpublic void taskUpdate(int current)
UserInterface
taskUpdate
in interface UserInterface
current
- current value of the task in progress.public void taskStop()
UserInterface
taskStop
in interface UserInterface