public interface EventListener
extends java.util.EventListener
EventListener
interface MUST be implemented by an
application and registered with the EventManager
to receive
events.
The application MUST NOT make any assumptions about synchronization of
calls to the EventListener
. The listener may be called at
any time. The application is responsible for handling concurrency.
From the call to handleEvent
until it returns the event
system will not change the state of the Event
instance.
After handleEvent
returns the state of the
Event
instance is unpredictable.
EventManager
Modifier and Type | Method and Description |
---|---|
void |
handleEvent(Event value)
Called with the
Event for the event to which this
listener has been registered. |
void handleEvent(Event value)
Event
for the event to which this
listener has been registered. This method will be called when the value
has changed.value
- An Event
object containing the value that
triggered the event.Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.