|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.mtj.core.project.runtime.event.MTJRuntimeDeviceChangeEvent
public class MTJRuntimeDeviceChangeEvent
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.
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 |
---|
public MTJRuntimeDeviceChangeEvent(MTJRuntime source, IDevice oldDevice, IDevice newDevice)
source
- the MTJRuntime that was changed.oldDevice
- the previous device instance.newDevice
- the new device instance.Method Detail |
---|
public IDevice getNewDevice()
public IDevice getOldDevice()
public void setNewDevice(IDevice newDevice)
newDevice
- the new device instance.public void setOldDevice(IDevice oldDevice)
oldDevice
- the previous device instance.
|
Mobile Tools for Java Release 1.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |