Mobile Tools for Java
Release 1.0

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

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

public class AddMTJRuntimeEvent
extends EventObject

AddMTJRuntimeEvent is used to notify that a MTJRuntime is added to MTJRuntimeList.

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
AddMTJRuntimeEvent(MTJRuntimeList source, MTJRuntime addedRuntime)
          Constructs a AddMTJRuntimeEvent object.
 
Method Summary
 MTJRuntime getAddedMTJRuntime()
          Get the MTJRuntime that was added to the MTJ Project.
 void setMTJRuntime(MTJRuntime addedRuntime)
          Set the MTJRuntime to be added.
 
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

AddMTJRuntimeEvent

public AddMTJRuntimeEvent(MTJRuntimeList source,
                          MTJRuntime addedRuntime)
Constructs a AddMTJRuntimeEvent object.

Parameters:
source - MTJRuntimeList instance of the MTJ MIDlet project.
addedRuntime - the added MTJRuntime.
Method Detail

getAddedMTJRuntime

public MTJRuntime getAddedMTJRuntime()
Get the MTJRuntime that was added to the MTJ Project.

Returns:
the added MTJRuntime.

setMTJRuntime

public void setMTJRuntime(MTJRuntime addedRuntime)
Set the MTJRuntime to be added.

Parameters:
addedRuntime - the MTJRuntime to be added.

Mobile Tools for Java
Release 1.0