| java.lang.Object javax.microedition.lcdui.Displayable javax.microedition.lcdui.Screen javax.microedition.lcdui.Form com.sun.midp.appmanager.AppManagerUI
AppManagerUI | class AppManagerUI extends Form implements ItemCommandListener,CommandListener(Code) | | The Graphical MIDlet selector Screen.
It displays a list (or grid to be exact) of currently installed
MIDlets/MIDlet suites (including the Installer MIDlet). Each MIDlet or
MIDlet suite is represented by an icon with a name under it.
An icon from a jad file for the MIDlet/MIDlet suite representation
is used if possible, otherwise a default icon is used.
There is a a set of commands per MIDlet/MIDlet suite. Note that
the set of commands can change depending on the corresponding MIDlet state.
For MIDlets/MIDlet suites that are not running the following commands are
available:
- Launch: Launch the MIDlet or the MIDlet Selector
if it is a suite.
- Remove: Remove the MIDlet/MIDlet suite teh user selected
(with confirmation).
- Update: Update the MIDlet/MIDlet suite the user selected.
- Info: Show the user general information
of the selected MIDlet/MIdlet suite.
- Settings: Let the user change the manager's settings.
For MIDlets/MIDlet suites that are running the following commands are
available:
- Bring to foreground: Bring the running MIDlet to foreground
- End: Terminate the running MIDlet
- Remove: Remove the MIDlet/MIDlet suite teh user selected
(with confirmation).
- Update: Update the MIDlet/MIDlet suite the user selected.
- Info: Show the user general information
of the selected MIDlet/MIdlet suite.
- Settings: Let the user change the manager's settings.
Exactly one MIDlet from a MIDlet suite could be run at the same time.
Each MIDlet/MIDlet suite representation corresponds to an instance of
MidletCustomItem which in turn maintains a reference to a MIDletSuiteInfo
object (that contains info about this MIDlet/MIDlet suite).
When a MIDlet is launched or a MIDlet form a MIDlet suite is launched
the proxy instance in the corresponding MidletCustomItem is set to
a running MIDletProxy value. It is set back to null when MIDlet exits.
Running midlets can be distinguished from non-running MIdlets/MIDlet suites
by the color of their name.
|
Inner Class :class MidletCustomItem extends CustomItem | |
Constructor Summary | |
| AppManagerUI(ApplicationManager manager, Display display, DisplayError displayError, boolean first, MIDletSuiteInfo ms) Creates and populates the Application Selector Screen.
Parameters: manager - - The application manager that invoked it Parameters: displayError - - The UI used to display error messages Parameters: display - - The display instance associated with the manager Parameters: first - - true if this is the first time AppSelector is beingshown Parameters: ms - - MidletSuiteInfo that should be selected. |
backCmd | Command backCmd(Code) | | Command object for "Back" command for back to the AppSelector.
|
display | Display display(Code) | | Display for the Manager MIDlet.
|
textScrollTimer | protected static Timer textScrollTimer(Code) | | A Timer which will handle firing repaints of the ScrollPainter
|
AppManagerUI | AppManagerUI(ApplicationManager manager, Display display, DisplayError displayError, boolean first, MIDletSuiteInfo ms)(Code) | | Creates and populates the Application Selector Screen.
Parameters: manager - - The application manager that invoked it Parameters: displayError - - The UI used to display error messages Parameters: display - - The display instance associated with the manager Parameters: first - - true if this is the first time AppSelector is beingshown Parameters: ms - - MidletSuiteInfo that should be selected. For the internalsuites midletToRun should be set, for the other suitessuiteId is enough to find the corresponding item. |
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. |
commandAction | public void commandAction(Command c, Item item)(Code) | | Respond to a command issued on an Item in AppSelector
Parameters: c - command activated by the user Parameters: item - the Item the command was on. |
getSelectedMIDletSuiteInfo | public RunningMIDletSuiteInfo getSelectedMIDletSuiteInfo()(Code) | | Called to determine MidletSuiteInfo of the last selected Item.
last selected MidletSuiteInfo |
notifyMidletExited | void notifyMidletExited(MIDletProxy midlet)(Code) | | Called when a running midlet exited.
Parameters: midlet - proxy of a newly added MIDlet |
notifyMidletStartError | void notifyMidletStartError(int suiteId, String className, int errorCode, String errorDetails)(Code) | | Called when a midlet could not be launched.
Parameters: suiteId - suite ID of the MIDlet Parameters: className - class name of the MIDlet Parameters: errorCode - error code Parameters: errorDetails - error code details |
notifyMidletStarted | void notifyMidletStarted(MIDletProxy midlet)(Code) | | Called when a new midlet was launched.
Parameters: midlet - proxy of a newly added MIDlet |
notifyMidletStateChanged | void notifyMidletStateChanged(MIDletProxy midlet)(Code) | | Called when state of a running midlet was changed.
Parameters: midlet - proxy of a newly added MIDlet |
showMidletSwitcher | public void showMidletSwitcher(boolean onlyFromLaunchedList)(Code) | | Called when midlet selector needed.
Parameters: onlyFromLaunchedList - true if midlet shouldbe selected from the list of already launched midlets,if false then possibility to launch midlet is needed. |
|
|