| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
The JWUI interface is a generic User Interface
| Field Summary | |
| static int | ABORT_OPTIONReturn value if abort is chosen. | 
| static int | APPROVE_OPTIONReturn value if approve (yes, ok) is chosen. | 
| static int | CANCEL_OPTIONReturn value if cancel is chosen. | 
| static int | ERROR_OPTIONReturn value if an error occured. | 
| Method Summary | |
|  int | ask(java.lang.String[] message,
    java.lang.String[] question)Ask a question to the user. | 
|  boolean | askQuestion(java.lang.String question)Ask a question to the user. | 
|  boolean | askQuestion(java.lang.String[] message,
            java.lang.String[] question)Ask a question to the user. | 
|  boolean | askQuestion(java.lang.String message,
            java.lang.String question)Ask a question to the user. | 
|  void | displayError(java.lang.String msg)Display an error message | 
|  void | displayError(java.lang.String[] msg,
             java.lang.String title)Display a error message (on several lines) | 
|  void | displayError(java.lang.String msg,
             java.lang.String title)Display an error message | 
|  void | displayMessage(java.lang.String msg)Display a message | 
|  void | displayMessage(java.lang.String[] msg,
               java.lang.String title)Display a message (on several lines) | 
|  void | displayMessage(java.lang.String msg,
               java.lang.String title)Display a message | 
|  void | errlog(java.lang.String log)Log an error | 
|  java.lang.String[] | getAuthentication(java.lang.String realm,
                  java.lang.String message,
                  boolean firstime)Get a username and a password | 
|  java.io.OutputStream | getErrlogStream()Get a Stream on the errlog. | 
|  java.lang.String | getFile(java.lang.String title,
        java.lang.String message)Get a File from the user. | 
|  java.lang.String | getFile(java.lang.String title,
        java.lang.String[] message)Get a File from the user. | 
|  java.io.OutputStream | getLogStream()Get a Stream on the log. | 
|  java.io.InputStream | getMonitoredInputStream(java.io.InputStream in,
                        java.lang.String message,
                        int length)Get a monitored inputstream | 
|  java.lang.String | getString(java.lang.String message)Get a String from the user. | 
|  java.lang.String | getString(java.lang.String[] message)Get a String from the user. | 
|  void | hidelogs()Hide the log to the User (and still write in the log stream) | 
|  void | hidePopups()No message popup | 
|  void | log(java.lang.String log)Log a string | 
|  void | setStatus(java.lang.String stat) | 
|  void | showlogs()Show the log to the User (and still write in the log stream) | 
|  void | showPopups()Display message popups | 
|  void | sync()Flush the logs (log and errlog) | 
| Field Detail | 
public static final int CANCEL_OPTION
public static final int APPROVE_OPTION
public static final int ABORT_OPTION
public static final int ERROR_OPTION
| Method Detail | 
public java.lang.String[] getAuthentication(java.lang.String realm,
                                            java.lang.String message,
                                            boolean firstime)
firstime - is is the first time we ask for a password?
public java.lang.String getFile(java.lang.String title,
                                java.lang.String message)
message - the message to display
public java.lang.String getFile(java.lang.String title,
                                java.lang.String[] message)
message - the message to displaypublic java.lang.String getString(java.lang.String message)
message - the message to displaypublic java.lang.String getString(java.lang.String[] message)
message - the message to displaypublic boolean askQuestion(java.lang.String question)
question - the Question
 return a boolean (true = yes, false = no)
public boolean askQuestion(java.lang.String message,
                           java.lang.String question)
message - a message to display before the questionquestion - the Question
 return a boolean (true = yes, false = no)
public boolean askQuestion(java.lang.String[] message,
                           java.lang.String[] question)
question - the Question (several lines)message - a message to display before the question (several lines)
 return a boolean (true = yes, false = no)
public int ask(java.lang.String[] message,
               java.lang.String[] question)
question - the Question (several lines)message - a message to display before the question (several lines)public void displayError(java.lang.String msg)
msg - the error message
public void displayError(java.lang.String msg,
                         java.lang.String title)
msg - the error messagetitle - the title
public void displayError(java.lang.String[] msg,
                         java.lang.String title)
msg - the messagetitle - the titlepublic void displayMessage(java.lang.String msg)
msg - the message
public void displayMessage(java.lang.String msg,
                           java.lang.String title)
msg - the messagetitle - the title
public void displayMessage(java.lang.String[] msg,
                           java.lang.String title)
msg - the messagetitle - the dialog titlepublic void setStatus(java.lang.String stat)
public void log(java.lang.String log)
the - String to logpublic void errlog(java.lang.String log)
the - String to logpublic void sync()
public java.io.OutputStream getLogStream()
public java.io.OutputStream getErrlogStream()
public java.io.InputStream getMonitoredInputStream(java.io.InputStream in,
                                                   java.lang.String message,
                                                   int length)
in - the inputstream to monitormessage - the message to display during monitoringlength - the number of byte to be readpublic void showlogs()
public void hidelogs()
public void hidePopups()
public void showPopups()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||