cad.simcad.main_server.sui
Class Tui

java.lang.Object
  |
  +--cad.simcad.main_server.sui.Tui
All Implemented Interfaces:
UserInterface

public class Tui
extends java.lang.Object
implements UserInterface

Author:
Administrator

Constructor Summary
Tui()
          Creates a new instance of Tui
 
Method Summary
 java.lang.String askString(java.lang.String prompt, boolean ispass)
          Prompts the user for a single string (hidden if ispass is true)
 java.lang.String[] askStrings(java.lang.String[] prompts, boolean[] ispass)
          Get several strings from user.
 void debug(java.lang.String msg, int lvl)
           
 void setDebugLevel(int i)
           
 void shwErrMsg(java.lang.String n)
          Error message.
 void shwMsg(java.lang.String n)
          Notification message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tui

public Tui()
Creates a new instance of Tui

Method Detail

askString

public java.lang.String askString(java.lang.String prompt,
                                  boolean ispass)
Prompts the user for a single string (hidden if ispass is true)

Specified by:
askString in interface UserInterface

askStrings

public java.lang.String[] askStrings(java.lang.String[] prompts,
                                     boolean[] ispass)
Get several strings from user. If the ispass array is null, assume all strings are to be echoed normally.

Specified by:
askStrings in interface UserInterface

debug

public void debug(java.lang.String msg,
                  int lvl)
Specified by:
debug in interface UserInterface

shwErrMsg

public void shwErrMsg(java.lang.String n)
Error message.

Specified by:
shwErrMsg in interface UserInterface
Parameters:
n - Show Error Message n

shwMsg

public void shwMsg(java.lang.String n)
Notification message. There may be many of these, so dont use modal dialogs.

Specified by:
shwMsg in interface UserInterface
Parameters:
n - message

setDebugLevel

public void setDebugLevel(int i)
Specified by:
setDebugLevel in interface UserInterface

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be