| |
|
| java.lang.Object javax.microedition.midlet.MIDlet com.sun.midp.installer.GraphicalInstaller
GraphicalInstaller | public class GraphicalInstaller extends MIDlet implements CommandListener(Code) | | The Graphical MIDlet suite installer.
The graphical installer is implements the installer requirements of the
MIDP OTA specification.
If the Content Handler API (CHAPI) is present the GraphicalInstaller will
dequeue a single Invocation and install from the URL contained
in the request. If there is no Invocation present then the arguments below
will be used.
The MIDlet uses certain application properties as arguments:
- arg-0: "U" for update "I" or anything else for install
- arg-1: Suite ID for updating, URL for installing
- arg-2: For installing a name to put in the title bar when installing
See Also: CHManagerImpl See Also: CHManager |
Constructor Summary | |
public | GraphicalInstaller() Create and initialize a new graphical installer MIDlet.
If a ContentHandler request to install a suite is found,
then that URL will be installed. |
ALERT_TIMEOUT | final public static int ALERT_TIMEOUT(Code) | | Standard timeout for alerts.
|
SELECTED_MIDLET_RECORD_ID | final public static int SELECTED_MIDLET_RECORD_ID(Code) | | record is of the last installed midlet
|
SETTINGS_STORE | final public static String SETTINGS_STORE(Code) | | settings database
|
URL_RECORD_ID | final public static int URL_RECORD_ID(Code) | | record id of selected midlet
|
chmanager | CHManager chmanager(Code) | | Content handler specific install functions.
|
GraphicalInstaller | public GraphicalInstaller()(Code) | | Create and initialize a new graphical installer MIDlet.
If a ContentHandler request to install a suite is found,
then that URL will be installed. In this case the command
arguments are ignored.
The Display is retrieved and the list of MIDlet will be retrieved or
update a currently installed suite.
|
commandAction | public void commandAction(Command c, Displayable s)(Code) | | Respond to a command issued on any Screen.
Parameters: c - command activated by the user Parameters: s - the Displayable the command was on. |
destroyApp | public void destroyApp(boolean unconditional)(Code) | | Destroy cleans up.
Parameters: unconditional - is ignored; this object alwaysdestroys itself when requested. |
exit | void exit(boolean success)(Code) | | Exit the GraphicalInstaller with the status supplied.
It will perform any remaining cleanup and call notifyDestroyed.
Parameters: success - true if the install was a success,false otherwise. |
getImageFromInternalStorage | public static Image getImageFromInternalStorage(String imageName)(Code) | | Gets an image from the internal storage.
IMPL_NOTE: this method should be moved somewhere.
Parameters: imageName - image file name without a path and extension Image loaded from storage, or null if not found |
initSettings | public static void initSettings()(Code) | | Initialize the settings database if it doesn't exist. This may create
two entries. The first will be for the download url, the second will
be for storing the storagename of the currently selected midlet
|
pauseApp | public void pauseApp()(Code) | | Pause; there are no resources that need to be released.
|
preventScreenFlash | void preventScreenFlash()(Code) | | Prevent screen flash on a fast systems.
|
saveSettings | public static Exception saveSettings(String url, int curMidlet)(Code) | | Save the settings the user entered.
Parameters: url - the url to save Parameters: curMidlet - suiteId of the currently selected midlet the Exception that may have been thrown, or null |
startApp | public void startApp()(Code) | | Start.
|
|
|
|