| java.lang.Object com.sun.midp.main.DisplayController com.sun.midp.main.MVMDisplayController
All known Subclasses: com.sun.midp.main.NativeDisplayControllerPeer,
MVMDisplayController | public class MVMDisplayController extends DisplayController (Code) | | This class controls which MIDlet's display is in the foreground.
Running only in the AMS Isolate (0) the controller consulted by the MIDlet
proxy list for any foreground when various state changes occur in a MIDlet.
The display controller defers the display decision to the user by choosing
the foreground selector to be the next foreground.
From the user perspective when the last MIDlet the user launched sets its
current displayable for the first time, that MIDlet should automatically
get the foreground (see the midletCreated and foregroundRequest methods).
A MIDlet that is paused or destroyed is treated as if it has requested the
background as described above.
|
Method Summary | |
MIDletProxy | backgroundRequest(MIDletProxy midlet) Handles MIDlet background requests. | MIDletProxy | foregroundRequest(MIDletProxy midlet) Handles MIDlet foreground requests.
If proxy being updated belongs last MIDlet created in the proxy list,
then put the MIDlet in the foreground.
Otherwise, the request will not be granted. | MIDletProxy | selectForeground(boolean onlyFromLaunchedList) Called to process a select foreground event.
Returns the foreground selector MIDlet in the foreground.
Parameters: onlyFromLaunchedList - true if midlet shouldbe selected from the list of already launched midlets,if false then possibility to launch midlet is needed. | MIDletProxy | startPreempting(MIDletProxy preempting) Preempt an Isolate's displays. |
MVMDisplayController | public MVMDisplayController(MIDletProxyList theMIDletProxyList, MIDletProxy theForegroundSelector)(Code) | | Construct a DisplayController with a reference to the ProxyList.
Parameters: theMIDletProxyList - reference to the MIDlet proxy list Parameters: theForegroundSelector - the proxy of foreground selector |
backgroundRequest | MIDletProxy backgroundRequest(MIDletProxy midlet)(Code) | | Handles MIDlet background requests.
If the MIDlet is the foreground MIDlet, then bring the foreground
selector to the foreground.
Parameters: midlet - The proxy of the MIDlet that was updated Proxy of the next foreground MIDlet, may be the foregroundMIDlet if the foreground should not change |
foregroundRequest | MIDletProxy foregroundRequest(MIDletProxy midlet)(Code) | | Handles MIDlet foreground requests.
If proxy being updated belongs last MIDlet created in the proxy list,
then put the MIDlet in the foreground.
Otherwise, the request will not be granted. Foreground will not change.
Parameters: midlet - The proxy of the MIDlet that was updated Proxy of the next foreground MIDlet, may be the foregroundMIDlet if the foreground should not change |
selectForeground | MIDletProxy selectForeground(boolean onlyFromLaunchedList)(Code) | | Called to process a select foreground event.
Returns the foreground selector MIDlet in the foreground.
Parameters: onlyFromLaunchedList - true if midlet shouldbe selected from the list of already launched midlets,if false then possibility to launch midlet is needed. Proxy of the next foreground MIDlet, may be the foregroundMIDlet if the foreground should not change |
startPreempting | MIDletProxy startPreempting(MIDletProxy preempting)(Code) | | Preempt an Isolate's displays.
Parameters: preempting - proxy of the preempting MIDlet to be put in theforeground when a preempted MIDlet gets the foreground Proxy of the next foreground MIDlet, may be the foregroundMIDlet if the foreground should not change |
|
|