MIDletInfopublic class MIDletInfo extends Object Simple attribute storage for MIDlets in the descriptor/manifest. |
Fields Summary |
---|
public String | nameThe name of the MIDlet. | public String | iconThe icon of the MIDlet. | public String | classnameThe main class for the MIDlet. |
Constructors Summary |
---|
public MIDletInfo(String attr)Parses out the name, icon and classname.
Vector args;
if (attr == null) {
return;
}
args = Util.getCommaSeparatedValues(attr);
if (args.size() > 0) {
name = (String)args.elementAt(0);
if (args.size() > 1) {
icon = (String)args.elementAt(1);
if (icon.length() == 0) {
icon = null;
}
if (args.size() > 2) {
classname = (String)args.elementAt(2);
if (classname.length() == 0) {
classname = null;
}
}
}
}
| public MIDletInfo(String name, String icon, String classname)Container class to hold information about the current MIDlet.
this.name = name;
this.icon = icon;
this.classname = classname;
|
|