org.jtool.jxplatform.event
Class JxLogEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.jtool.jxplatform.event.JxEvent
          extended byorg.jtool.jxplatform.event.JxLogEvent
All Implemented Interfaces:
java.io.Serializable

public class JxLogEvent
extends JxEvent

An event for logging.

Author:
Katsuhisa Maruyama
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jtool.jxplatform.event.JxEvent
message
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JxLogEvent(java.lang.Object source, java.lang.String msg)
          Cretaes an event object containing log information.
 
Method Summary
 java.lang.String getTimestamp()
          Returns the time when the event occurred.
 
Methods inherited from class org.jtool.jxplatform.event.JxEvent
getMessage
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JxLogEvent

public JxLogEvent(java.lang.Object source,
                  java.lang.String msg)
Cretaes an event object containing log information.

Parameters:
source - An object on which the event initially occurred.
msg - A message about this event.
Method Detail

getTimestamp

public java.lang.String getTimestamp()
Returns the time when the event occurred.

Returns:
The string indicating the time.