Inherits javax::swing::JDialog, and java::awt::event::ActionListener.
Public Member Functions | |
ErrorLogDialog (Frame owner, String title, boolean modal) | |
synchronized void | appendText (String str) |
synchronized void | clearAll () |
void | actionPerformed (ActionEvent e) |
void | dispose () |
void | setVisible (boolean visible, Component c) |
The dialog to show the errors.
The dialog stores errors till maxLength chars is reached. If the log exceeds that number, they are automatically flushed in a file in ACS_TMP
.
The dimension defaults to ERROR_LOG_DEFAULT_SIZE
and can be changed setting the ERRORLOG_SIZE_PROP_NAME
property.
The content of the dialog can be saved and cleared.
alma.acs.logging.dialogs.error.ErrorLogDialog.ErrorLogDialog | ( | Frame | owner, | |
String | title, | |||
boolean | modal | |||
) |
Constructor
owner | The owner of the dialog | |
title | The title | |
modal | Modal type |
References alma.acs.logging.dialogs.error.ErrorLogDialog.setVisible().
void alma.acs.logging.dialogs.error.ErrorLogDialog.actionPerformed | ( | ActionEvent | e | ) |
References alma.acs.logging.dialogs.error.ErrorLogDialog.clearAll(), and alma.acs.logging.dialogs.error.ErrorLogDialog.setVisible().
synchronized void alma.acs.logging.dialogs.error.ErrorLogDialog.appendText | ( | String | str | ) |
Add a String to the error log and show/hide the dialog if it is the first time an error is added
str | The string to append in the TextArea | |
show | Show/hide the dialog |
Referenced by com.cosylab.logging.LoggingClient.errorReceived().
synchronized void alma.acs.logging.dialogs.error.ErrorLogDialog.clearAll | ( | ) |
Clear the log in the windows and the log in the file
References alma.acs.logging.dialogs.error.ErrorLogFile.clear().
Referenced by alma.acs.logging.dialogs.error.ErrorLogDialog.actionPerformed().
void alma.acs.logging.dialogs.error.ErrorLogDialog.dispose | ( | ) |
References alma.acs.logging.dialogs.error.ErrorLogFile.close().
Referenced by com.cosylab.logging.LoggingClient.close().
void alma.acs.logging.dialogs.error.ErrorLogDialog.setVisible | ( | boolean | visible, | |
Component | c | |||
) |
Make the dialog visible and position it over the passed component
visible | If true show the component | |
c | The component to show this dialog over |
Referenced by alma.acs.logging.dialogs.error.ErrorLogDialog.actionPerformed(), com.cosylab.logging.LoggingClient.close(), and alma.acs.logging.dialogs.error.ErrorLogDialog.ErrorLogDialog().