Java Doc for Xlet.java in  » 6.0-JDK-Modules » j2me » javax » microedition » xlet » 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 » javax.microedition.xlet 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.microedition.xlet.Xlet

All known Subclasses:   IXCDemo.ixcXlets.clientXlet.PlaneClient,  IXCDemo.ixcXlets.serverXlet.PlaneServer,  basis.DemoXlet,
Xlet
public interface Xlet (Code)
This interface allows an application manager to create, initialize, start, pause, and destroy an Xlet. An Xlet is an application or service designed to be run and controlled by an application manager via this lifecycle interface. The lifecycle states allow the application manager to manage the activities of multiple Xlets within a runtime environment selecting which Xlets are active at a given time. The application manager maintains the state of the Xlet and invokes method on the Xlet via the lifecycle methods. The Xlet implements these methods to update its internal activities and resource usage as directed by the application manager. The Xlet can initiate some state changes itself and informs the application manager of those state changes by invoking methods on XletContext.

In order to support interoperability between Xlets and application managers, all Xlet classes must provide a public no-argument constructor.

Note: The methods on this interface are meant to signal state changes. The state change is not considered complete until the state change method has returned. It is intended that these methods return quickly.


See Also:   XletContext





Method Summary
public  voiddestroyXlet(boolean unconditional)
     Signals the Xlet to terminate and enter the Destroyed state. In the destroyed state the Xlet must release all resources and save any persistent state.
public  voidinitXlet(XletContext ctx)
     Signals the Xlet to initialize itself and enter the Paused state. The Xlet shall initialize itself in preparation for providing service. It should not hold shared resources but should be prepared to provide service in a reasonable amount of time.
public  voidpauseXlet()
     Signals the Xlet to stop providing service and enter the Paused state. In the Paused state the Xlet must stop providing service, and might release all shared resources and become quiescent.
public  voidstartXlet()
     Signals the Xlet to start providing service and enter the Active state. In the Active state the Xlet may hold shared resources. The method will only be called when the Xlet is in the paused state.


exception:
  XletStateChangeException - is thrown if the Xletcannot start providing service.




Method Detail
destroyXlet
public void destroyXlet(boolean unconditional) throws XletStateChangeException(Code)
Signals the Xlet to terminate and enter the Destroyed state. In the destroyed state the Xlet must release all resources and save any persistent state. This method may be called from the Loaded, Paused or Active states.

Xlets should perform any operations required before being terminated, such as releasing resources or saving preferences or state.

NOTE: The Xlet can request that it not enter the Destroyed state by throwing an XletStateChangeException. This is only a valid response if the unconditional flag is set to false. If it is true the Xlet is assumed to be in the Destroyed state regardless of how this method terminates. If it is not an unconditional request, the Xlet can signify that it wishes to stay in its current state by throwing the Exception. This request may be honored and the destroyXlet() method called again at a later time.
Parameters:
  unconditional - If unconditional is true when thismethod is called, requests by the Xlet to not enter thedestroyed state will be ignored.
exception:
  XletStateChangeException - is thrown if the Xletwishes to continue to execute (Not enter the Destroyedstate). This exception is ignored if unconditional is equal to true.




initXlet
public void initXlet(XletContext ctx) throws XletStateChangeException(Code)
Signals the Xlet to initialize itself and enter the Paused state. The Xlet shall initialize itself in preparation for providing service. It should not hold shared resources but should be prepared to provide service in a reasonable amount of time.

An XletContext is used by the Xlet to access properties associated with its runtime environment. After this method returns successfully, the Xlet is in the Paused state and should be quiescent.

Note: This method shall only be called once.


Parameters:
  ctx - The XletContext of this Xlet.
exception:
  XletStateChangeException - If the Xlet cannot beinitialized.
See Also:   javax.microedition.xlet.XletContext




pauseXlet
public void pauseXlet()(Code)
Signals the Xlet to stop providing service and enter the Paused state. In the Paused state the Xlet must stop providing service, and might release all shared resources and become quiescent. This method will only be called called when the Xlet is in the Active state.




startXlet
public void startXlet() throws XletStateChangeException(Code)
Signals the Xlet to start providing service and enter the Active state. In the Active state the Xlet may hold shared resources. The method will only be called when the Xlet is in the paused state.


exception:
  XletStateChangeException - is thrown if the Xletcannot start providing service.




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