Java Doc for MIDletProxy.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » main » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.midp.main 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.midp.main.MIDletProxy

MIDletProxy
public class MIDletProxy implements SuspendDependency(Code)
Represents the state of a running MIDlet and its Display so that objects do not have to be shared across Isolates. The states in this object are updated by the MIDletProxyList upon receiving a notification event. This class also provides methods for asynchronously changing a MIDlet's state.


Field Summary
final public static  intMIDLET_ACTIVE
     Constant for active state of a MIDlet.
final public static  intMIDLET_DESTROYED
     Constant for destroyed state of a MIDlet.
final public static  intMIDLET_PAUSED
     Constant for paused state of a MIDlet.
 booleanwasNotActive
     Indicates that the midlet was just created.

Constructor Summary
 MIDletProxy(MIDletProxyList theParentList, int theExternalAppId, int theIsolateId, int theSuiteId, String theClassName, String theDisplayName, int theMidletState)
     Construct a new MIDletProxy.

Method Summary
public  voidactivateMidlet()
     Asynchronously change the MIDlet's state to active.
public  voiddestroyMidlet()
     Asynchronously change the MIDlet's state to destroyed.
 voiddestroyedNotification()
     Process a MIDlet destroyed notification.
public  StringgetClassName()
     Get the class name of the MIDlet.
public  intgetDisplayId()
     Get the ID of the MIDlet's Display.
public  StringgetDisplayName()
     Get the Display name of the MIDlet.
public  intgetExternalAppId()
     Get the external application ID used for forwarding changes.
public  intgetIsolateId()
     Get the ID of the Isolate the MIDlet is running in.
public  intgetMidletState()
     Get the MIDlet lifecycle state.
 MIDletProxygetPreemptedMidlet()
     Get the proxy of the MIDlet that should get the foreground after preempting is done.
 MIDletProxygetPreemptingDisplay()
     Get the proxy of the display that is preempting this MIDlet.
public  intgetSuiteId()
     Get the ID of the MIDlet's suite.
 TimergetTimer()
    
static  voidinitClass(ForegroundEventProducer theForegroundEventProducer, MIDletEventProducer theMIDletEventProducer)
     Initialize the MIDletProxy class.
public  booleanisAlertWaiting()
     Called to determine if alert is waiting for the foreground.
public  booleannoDisplay()
     Check if the MIDlet has not created its display.
public  booleannoDisplayable()
     Check if the MIDlet has not set a displayable in its display.
 voidnotifyMIDletHasForeground(boolean hasForeground)
     Notify the midlet's display of a foreground change.
public  voidpauseMidlet()
     Asynchronously change the MIDlet's state to paused.
 voidsetDisplayId(int id)
     Sets the ID of the MIDlet's Display.
 voidsetMidletState(int newMidletState)
     Set the MIDlet cycle state.
 voidsetPreemptedMidlet(MIDletProxy preemptedDisplay)
     Set the proxy of the MIDlet that should get the foreground after preempting is done.
 voidsetPreemptingDisplay(MIDletProxy preemptingDisplay)
     Set the proxy of the display that is preempting this MIDlet.
 voidsetTimer(Timer t)
    
 voidsetWantsForeground(boolean newWantsForeground, boolean isAlert)
     Set the wants foreground state in the proxy.
public  voidterminateNotPausedMidlet()
     Terminates ther MIDlet if it is neither paused nor destroyed.
public  StringtoString()
     Print the state of the proxy.
public  booleanwantsForeground()
     Check if the MIDlet want's its Display in the foreground.

Field Detail
MIDLET_ACTIVE
final public static int MIDLET_ACTIVE(Code)
Constant for active state of a MIDlet.



MIDLET_DESTROYED
final public static int MIDLET_DESTROYED(Code)
Constant for destroyed state of a MIDlet.



MIDLET_PAUSED
final public static int MIDLET_PAUSED(Code)
Constant for paused state of a MIDlet.



wasNotActive
boolean wasNotActive(Code)
Indicates that the midlet was just created.




Constructor Detail
MIDletProxy
MIDletProxy(MIDletProxyList theParentList, int theExternalAppId, int theIsolateId, int theSuiteId, String theClassName, String theDisplayName, int theMidletState)(Code)
Construct a new MIDletProxy.
Parameters:
  theParentList - parent MIDlet proxy list
Parameters:
  theExternalAppId - ID of given by an external application manager
Parameters:
  theIsolateId - ID of the Isolate the MIDlet is running in.
Parameters:
  theSuiteId - ID of the suite MIDlet
Parameters:
  theClassName - Class name of the MIDlet
Parameters:
  theDisplayName - Display name of the MIDlet to show the user
Parameters:
  theMidletState - MIDlet lifecycle state.




Method Detail
activateMidlet
public void activateMidlet()(Code)
Asynchronously change the MIDlet's state to active. This method does NOT change the state in the proxy, but sends a activate MIDlet event to the MIDlet's Display. The state in the proxy is only update when the MIDlet sends a MIDlet activated event to the proxy list.



