|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.lbs.maps.model.MappableEventManager
public class MappableEventManager
Manages the events and listeners for DynamicMappable and Mappable objects.
Interested parties can register themselves for notification of change
events through this class. Also, objects can trigger event
notifications through this class.
| Constructor Summary | ||
|---|---|---|
MappableEventManager()
Constructs a new MappableEventManager instance. |
||
| Method Summary | ||
|---|---|---|
void |
addListener(MappableEventListener listener)
Adds a listener to the manager. |
|
void |
removeAllListeners()
Removes all listeners from the event manager. |
|
void |
removeListener(MappableEventListener listener)
De-registers the specified listener from receiving updates on the mappable item. |
|
void |
triggerEvent(MappableChangeEvent event)
Triggers an event to notify all registered instances of MappableEventListener. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MappableEventManager()
MappableEventManager instance.
| Method Detail |
|---|
public void addListener(MappableEventListener listener)
DynamicMappable changes.
listener - Listener to be notified.public void removeListener(MappableEventListener listener)
listener - The listener to remove. If the listener does not exist nothing
occurs.public void removeAllListeners()
public void triggerEvent(MappableChangeEvent event)
MappableEventListener.
event - The event to send to all registered instances of MappableEventListener.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal