public class Event extends EventObject
The base class for all events generated by this library.
The events produced by objects in this library are arranged in an inheritance
hierarchy. This base class defines some basic properties common to all
configuration events. Especially, an event has an
describes its semantics. The event type can also be used for filtering for
events or for defining event listeners on a fine-grained basis.
|Modifier and Type||Field and Description|
The root event type for all configuration-related events.
|Constructor and Description|
Creates a new instance of
|Modifier and Type||Method and Description|
Helper method for appending a representation for a property to the overall string representation for this object.
Returns the type of this event.
Returns a string representation for this object.
Eventand sets basic properties.
source- the object on which the Event initially occurred (must not be null)
evType- the type of this event (must not be null)
IllegalArgumentException- if a required parameter is null
public EventType<? extends Event> getEventType()
protected void appendPropertyRepresentation(StringBuilder buf, String property, Object value)
toString()for generating string fragments for the properties of this class. It can also be used by derived classes which extend the string representation of this base class.
buf- the target buffer
property- the name of the property
value- the property value
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.