Public Member Functions

alma.acs.logging.dialogs.error.ErrorLogDialog Class Reference

Inherits javax::swing::JDialog, and java::awt::event::ActionListener.

List of all members.

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)

Detailed Description

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.

Author:
acaproni

Constructor & Destructor Documentation

alma.acs.logging.dialogs.error.ErrorLogDialog.ErrorLogDialog ( Frame  owner,
String  title,
boolean  modal 
)

Constructor

Parameters:
owner The owner of the dialog
title The title
modal Modal type

References alma.acs.logging.dialogs.error.ErrorLogDialog.setVisible().


Member Function Documentation

void alma.acs.logging.dialogs.error.ErrorLogDialog.actionPerformed ( ActionEvent  e  ) 
See also:
java.awt.event.ActionListener
java.awt.event.ActionEvent

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

Parameters:
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 (  ) 
void alma.acs.logging.dialogs.error.ErrorLogDialog.setVisible ( boolean  visible,
Component  c 
)

Make the dialog visible and position it over the passed component

Parameters:
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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties