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

AutoInternalSuiteDescriptorImpl

public final class AutoInternalSuiteDescriptorImpl extends AutoSuiteDescriptorImpl
AutoSuiteDescriptor implementation for internal suite

Fields Summary
private String
midletClassName
Name of the suite's MIDlet class
static final int
INTERNAL_SUITE_ID
Suite ID for all internal suites
Constructors Summary
AutoInternalSuiteDescriptorImpl(String midletClassName, MIDletSuiteImpl midletSuite)
Constructor

param
midletClassName name of the suite's MIDlet class
param
midletSuite internal MIDlet suite representation



                        
     
              
        super(midletSuite);

        this.midletClassName = midletClassName;

        if (suiteName == null) {
            suiteName = midletClassName;
        }

        // no support for internal suites with more than one MIDlet yet
        if (totalMIDlets > 1) {
            totalMIDlets = 1;
        }
    
Methods Summary
intgetSuiteID()
Gets suite ID

return
suite ID as String

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

return
true, if this suite is external

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

        suiteMIDlets = new Vector(totalMIDlets);

        AutoMIDletDescriptorImpl midlet = null;
        midlet = new AutoMIDletDescriptorImpl(this, suiteName,
                midletClassName);
        suiteMIDlets.addElement(midlet);