public class Event extends EventObject
Modifier and Type | Class and Description |
---|---|
static class |
Event.Level |
source
Constructor and Description |
---|
Event(Object source)
Constructs a prototypical Event.
|
Modifier and Type | Method and Description |
---|---|
Event.Level |
getLevel() |
String |
getMessage() |
Event |
setLevel(Event.Level level) |
Event |
setMessage(String message) |
getSource, toString
public Event(Object source)
source
- The object on which the Event initially occurred.IllegalArgumentException
- if source is null.public String getMessage()
public Event.Level getLevel()
public Event setLevel(Event.Level level)
Copyright © 2019. All rights reserved.