| java.lang.Object com.sun.jump.common.JUMPApplication
All known Subclasses: com.sun.midp.jump.MIDletApplication, com.sun.jumpimpl.module.installer.XLETApplication, com.sun.jumpimpl.module.installer.MAINApplication,
JUMPApplication | public class JUMPApplication implements java.io.Serializable,JUMPContent(Code) | | A representation of executable application content in the jump environment.
Because we can have different app types (e.g., XLET v. MIDLET),
use this class to hold relevant information needed to start
an application properly.
|
ID_SCREEN_BOUNDS | final public static String ID_SCREEN_BOUNDS(Code) | | A hint to the WindowingModule regarding the area of the screen
this JUMPApplication requires.
The value should be in the syntax of "x,y-wxh", for example "0,50-640x430".
|
JUMPApplication | public JUMPApplication(String title, URL iconPath, JUMPAppModel type, int id)(Code) | | Create an instance of an application.
Parameters: title - The application's title, can be null Parameters: iconPath - The location of the application's icon in, can be null Parameters: type - The application's type Parameters: id - The installation id of the application |
addProperty | public void addProperty(String key, String value)(Code) | | Add a key/value pair to the application's list
of properties.
Parameters: key - - A key value. Parameters: value - - An object be associated with the key. throws: NullPointerException - - If either key or value isnull . |
equals | public boolean equals(Object obj)(Code) | | Returns true if two JUMPApplications' APPMODEL_KEY and
ID_KEY properties hold the same value.
|
fromByteArray | public static JUMPApplication fromByteArray(byte[] propBytes)(Code) | | Create a JUMPApplication from its binary representation
|
getAppType | public JUMPAppModel getAppType()(Code) | | Determine the type of this application.
One of JUMPApplication's defined application types,as defined in JUMPAppModel. |
getIconPath | public URL getIconPath()(Code) | | Get the path to the application's icon.
A URL defining the path to the icon inthe downloaded content. |
getId | public int getId()(Code) | | Obtain the installed application id for this object.
The installed application id. |
getProperty | public String getProperty(String key)(Code) | | Get a key/value pair to the application's list
of properties.
Parameters: key - - A key to search the properties for. throws: NullPointerException - - If key isnull . |
getPropertyNames | public Enumeration getPropertyNames()(Code) | | Returns the names of this JUMPApplication's property entries as an
Enumeration of String objects, or an empty Enumeration if
the JUMPApplication have no properties associated.
|
getTitle | public String getTitle()(Code) | | Get the application's title.
The application's title. |
hashCode | public int hashCode()(Code) | | Returns the value of ID_KEY property.
|
setIconPath | public void setIconPath(URL path)(Code) | | Set the path to the application's icon.
|
setId | public void setId(String id)(Code) | | Set the installed application id for this object.
Parameters: id - The installed application id. |
setTitle | public void setTitle(String title)(Code) | | Set the application's title.
|
toByteArray | public byte[] toByteArray()(Code) | | Create a binary representation of this JUMPApplication object
|
|
|