Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


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 MTJRuntime changed.

All Events are constructed with a reference to the object, the "source", that is logically deemed to be the object upon which the Event in question initially occurred upon.

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the MTJ team.

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)
          Creates a new instance of MTJRuntimeDeviceChangeEvent.
 
Method Summary
  IDevice getNewDevice ()
          Return the new device instance.
  IDevice getOldDevice ()
          Return the previous device instance.
 void setNewDevice ( IDevice newDevice)
          Set the new device instance.
 void setOldDevice ( IDevice oldDevice)
          Set the previous device instance.
 
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)
Creates a new instance of MTJRuntimeDeviceChangeEvent.

Parameters:
source - the MTJRuntime that was changed.
oldDevice - the previous device instance.
newDevice - the new device instance.
Method Detail

getNewDevice

public 
IDevice getNewDevice()
Return the new device instance.

Returns:
the new device instance.

getOldDevice

public 
IDevice getOldDevice()
Return the previous device instance.

Returns:
the previous device instance.

setNewDevice

public void setNewDevice(
IDevice newDevice)
Set the new device instance.

Parameters:
newDevice - the new device instance.

setOldDevice

public void setOldDevice(
IDevice oldDevice)
Set the previous device instance.

Parameters:
oldDevice - the previous device instance.

Mobile Tools for Java
Release 1.0


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire