watch
Class Display

java.lang.Object
  extended by watch.Display

 class Display
extends java.lang.Object

Display toolkit class. Provides static methods for displaying information.


Constructor Summary
Display()
           
 
Method Summary
static cli.OutputDevice err()
          CLI error device accessor.
static void error(java.lang.String J_Error)
          Display an error.
static cli.OutputDevice out()
          CLI output device accessor.
static void printStackTrace(java.lang.Exception e)
          Display the stack trace of an exception.
static void showWarnings(boolean B_ShowWarnings)
          Show warning configuration.
static void warn(java.lang.String J_Warning)
          Display a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Display

Display()
Method Detail

out

public static cli.OutputDevice out()
CLI output device accessor.

Returns:
CLI output device.

err

public static cli.OutputDevice err()
CLI error device accessor.

Returns:
CLI error device.

printStackTrace

public static void printStackTrace(java.lang.Exception e)
Display the stack trace of an exception. Same as Exception.printStackTrace(), but directing the output to the CLI error device.

Parameters:
e - Exception to print stack trace of.

showWarnings

public static void showWarnings(boolean B_ShowWarnings)
Show warning configuration.

Parameters:
B_ShowWarnings - true if the warnings should be displayed, false if not.

warn

public static void warn(java.lang.String J_Warning)
Display a warning. Displays the warning only if the warning configuration permits it.

Parameters:
J_Warning - Warning message to display.

error

public static void error(java.lang.String J_Error)
Display an error.

Parameters:
J_Error - Error message to display.