Java Doc for AppManagerUI.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » appmanager » 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.appmanager 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
 CommandbackCmd
     Command object for "Back" command for back to the AppSelector.
 Displaydisplay
     Display for the Manager MIDlet.
 ApplicationManagermanager
     Display for the Manager MIDlet.
protected static  TimertextScrollTimer
    

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.

Method Summary
public  voidcommandAction(Command c, Displayable s)
     Respond to a command issued on any Screen.
public  voidcommandAction(Command c, Item item)
    
public  RunningMIDletSuiteInfogetSelectedMIDletSuiteInfo()
     Called to determine MidletSuiteInfo of the last selected Item.
 voidnotifyMidletExited(MIDletProxy midlet)
     Called when a running midlet exited.
 voidnotifyMidletStartError(int suiteId, String className, int errorCode, String errorDetails)
     Called when a midlet could not be launched.
 voidnotifyMidletStarted(MIDletProxy midlet)
     Called when a new midlet was launched.
 voidnotifyMidletStateChanged(MIDletProxy midlet)
     Called when state of a running midlet was changed.
public  voidshowMidletSwitcher(boolean onlyFromLaunchedList)
     Called when midlet selector needed.

Field Detail
backCmd
Command backCmd(Code)
Command object for "Back" command for back to the AppSelector.



display
Display display(Code)
Display for the Manager MIDlet.



manager
ApplicationManager manager(Code)
Display for the Manager MIDlet.



textScrollTimer
protected static Timer textScrollTimer(Code)
A Timer which will handle firing repaints of the ScrollPainter




Constructor Detail
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.




Method Detail
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.



Methods inherited from javax.microedition.lcdui.Form
public int append(Item item)(Code)(Java Doc)
public int append(String str)(Code)(Java Doc)
public int append(Image img)(Code)(Java Doc)
public void delete(int itemNum)(Code)(Java Doc)
public void deleteAll()(Code)(Java Doc)
public Item get(int itemNum)(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public void insert(int itemNum, Item item)(Code)(Java Doc)
public void set(int itemNum, Item item)(Code)(Java Doc)
public void setItemStateListener(ItemStateListener iListener)(Code)(Java Doc)
public int size()(Code)(Java Doc)


Methods inherited from javax.microedition.lcdui.Displayable
public void addCommand(Command cmd)(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public Ticker getTicker()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public boolean isShown()(Code)(Java Doc)
public void removeCommand(Command cmd)(Code)(Java Doc)
public void setCommandListener(CommandListener l)(Code)(Java Doc)
public void setTicker(Ticker ticker)(Code)(Java Doc)
public void setTitle(String s)(Code)(Java Doc)
protected void sizeChanged(int w, int h)(Code)(Java Doc)

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.