Methods Summary |
---|
public AutoMIDletDescriptor | getInitialMIDlet()Gets MIDlet which should be started by default for this
suite, if any.
guaranteeSuiteValid("getDefaultMIDlet");
return (AutoMIDletDescriptor)suiteMIDlets.elementAt(0);
|
static final AutoSuiteDescriptor | getInstanceByClassName(java.lang.String className)Factory method: constructs suite descriptor from MIDlet's class name
AutoSuiteDescriptor suite = null;
MIDletSuiteImpl suiteImpl = null;
try {
// create internal suite representation
suiteImpl = (MIDletSuiteImpl)InternalMIDletSuiteImpl.create(
className, AutoInternalSuiteDescriptorImpl.INTERNAL_SUITE_ID);
suite = new AutoInternalSuiteDescriptorImpl(className, suiteImpl);
} finally {
if (suiteImpl != null) {
suiteImpl.close();
}
}
return suite;
|
static final AutoSuiteDescriptor | getInstanceBySuiteID(int suiteID, MIDletSuiteStorage storage)Factory method: constructs suite descriptor from suite ID
AutoSuiteDescriptor suite = null;
MIDletSuiteImpl suiteImpl = null;
try {
// get internal suite representation from storage
suiteImpl = storage.getMIDletSuite(suiteID, false);
if (suiteImpl == null) {
throw new IllegalArgumentException("Invalid suite ID");
}
suite = new AutoExternalSuiteDescriptorImpl(suiteID, suiteImpl);
} finally {
if (suiteImpl != null) {
suiteImpl.close();
}
}
return suite;
|
abstract int | getSuiteID()Gets suite ID
|
public java.util.Vector | getSuiteMIDlets()Gets suite's MIDlets.
guaranteeSuiteValid("getSuiteMIDlets");
// copy suite's MIDlets vector into another
Vector midlets = new Vector(totalMIDlets);
for (int i = 0; i < totalMIDlets; i++) {
Object o = suiteMIDlets.elementAt(i);
midlets.addElement(o);
}
return midlets;
|
public java.lang.String | getSuiteName()Gets name of the suite.
guaranteeSuiteValid("getSuiteName");
return suiteName;
|
final void | guaranteeSuiteValid(java.lang.String s)Guarantees suite validness: if suite is not valid,
exception is thrown
if (!isValid) {
throw new IllegalStateException(s);
}
|
final void | invalidate()Invalidates suite
midletSuite = null;
suiteMIDlets = null;
totalMIDlets = 0;
isValid = false;
|
abstract boolean | isExternalSuite()Tests if this suite is external
|
public AutoMIDlet | start(java.lang.String[] args)Starts this suite's initial MIDlet.
AutoMIDletDescriptor midlet = getInitialMIDlet();
return midlet.start(args);
|
abstract void | updateMIDletsList()Updates list of suite's MIDlets
|