FileDocCategorySizeDatePackage
MIDletInfo.javaAPI DocJ2ME MIDP 2.01868Thu Nov 07 12:02:22 GMT 2002com.sun.midp.midlet

MIDletInfo

public class MIDletInfo extends Object
Simple attribute storage for MIDlets in the descriptor/manifest.

Fields Summary
public String
name
The name of the MIDlet.
public String
icon
The icon of the MIDlet.
public String
classname
The main class for the MIDlet.
Constructors Summary
public MIDletInfo(String attr)
Parses out the name, icon and classname.

param
attr contains the name, icon and classname line to be parsed

        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.

param
name the name of the MIDlet from descriptor file or manifest
param
icon the icon to display when the user selects the MIDlet from a list
param
classname the main class for this MIDlet

        this.name = name;
        this.icon = icon;
        this.classname = classname;
    
Methods Summary