Java Doc for Utils.java in  » IDE-Netbeans » mobility » example » mmademo » 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 » IDE Netbeans » mobility » example.mmademo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   example.mmademo.Utils

All known Subclasses:   example.mmademo.SimpleRmsBrowser,  example.mmademo.SimplePlayerForm,  example.mmademo.SimpleTones,  example.mmademo.SimplePlayerCanvas,  example.mmademo.SimpleHttpBrowser,  example.mmademo.SimplePlayer,
Utils
public class Utils (Code)
Utility functions and listener interfaces
version:
   1.5

Inner Class :interface BreadCrumbTrail
Inner Class :interface ContentHandler
Inner Class :interface QueryListener
Inner Class :interface Interruptable

Field Summary
public static  booleanDEBUG
    


Method Summary
public static  voidFYI(String s, BreadCrumbTrail bct)
    
public static  voiddebugOut(String s)
    
public static  voiddebugOut(Throwable t)
    
public static  voiderror(Throwable t, BreadCrumbTrail bct)
    
public static  voiderror(String s, BreadCrumbTrail bct)
    
public static  StringfriendlyException(Throwable t)
    
public static  StringguessContentType(String url)
    
public static  StringmergeURL(String[] url)
    
public static  voidquery(String title, String def, int maxSize, QueryListener listener, BreadCrumbTrail bct)
     Prompts the user to enter a string.

Caution: this must be called in a different Thread than the lcdui event dispatcher.

public static  voidquery(String title, String def, int maxSize, int constraints, QueryListener listener, BreadCrumbTrail bct)
     Prompts the user to enter a string.
public static  voidsort(String[] elements)
    
public static  String[]splitURL(String url)
     splits the URL in the parts E.g: http://www.12fb.com:80/Media/MIDI/fb.mid#1 0: protocol (e.g.

Field Detail
DEBUG
public static boolean DEBUG(Code)





Method Detail
FYI
public static void FYI(String s, BreadCrumbTrail bct)(Code)



debugOut
public static void debugOut(String s)(Code)



debugOut
public static void debugOut(Throwable t)(Code)



error
public static void error(Throwable t, BreadCrumbTrail bct)(Code)



error
public static void error(String s, BreadCrumbTrail bct)(Code)



friendlyException
public static String friendlyException(Throwable t)(Code)
"javax.microedition.rms.RecordStoreException: Bla" -> "RecordStoreException: Bla"



guessContentType
public static String guessContentType(String url) throws Exception(Code)



mergeURL
public static String mergeURL(String[] url)(Code)



query
public static void query(String title, String def, int maxSize, QueryListener listener, BreadCrumbTrail bct)(Code)
Prompts the user to enter a string.

Caution: this must be called in a different Thread than the lcdui event dispatcher. Unfortunately !
Parameters:
  title - - title of the query window
Parameters:
  def - - a default value that appears in the input field
Parameters:
  maxSize - - max number of characters the entered text, or null if the user cancelled




query
public static void query(String title, String def, int maxSize, int constraints, QueryListener listener, BreadCrumbTrail bct)(Code)
Prompts the user to enter a string.

When the user finished entering the text, the listener's methods are called. If the user pressed the OK button, the listener's queryOK method is called with the entered text as parameter. The listener need not care about hiding the displayable.
Parameters:
  title - - title of the query window
Parameters:
  def - - a default value that appears in the input field
Parameters:
  maxSize - - max number of characters
Parameters:
  constraints - - see javax.microedition.lcdui.TextBox
Parameters:
  listener - - the QueryListener which receives the events




sort
public static void sort(String[] elements)(Code)



splitURL
public static String[] splitURL(String url) throws Exception(Code)
splits the URL in the parts E.g: http://www.12fb.com:80/Media/MIDI/fb.mid#1 0: protocol (e.g. http) 1: host (e.g. www.12fb.com) 2: port (e.g. 80) 3: path (e.g. /Media/MIDI) 4: file (e.g. fb.mid) 5: anchor (e.g. 1) LIMITATION: URL must end with a slash if it is a directory



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.