|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.system.ui.ConsoleInterface
public class ConsoleInterface
Basic console implementation of a user interface.
Constructor Summary | |
---|---|
ConsoleInterface()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleInterface()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |