net.sf.dc.messages
Class MessagesWriter

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sf.dc.messages.MessagesWriter
All Implemented Interfaces:
java.lang.Runnable

public final class MessagesWriter
extends java.lang.Thread

Provides input for the logfile and the LogForm. The messages are read from the Messages class which is basically a queue of messages.

Since:
1.3
Version:
0.5
Author:
Robert Jan van der Waals

Field Summary
static boolean _useLogFile
           
static boolean _windowShow
           
static boolean _windowToFront
           
static LogForm logForm
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
MessagesWriter()
          Initializes the Message writer
 
Method Summary
 void run()
          Keeps on checking the Messages class for newly arrived messages.
 void write(java.lang.String message)
          Writes a message to the end of the log file and to the logform
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logForm

public static LogForm logForm

_windowToFront

public static boolean _windowToFront

_windowShow

public static boolean _windowShow

_useLogFile

public static boolean _useLogFile
Constructor Detail

MessagesWriter

public MessagesWriter()
Initializes the Message writer

Method Detail

run

public void run()
Keeps on checking the Messages class for newly arrived messages. The parameters _windowToFront and _windowShow determine the state of the LogForm


write

public void write(java.lang.String message)
Writes a message to the end of the log file and to the logform

Parameters:
message - message String