destroyMidlet
public void destroyMidlet()(Code)
Asynchronously change the MIDlet's state to destroyed. This method does NOT change the state in the proxy, but sends request to destroy MIDlet event to the AMS. The state in the proxy is only update when the MIDlet sends a MIDlet destroyed event to the proxy list.



destroyedNotification
void destroyedNotification()(Code)
Process a MIDlet destroyed notification.



getClassName
public String getClassName()(Code)
Get the class name of the MIDlet. class name of the MIDlet



getDisplayId
public int getDisplayId()(Code)
Get the ID of the MIDlet's Display. Public for testing purposes. ID of the MIDlet's Display



getDisplayName
public String getDisplayName()(Code)
Get the Display name of the MIDlet. Display name of the MIDlet



getExternalAppId
public int getExternalAppId()(Code)
Get the external application ID used for forwarding changes. ID assigned by the external application manager



getIsolateId
public int getIsolateId()(Code)
Get the ID of the Isolate the MIDlet is running in. Public for testing purposes. ID of the Isolate the MIDlet is running in



getMidletState
public int getMidletState()(Code)
Get the MIDlet lifecycle state. MIDlet state



getPreemptedMidlet
MIDletProxy getPreemptedMidlet()(Code)
Get the proxy of the MIDlet that should get the foreground after preempting is done. the preempted display or null for none



getPreemptingDisplay
MIDletProxy getPreemptingDisplay()(Code)
Get the proxy of the display that is preempting this MIDlet. the preempting display



getSuiteId
public int getSuiteId()(Code)
Get the ID of the MIDlet's suite. ID of the MIDlet's suite



getTimer
Timer getTimer()(Code)
Gets the timer object Timer



initClass
static void initClass(ForegroundEventProducer theForegroundEventProducer, MIDletEventProducer theMIDletEventProducer)(Code)
Initialize the MIDletProxy class. Should only be called by the MIDletProxyList.
Parameters:
  theForegroundEventProducer - reference to the event producer
Parameters:
  theMIDletEventProducer - reference to the event producer



isAlertWaiting
public boolean isAlertWaiting()(Code)
Called to determine if alert is waiting for the foreground. true if an alert of the MIDlet is waiting in background.



noDisplay
public boolean noDisplay()(Code)
Check if the MIDlet has not created its display. true if the MIDlet has no display.



noDisplayable
public boolean noDisplayable()(Code)
Check if the MIDlet has not set a displayable in its display. Used by foreground selector to determine if the MIDlet it is about to put in the foreground will draw the screen. true if the MIDlet has no displayable.



notifyMIDletHasForeground
void notifyMIDletHasForeground(boolean hasForeground)(Code)
Notify the midlet's display of a foreground change. Called by the MIDlet proxy list to notify the old and new foreground displays of a foreground change.
Parameters:
  hasForeground - true if the target is being put in the foreground



pauseMidlet
public void pauseMidlet()(Code)
Asynchronously change the MIDlet's state to paused. This method does NOT change the state in the proxy, but sends a pause MIDlet event to the MIDlet's Display. The state in the proxy is only update when the MIDlet sends a MIDlet paused event to the proxy list.



setDisplayId
void setDisplayId(int id)(Code)
Sets the ID of the MIDlet's Display.
Parameters:
  id - of the MIDlet's Display



setMidletState
void setMidletState(int newMidletState)(Code)
Set the MIDlet cycle state. Called by the MIDlet proxy list when it receives an event from the MIDlet to update this value.
Parameters:
  newMidletState - new MIDlet state



setPreemptedMidlet
void setPreemptedMidlet(MIDletProxy preemptedDisplay)(Code)
Set the proxy of the MIDlet that should get the foreground after preempting is done.
Parameters:
  preemptedDisplay - the preempted display



setPreemptingDisplay
void setPreemptingDisplay(MIDletProxy preemptingDisplay)(Code)
Set the proxy of the display that is preempting this MIDlet.
Parameters:
  preemptingDisplay - the preempting display



setTimer
void setTimer(Timer t)(Code)
Sets the timer object
Parameters:
  t - Timer object



setWantsForeground
void setWantsForeground(boolean newWantsForeground, boolean isAlert)(Code)
Set the wants foreground state in the proxy. Called by the MIDlet proxy list when it receives an event from the MIDlet's display to update this value.
Parameters:
  newWantsForeground - new wants foreground value.
Parameters:
  isAlert - true if the displayable requesting the foreground,is an Alert, this parameter is ignored if newWantsForegroundis false



terminateNotPausedMidlet
public void terminateNotPausedMidlet()(Code)
Terminates ther MIDlet if it is neither paused nor destroyed.



toString
public String toString()(Code)
Print the state of the proxy. printable representation of the state of this object



wantsForeground
public boolean wantsForeground()(Code)
Check if the MIDlet want's its Display in the foreground. true if the MIDlet want's its Display in the foreground



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.