MIDletSuiteInfopublic class MIDletSuiteInfo extends Object Simple attribute storage for MIDlet suites |
Fields Summary |
---|
public int | suiteIdID of the MIDlet suite. | public int | storageIdID of the storage where the MIDlet is installed. | public String | displayNameDisplay name of the MIDlet suite. | public String | midletToRunName of the MIDlet to run. | public int | numberOfMidletsIs this single MIDlet MIDlet suite. | public boolean | enabledIs this suite enabled. | public boolean | trustedIs this suite trusted. | public boolean | preinstalledIs this suite preinstalled. | public String | iconNameIcon's name for this suite. |
Constructors Summary |
---|
public MIDletSuiteInfo(int theID)Constructs a MIDletSuiteInfo object for a suite.
suiteId = theID;
| public MIDletSuiteInfo(int theID, String theMidletToRun, String theDisplayName, boolean isEnabled)Constructs a MIDletSuiteInfo object for a suite.
suiteId = theID;
midletToRun = theMidletToRun;
displayName = theDisplayName;
enabled = isEnabled;
| public MIDletSuiteInfo(int theID, MIDletSuiteImpl theMidletSuite)Constructs a MIDletSuiteInfo object for a suite.
init(theID, theMidletSuite);
numberOfMidlets = theMidletSuite.getNumberOfMIDlets();
if (numberOfMidlets == 1) {
MIDletInfo midlet =
new MIDletInfo(theMidletSuite.getProperty("MIDlet-1"));
midletToRun = midlet.classname;
}
|
Methods Summary |
---|
public boolean | hasSingleMidlet()Checks if the midlet suite contains single or multiple midlets.
return (numberOfMidlets == 1);
| void | init(int theID, MIDletSuiteImpl theMidletSuite)Initializes MIDletSuiteInfo object.
displayName =
theMidletSuite.getProperty(MIDletSuiteImpl.SUITE_NAME_PROP);
if (displayName == null) {
displayName = String.valueOf(theID);
}
suiteId = theID;
enabled = theMidletSuite.isEnabled();
| public java.lang.String | toString()Returns a string representation of the MIDletSuiteInfo object.
For debug only.
StringBuffer b = new StringBuffer();
b.append("id = " + suiteId);
b.append(", midletToRun = " + midletToRun);
return b.toString();
|
|