Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.project.runtime.event
Class MTJRuntimeDeviceChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.mtj.core.project.runtime.event.MTJRuntimeDeviceChangeEvent
All Implemented Interfaces:
Serializable

public class MTJRuntimeDeviceChangeEvent
extends EventObject

MTJRuntimeDeviceChangeEvent is used to notify that the device of the configuration changed.

Since:
1.0
See Also:
Serialized Form
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MTJRuntimeDeviceChangeEvent(MTJRuntime source, IDevice oldDevice, IDevice newDevice)
          Constructor.
 
Method Summary
 IDevice getNewDevice()
           
 IDevice getOldDevice()
           
 void setNewDevice(IDevice newDevice)
           
 void setOldDevice(IDevice oldDevice)
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MTJRuntimeDeviceChangeEvent

public MTJRuntimeDeviceChangeEvent(MTJRuntime source,
                                   IDevice oldDevice,
                                   IDevice newDevice)
Constructor.

Parameters:
source - - the configuration has been changed.
oldDevice - - the device before change.
newDevice - - the device after change.
Method Detail

getNewDevice

public IDevice getNewDevice()
Returns:

getOldDevice

public IDevice getOldDevice()
Returns:

setNewDevice

public void setNewDevice(IDevice newDevice)
Parameters:
newDevice -

setOldDevice

public void setOldDevice(IDevice oldDevice)
Parameters:
oldDevice -

Mobile Tools for Java
Release 1.0