Methods Summary |
---|
AutoMIDletInfo | addToList(int suiteID, java.lang.String midletClassName)Creates AutoMIDletInfo and adds it to the list.
synchronized (this) {
AutoMIDletInfo info =
new AutoMIDletInfo(suiteID, midletClassName);
midletsInfo.addElement(info);
return info;
}
|
AutoMIDletImpl | findMIDlet(MIDletProxy midletProxy)Finds AutoMIDlet corresponding to specified MIDletProxy.
AutoMIDletImpl midlet = null;
AutoMIDletInfo info = findMIDletInfo(midletProxy);
if (info != null) {
midlet = info.midlet;
}
return midlet;
|
AutoMIDletInfo | findMIDletInfo(int suiteID, java.lang.String midletClassName)Finds MIDlet info by MIDlet's suite ID and class name.
synchronized (this) {
for (int i = 0; i < midletsInfo.size(); ++i) {
AutoMIDletInfo info =
(AutoMIDletInfo)midletsInfo.elementAt(i);
if (info.suiteID == suiteID &&
info.midletClassName.equals(midletClassName)) {
return info;
}
}
}
return null;
|
AutoMIDletInfo | findMIDletInfo(AutoMIDletImpl midlet)Finds MIDlet info by AutoMIDletImpl.
synchronized (this) {
for (int i = 0; i < midletsInfo.size(); ++i) {
AutoMIDletInfo info =
(AutoMIDletInfo)midletsInfo.elementAt(i);
if (info.midlet == midlet) {
return info;
}
}
}
return null;
|
AutoMIDletInfo | findMIDletInfo(MIDletProxy midletProxy)Finds MIDlet info by MIDletProxy.
AutoMIDletInfo info = findMIDletInfo(
midletProxy.getSuiteId(), midletProxy.getClassName());
return info;
|
MIDletProxy | findMIDletProxy(AutoMIDletImpl midlet)Finds MIDletProxy corresponding to specified AutoMIDlet
MIDletProxy midletProxy = null;
AutoMIDletInfo info = findMIDletInfo(midlet);
if (info != null) {
midletProxy = info.midletProxy;
}
return midletProxy;
|
static synchronized com.sun.midp.automation.AutoMIDletInfoList | getMIDletInfoList()Gets AutoMIDletInfoList instance.
if (midletInfoList == null) {
midletInfoList = new AutoMIDletInfoList();
}
return midletInfoList;
|
void | removeFromList(AutoMIDletInfo info)Removes specified AutoMIDletInfo instance from list.
midletsInfo.removeElement(info);
|