Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.greenstone.gatherer
Class Log  view Log download Log.java

java.lang.Object
  extended byorg.greenstone.gatherer.Log
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class Log
extends java.lang.Object
implements java.awt.event.ActionListener

The GLog provides a logging class for various messages around Gatherer. It includes methods to adding to the log, sorting and filtering the log, reading/writing the log to disk and viewing the log (via a dialog, haha).

Version:
1.0

Field Summary
private  javax.swing.JDialog dialog
          A reference to the dialog box the log will be displayed in so our inner classes have the ability to interact.
 
Constructor Summary
Log()
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Any implementation of ActionListener must include this method so we can be informed when an action has occured.
 void add(Message message)
          Add a message to the log.
 void display()
          Create a modal dialog box components to allow the user to view, and filter the log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dialog

private javax.swing.JDialog dialog
A reference to the dialog box the log will be displayed in so our inner classes have the ability to interact.

Constructor Detail

Log

public Log()
Constructor

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Any implementation of ActionListener must include this method so we can be informed when an action has occured.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

add

public void add(Message message)
Add a message to the log. Note that this may be called from within several different threads so I'd better synchronize.


display

public void display()
Create a modal dialog box components to allow the user to view, and filter the log.