FileDocCategorySizeDatePackage
AutoExternalSuiteDescriptorImpl.javaAPI DocphoneME MR2 API (J2ME)2456Wed May 02 18:00:08 BST 2007com.sun.midp.automation

AutoExternalSuiteDescriptorImpl

public class AutoExternalSuiteDescriptorImpl extends AutoSuiteDescriptorImpl
AutoSuiteDescriptor implementation for external suite

Fields Summary
private int
suiteID
suite ID
Constructors Summary
AutoExternalSuiteDescriptorImpl(int suiteID, MIDletSuiteImpl midletSuite)
Constructor

param
suiteID suite ID
param
midletSuite internal MIDlet suite representation

        super(midletSuite);

        this.suiteID = suiteID;
        if (suiteName == null) {
            suiteName = String.valueOf(suiteID);
        }
    
Methods Summary
intgetSuiteID()
Gets suite ID

return
suite ID as String

        return suiteID;
    
booleanisExternalSuite()
Tests if this suite is external

return
true, if this suite is external

        return true;
    
voidupdateMIDletsList()
Updates list of suite's MIDlets

        suiteMIDlets = new Vector(totalMIDlets);

        for (int i = 1; i <= totalMIDlets; i++) {
            AutoMIDletDescriptorImpl midlet = null;
            String midletAttr = midletSuite.getProperty("MIDlet-" + i);
            midlet = new AutoMIDletDescriptorImpl(this, midletAttr);

            suiteMIDlets.addElement(midlet);
        }