|
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.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<MTJRuntime>
org.eclipse.mtj.core.project.runtime.MTJRuntimeList
public class MTJRuntimeList
This class is used to maintains configurations for Midlet project. Each Midlet project have one instance of this class. We retrieve the instance by IMidletSuiteProject#getConfigurations().
MTJRuntime,
Serialized Form| Field Summary | |
|---|---|
static String |
ELEM_CONFIGURATION
The configuration element name the meta data xml file. |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
MTJRuntimeList()
The constructor used for create Configuration for a Midlet project that have not yet configurations. |
|
MTJRuntimeList(Element configsElement)
Construct Configuration from meta data XML file. |
|
| Method Summary | |
|---|---|
boolean |
add(MTJRuntime config)
|
boolean |
addAll(Collection<? extends MTJRuntime> configs)
|
void |
addMTJRuntimeListChangeListener(IMTJRuntimeListChangeListener listener)
|
MTJRuntime |
getActiveMTJRuntime()
Get the active configuration. |
boolean |
remove(Object o)
|
boolean |
removeAll(Collection<?> configs)
|
void |
removeMTJRuntimeListChangeListener(IMTJRuntimeListChangeListener listener)
Note:Since instance of Configuration have a long life cycle (as long as the Midlet project), so we should remove listener manually when it no longer used. |
void |
switchActiveMTJRuntime(MTJRuntime configuration)
Switch the current active configuration. |
| Methods inherited from class java.util.ArrayList |
|---|
add, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, retainAll, subList |
| Field Detail |
|---|
public static final String ELEM_CONFIGURATION
| Constructor Detail |
|---|
public MTJRuntimeList()
public MTJRuntimeList(Element configsElement)
throws PersistenceException
configsElement - - The <configurations> xml element.
PersistenceException| Method Detail |
|---|
public boolean add(MTJRuntime config)
add in interface Collection<MTJRuntime>add in interface List<MTJRuntime>add in class ArrayList<MTJRuntime>public boolean addAll(Collection<? extends MTJRuntime> configs)
addAll in interface Collection<MTJRuntime>addAll in interface List<MTJRuntime>addAll in class ArrayList<MTJRuntime>public void addMTJRuntimeListChangeListener(IMTJRuntimeListChangeListener listener)
public MTJRuntime getActiveMTJRuntime()
public boolean remove(Object o)
remove in interface Collection<MTJRuntime>remove in interface List<MTJRuntime>remove in class ArrayList<MTJRuntime>public boolean removeAll(Collection<?> configs)
removeAll in interface Collection<MTJRuntime>removeAll in interface List<MTJRuntime>removeAll in class AbstractCollection<MTJRuntime>public void removeMTJRuntimeListChangeListener(IMTJRuntimeListChangeListener listener)
listener - public void switchActiveMTJRuntime(MTJRuntime configuration)
configuration - - configuration to be set as active one.
|
Mobile Tools for Java Release 1.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||