|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.sdsc.mbt.util.Status
Provides a toolkit-wide static status message output mechanism. This should be used to produce textual status messages to the user. By default, messages are printed to the current terminal, but authors may elect to add StatusListener objects in order to capture the output for display in scrolling status GUIs, output logs, etc.
StatusListener
,
Field Summary | |
static int |
LEVEL_DEBUG
On a scale of 1 to 5, how important is the message. |
static int |
LEVEL_DUMP
On a scale of 1 to 5, how important is the message. |
static int |
LEVEL_ERROR
On a scale of 1 to 5, how important is the message. |
static int |
LEVEL_QUIET
On a scale of 1 to 5, how important is the message. |
static int |
LEVEL_REMARK
On a scale of 1 to 5, how important is the message. |
static int |
LEVEL_WARNING
On a scale of 1 to 5, how important is the message. |
Constructor Summary | |
Status()
|
Method Summary | |
static void |
addStatusListener(StatusListener statusListener)
Add a StatusListener object in order to start recieving StatusEvent messages. |
static void |
disableStatus()
|
static void |
enableStatus()
|
static int |
getLevelCount()
Get the number of supported level values. |
static java.lang.String |
getLevelName(int level)
Get the human-reable name corresponding to the given level number. |
static int |
getOutputLevel()
Get the output level for subsequent calls to the output method. |
static void |
output(int level,
java.lang.String message)
Output a message at the given status level. |
static void |
progress(float percent,
java.lang.String message)
Show a short progress message and a percentage completed. |
static void |
removeStatusListener(StatusListener statusListener)
Remove a StatusListener object in order to stop recieving StatusEvent messages. |
static void |
setOutputLevel(int level)
Set the output level for subsequent calls to the output method. |
static void |
setOutputLevel(java.lang.String level_name)
Set the output level for subsequent calls to the output method. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEVEL_QUIET
public static final int LEVEL_ERROR
public static final int LEVEL_WARNING
public static final int LEVEL_REMARK
public static final int LEVEL_DEBUG
public static final int LEVEL_DUMP
Constructor Detail |
public Status()
Method Detail |
public static void disableStatus()
public static void enableStatus()
public static void addStatusListener(StatusListener statusListener)
public static void removeStatusListener(StatusListener statusListener)
public static void setOutputLevel(int level)
public static void setOutputLevel(java.lang.String level_name)
public static int getOutputLevel()
public static int getLevelCount()
public static java.lang.String getLevelName(int level)
public static void output(int level, java.lang.String message)
public static void progress(float percent, java.lang.String message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |