public class ALDEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
protected String |
eventMessage
Message string, freely configurable.
|
source| Constructor and Description |
|---|
ALDEvent(Object s)
Default constructor for events.
|
ALDEvent(Object s,
String msg)
Default constructor for events with messages.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEventMessage()
Returns individual message string.
|
String |
getEventMessage(int maxLength)
Returns individual message string formatted to a maximal line length.
|
getSource, toStringprotected String eventMessage
public ALDEvent(Object s)
s - Source object of the event.public String getEventMessage()
public String getEventMessage(int maxLength)
Note that the last line might be longer than the given length if it contains no spaces, i.e. cannot be wrapped further.
maxLength - Maximal length of a line.Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.