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

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

public class MappableChangeEvent
extends Object

Captures the contents of an event (a "change event") that has occurred to a dynamic mappable object.

Since:
BlackBerry API 7.0.0

Constructor Summary
MappableChangeEvent()
          Constructs a MappableChangeEvent with the default states.
 
Method Summary
 Mappable getNewState()
          Retrieves the new Mappable state.
 Mappable getOldState()
          Retrieves the state of the Mappable object before it changes.
 void setNewState(Mappable newState)
          Sets the new Mappable state.
 void setOldState(Mappable oldState)
          Sets the old state of the Mappable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

MappableChangeEvent

public MappableChangeEvent()
Constructs a MappableChangeEvent with the default states.

Since:
BlackBerry API 7.0.0


Method Detail

getOldState

public Mappable getOldState()
Retrieves the state of the Mappable object before it changes.

Note: It's possible that this attribute might not be populated. Some event generators will only populate the new state.

Returns:
A representation of the state before it changed.
Since:
BlackBerry API 7.0.0

setOldState

public void setOldState(Mappable oldState)
Sets the old state of the Mappable. This should be the state of the mappable item before it changed.

Parameters:
oldState - The state of the object prior to changing.
Since:
BlackBerry API 7.0.0

getNewState

public Mappable getNewState()
Retrieves the new Mappable state.

Returns:
A representation of the state after the object changed.
Since:
BlackBerry API 7.0.0

setNewState

public void setNewState(Mappable newState)
Sets the new Mappable state. This should be the state after the Mappable has changed.

Parameters:
newState - The object after it changed.
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