de.unihalle.informatik.Alida.operator.events
Class ALDEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.unihalle.informatik.Alida.operator.events.ALDEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ALDConfigurationEvent, ALDControlEvent, ALDOpParameterChangeEvent, ALDSwingValueChangeEvent, ALDWorkflowClassEvent, ALDWorkflowEvent

public class ALDEvent
extends java.util.EventObject

Super class for all events used in `Alida`.

Author:
moeller
See Also:
Serialized Form

Field Summary
protected  java.lang.String eventMessage
          Message string, freely configurable.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ALDEvent(java.lang.Object s)
          Default constructor for events.
ALDEvent(java.lang.Object s, java.lang.String msg)
          Default constructor for events with messages.
 
Method Summary
 java.lang.String getEventMessage()
          Returns individual message string.
 java.lang.String getEventMessage(int maxLength)
          Returns individual message string formatted to a maximal line length.
 
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
 

Field Detail

eventMessage

protected java.lang.String eventMessage
Message string, freely configurable.

Constructor Detail

ALDEvent

public ALDEvent(java.lang.Object s)
Default constructor for events.

Parameters:
s - Source object of the event.

ALDEvent

public ALDEvent(java.lang.Object s,
                java.lang.String msg)
Default constructor for events with messages.

Parameters:
s - Source object of the event.
msg - Event message.
Method Detail

getEventMessage

public java.lang.String getEventMessage()
Returns individual message string.


getEventMessage

public java.lang.String getEventMessage(int maxLength)
Returns individual message string formatted to a maximal line length.

Note that the last line might be longer than the given length if it contains no spaces, i.e. cannot be wrapped further.

Parameters:
maxLength - Maximal length of a line.
Returns:
Formatted message string.