Mobile Tools for Java
Release 1.0

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

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

public class SwitchActiveMTJRuntimeEvent
extends EventObject

SwitchActiveMTJRuntimeEvent is used to notify that active MTJRuntime for a MTJProject switched.

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
SwitchActiveMTJRuntimeEvent(MTJRuntimeList source, MTJRuntime oldActiveConfig, MTJRuntime newActiveConfig)
          Creates a new instance of SwitchActiveMTJRuntimeEvent.
 
Method Summary
 MTJRuntime getNewActiveMTJRuntime()
          Return the newly activated runtime.
 MTJRuntime getOldActiveMTJRuntime()
          Return the previous active runtime.
 void setNewActiveMTJRuntime(MTJRuntime newActiveRuntime)
          Set the newly activated runtime.
 void setOldActiveMTJRuntime(MTJRuntime oldActiveRuntime)
          Set the previous active runtime.
 
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

SwitchActiveMTJRuntimeEvent

public SwitchActiveMTJRuntimeEvent(MTJRuntimeList source,
                                   MTJRuntime oldActiveConfig,
                                   MTJRuntime newActiveConfig)
Creates a new instance of SwitchActiveMTJRuntimeEvent.

Parameters:
source - the MTJRuntimeList in which the active MTJRuntime has been switched.
oldActiveConfig - the previous active runtime.
newActiveConfig - the newly activated runtime.
Method Detail

getNewActiveMTJRuntime

public MTJRuntime getNewActiveMTJRuntime()
Return the newly activated runtime.

Returns:
the newly activated runtime.

getOldActiveMTJRuntime

public MTJRuntime getOldActiveMTJRuntime()
Return the previous active runtime.

Returns:
the previous active runtime.

setNewActiveMTJRuntime

public void setNewActiveMTJRuntime(MTJRuntime newActiveRuntime)
Set the newly activated runtime.

Parameters:
newActiveRuntime - the newly activated runtime.

setOldActiveMTJRuntime

public void setOldActiveMTJRuntime(MTJRuntime oldActiveRuntime)
Set the previous active runtime.

Parameters:
oldActiveRuntime - the previous active runtime.

Mobile Tools for Java
Release 1.0