Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.model.configuration
Class SwitchActiveConfigEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.eclipse.mtj.core.model.configuration.SwitchActiveConfigEvent
All Implemented Interfaces:
Serializable

public class SwitchActiveConfigEvent
extends EventObject

SwitchActiveConfigEvent is used to notify that active Configuration for a Midlet project switched.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SwitchActiveConfigEvent(Configurations source, Configuration oldActiveConfig, Configuration newActiveConfig)
          Constructs a SwitchActiveConfigEvent object.
 
Method Summary
 Configuration getNewActiveConfig()
           
 Configuration getOldActiveConfig()
           
 void setNewActiveConfig(Configuration newActiveConfig)
           
 void setOldActiveConfig(Configuration oldActiveConfig)
           
 
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

SwitchActiveConfigEvent

public SwitchActiveConfigEvent(Configurations source,
                               Configuration oldActiveConfig,
                               Configuration newActiveConfig)
Constructs a SwitchActiveConfigEvent object.

Parameters:
source - - Configurations instance of the MTJ Midlet project.
oldActiveConfig - - the old active configuration.
newActiveConfig - - the new active configuration.
Method Detail

getNewActiveConfig

public Configuration getNewActiveConfig()

getOldActiveConfig

public Configuration getOldActiveConfig()

setNewActiveConfig

public void setNewActiveConfig(Configuration newActiveConfig)

setOldActiveConfig

public void setOldActiveConfig(Configuration oldActiveConfig)

Mobile Tools for Java
Release 1.0