FileDocCategorySizeDatePackage
MIDletStateMap.javaAPI DocJ2ME MIDP 2.01427Thu Nov 07 12:02:22 GMT 2002com.sun.midp.midlet

MIDletStateMap

public abstract class MIDletStateMap extends Object
This class works around the fact that public classes can not be added to a javax package by an implementaion.

Fields Summary
private static MIDletStateMap
mapImpl
Implementation of the MIDlet state map.
Constructors Summary
Methods Summary
public static MIDletStategetState(javax.microedition.midlet.MIDlet m)
Get the MIDletState for a given midlet.

param
m valid MIDlet
return
state of an object
exception
NullPointerException if m is null

	return mapImpl.getStateImpl(m);
    
protected abstract MIDletStategetStateImpl(javax.microedition.midlet.MIDlet m)
Gets the state for a given MIDlet.

param
m valid MIDlet
return
state for a MIDlet.
exception
NullPointerException if m is null

public static voidsetMapImpl(com.sun.midp.midlet.MIDletStateMap map)
Set the MIDlet state map implementation if one has not been set.

param
map Implementation of a MIDletMap
exception
NullPointerException if m is null

        if (mapImpl != null) {
            return;
        }

        mapImpl = map;