FileDocCategorySizeDatePackage
MIDletApplication.javaAPI DocphoneME MR2 API (J2ME)2922Wed May 02 18:00:04 BST 2007com.sun.midp.jump

MIDletApplication

public class MIDletApplication extends com.sun.jump.common.JUMPApplication
Representation of an MIDlet application.

Fields Summary
public static final String
SUITE_KEY
public static final String
CLASSNAME_KEY
Constructors Summary
public MIDletApplication(String title, URL iconPath, int suiteID, String classname, int midletID)
Create an instance of an application.

param
title The application's title, can be null
param
iconPath The location of the application's icon in, can be null
param
suiteID the MIDlet suite id which this midlet belongs to.
param
classname the MIDlet class name.

        
        super(title, iconPath, JUMPAppModel.MIDLET, 
	      computeApplicationID(suiteID, midletID));

        addProperty(SUITE_KEY, Integer.toString(suiteID)); 	 
        addProperty(CLASSNAME_KEY, classname); 	 
    
Methods Summary
private static intcomputeApplicationID(int suiteId, int midletNumber)

        return (suiteId << 8 | (midletNumber & 0x00ff));
    
public static intconvertToSuiteID(int applicationID)

        return (applicationID >> 8);
    
public static java.lang.StringgetMIDletClassName(com.sun.jump.common.JUMPApplication app)

        return app.getProperty(CLASSNAME_KEY);
    
public java.lang.StringgetMIDletClassName()

        return getProperty(CLASSNAME_KEY);
    
public static intgetMIDletSuiteID(com.sun.jump.common.JUMPApplication app)


         
        return Integer.parseInt(app.getProperty(SUITE_KEY));
    
public intgetMIDletSuiteID()

        return Integer.parseInt(getProperty(SUITE_KEY));
    
public java.lang.StringtoString()

        return ( super.toString() + " MIDletSuiteID(" + getMIDletSuiteID() + ")" );