|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.display.DialogMessageLogger
public class DialogMessageLogger
A class to write log and status messages to a scrolling text area in a dialog box.
| Nested Class Summary | |
|---|---|
protected class |
DialogMessageLogger.ClearActionListener
|
protected class |
DialogMessageLogger.CreateGUIRunnable
|
protected class |
DialogMessageLogger.SendRunnable
|
protected class |
DialogMessageLogger.SetVisibleRunnable
|
| Field Summary | |
|---|---|
protected JDialog |
outputDialog
|
protected JScrollPane |
outputScrollPane
|
protected JTextArea |
outputTextArea
|
| Constructor Summary | |
|---|---|
DialogMessageLogger(String titleMessage,
int width,
int height,
boolean exitApplicationOnClose)
Construct a logger and make it immediately visible. |
|
DialogMessageLogger(String titleMessage,
int width,
int height,
boolean exitApplicationOnClose,
boolean visible)
Construct a logger. |
|
| Method Summary | |
|---|---|
protected void |
createGUI(String titleMessage,
int width,
int height,
boolean exitApplicationOnClose,
boolean visible)
Construct the GUI for a logger. |
void |
send(String message)
Append the supplied text to the log. |
void |
sendLn(String message)
Append the supplied text to the log, followed by a new line. |
void |
setVisible(boolean visible)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JDialog outputDialog
protected JScrollPane outputScrollPane
protected JTextArea outputTextArea
| Constructor Detail |
|---|
public DialogMessageLogger(String titleMessage,
int width,
int height,
boolean exitApplicationOnClose)
Construct a logger and make it immediately visible.
titleMessage - for the title bar of the dialog boxwidth - initial width of the resizeable dialog boxheight - initial height of the resizeable dialog boxexitApplicationOnClose - if true, when the dialog box is closed (X-d out), will exit the application with success status
public DialogMessageLogger(String titleMessage,
int width,
int height,
boolean exitApplicationOnClose,
boolean visible)
Construct a logger.
titleMessage - for the title bar of the dialog boxwidth - initial width of the resizeable dialog boxheight - initial height of the resizeable dialog boxexitApplicationOnClose - if true, when the dialog box is closed (X-d out), will exit the application with success statusvisible - if true, will be made visible after construction| Method Detail |
|---|
protected void createGUI(String titleMessage,
int width,
int height,
boolean exitApplicationOnClose,
boolean visible)
Construct the GUI for a logger.
titleMessage - for the title bar of the dialog boxwidth - initial width of the resizeable dialog boxheight - initial height of the resizeable dialog boxexitApplicationOnClose - if true, when the dialog box is closed (X-d out), will exit the application with success statusvisible - if true, will be made visible after constructionpublic void setVisible(boolean visible)
public void send(String message)
MessageLoggerAppend the supplied text to the log.
send in interface MessageLoggermessage - the (possibly multi-line) text to append to the logpublic void sendLn(String message)
MessageLoggerAppend the supplied text to the log, followed by a new line.
sendLn in interface MessageLoggermessage - the (possibly multi-line) text to append to the log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||