net.rim.device.api.lbs.maps.model
Class MappableEventManager

java.lang.Object
  extended by net.rim.device.api.lbs.maps.model.MappableEventManager

public class MappableEventManager
extends Object

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.

Since:
BlackBerry API 7.0.0

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

MappableEventManager

public MappableEventManager()
Constructs a new MappableEventManager instance.

Since:
BlackBerry API 7.0.0


Method Detail

addListener

public void addListener(MappableEventListener listener)
Adds a listener to the manager. The listener is notified when the DynamicMappable changes.

Parameters:
listener - Listener to be notified.
Since:
BlackBerry API 7.0.0

removeListener

public void removeListener(MappableEventListener listener)
De-registers the specified listener from receiving updates on the mappable item.

Parameters:
listener - The listener to remove. If the listener does not exist nothing occurs.
Since:
BlackBerry API 7.0.0

removeAllListeners

public void removeAllListeners()
Removes all listeners from the event manager.

Since:
BlackBerry API 7.0.0

triggerEvent

public void triggerEvent(MappableChangeEvent event)
Triggers an event to notify all registered instances of MappableEventListener.

Parameters:
event - The event to send to all registered instances of MappableEventListener.
Since:
BlackBerry API 7.0.0





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