Java Doc for SMSComposer.java in  » IDE-Netbeans » vmd.analyzer » org » netbeans » microedition » lcdui » wma » 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 » vmd.analyzer » org.netbeans.microedition.lcdui.wma 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.microedition.lcdui.wma.SMSComposer

SMSComposer
public class SMSComposer extends Canvas implements CommandListener(Code)
The SMSComposer provides an easy and convenient way to send SMS messages directly from JavaME application.


Field Summary
public static  CommandSEND_COMMAND
     Command fired when SMS sent.

Constructor Summary
public  SMSComposer(Display display)
     Creates a new instance of SMSComposer for given Display object.

Method Summary
public  voidcommandAction(Command c, Displayable d)
     Indicates that a command event has occurred on Displayable d.
Parameters:
  c - a Command object identifying the command.
public  ColorSchemagetColorSchema()
     Returnd component's color schema.
public  CommandListenergetCommandListener()
     Returns component's command listener.
protected  voidkeyPressed(int keyCode)
     Called when a key is pressed.
protected  voidkeyReleased(int keyCode)
     Called when a key is released.
protected  voidpaint(Graphics graphics)
     Paints this canvas.
public  voidsendSMS()
     Sends the message based on given non null phone number and port number.
public  voidsetBGColor(int color)
     Sets component's background color.
public  voidsetCommandListener(CommandListener listener)
     Sets component's command listener.
public  voidsetDefaulBorderStyles()
     Sets Default border styles.
public  voidsetDefaultFonts()
     Sets Default fonts.
public  voidsetFGColor(int color)
     Sets component's foreground color.
public  voidsetMessage(String message)
     Sets the message text.
public  voidsetMessageLabel(String messageLabel)
     Sets the message text label.
public  voidsetPhoneNumber(String phoneNumber)
     Sets the phone number.
public  voidsetPhoneNumberLabel(String phoneNumberLabel)
     Sets the phone number label.
public  voidsetPort(int portNum)
    
public  voidsetSendAutomatically(boolean sendAutomatically)
     Controlls execution of sendSMS method.
protected  voidshowNotify()
     The implementation calls showNotify() immediately prior to this Canvas being made visible on the display.
protected  voidsizeChanged(int w, int h)
     Called when the drawable area of the Canvas has been changed.

Field Detail
SEND_COMMAND
public static Command SEND_COMMAND(Code)
Command fired when SMS sent.




Constructor Detail
SMSComposer
public SMSComposer(Display display)(Code)
Creates a new instance of SMSComposer for given Display object.
Parameters:
  display - A non-null display object.




Method Detail
commandAction
public void commandAction(Command c, Displayable d)(Code)
Indicates that a command event has occurred on Displayable d.
Parameters:
  c - a Command object identifying the command. This is eitherone of the applications have been added to Displayable with addCommand(Command)or is the implicit SELECT_COMMAND of List.
Parameters:
  d - the Displayable on which this event has occurred



getColorSchema
public ColorSchema getColorSchema()(Code)
Returnd component's color schema. colorSchema



getCommandListener
public CommandListener getCommandListener()(Code)
Returns component's command listener. CommandListener



keyPressed
protected void keyPressed(int keyCode)(Code)
Called when a key is pressed.
Parameters:
  keyCode - the key code of the key that was pressed



keyReleased
protected void keyReleased(int keyCode)(Code)
Called when a key is released.
Parameters:
  keyCode - the key code of the key that was released



paint
protected void paint(Graphics graphics)(Code)
Paints this canvas.
Parameters:
  graphics - the Graphic object to be used for rendering the Canvas



sendSMS
public void sendSMS() throws IOException(Code)
Sends the message based on given non null phone number and port number.
throws:
  IOException - if the message could not be sent or because of network failure or if the connection is not available



setBGColor
public void setBGColor(int color)(Code)
Sets component's background color.
Parameters:
  color - background color



setCommandListener
public void setCommandListener(CommandListener listener)(Code)
Sets component's command listener.
Parameters:
  listener - CommandListener



setDefaulBorderStyles
public void setDefaulBorderStyles()(Code)
Sets Default border styles.



setDefaultFonts
public void setDefaultFonts()(Code)
Sets Default fonts.



setFGColor
public void setFGColor(int color)(Code)
Sets component's foreground color.
Parameters:
  color - foreground color



setMessage
public void setMessage(String message)(Code)
Sets the message text.
Parameters:
  message - message text



setMessageLabel
public void setMessageLabel(String messageLabel)(Code)
Sets the message text label.
Parameters:
  messageLabel - message text label



setPhoneNumber
public void setPhoneNumber(String phoneNumber)(Code)
Sets the phone number.
Parameters:
  phoneNumber - phone number



setPhoneNumberLabel
public void setPhoneNumberLabel(String phoneNumberLabel)(Code)
Sets the phone number label.
Parameters:
  phoneNumberLabel - phone number label



setPort
public void setPort(int portNum)(Code)
Sets the port number
Parameters:
  portNum - port number



setSendAutomatically
public void setSendAutomatically(boolean sendAutomatically)(Code)
Controlls execution of sendSMS method. Default value of sendAutomaticly argument is Boolean.TRUE which means that method sendSMS is invoked when command Send pressed. If sendAutomaticly is Boolean.FALSE then sendSMS method is not invoked after Send command is pressed.
Parameters:
  sendAutomatically - Boolean.TRUE sendSMS method is executed, Boolean.FALSE sendSMS method is NOT executed



showNotify
protected void showNotify()(Code)
The implementation calls showNotify() immediately prior to this Canvas being made visible on the display. Canvas subclasses may override this method to perform tasks before being shown, such as setting up animations, starting timers, etc.



sizeChanged
protected void sizeChanged(int w, int h)(Code)
Called when the drawable area of the Canvas has been changed. This method has augmented semantics compared to Displayable.sizeChanged. In addition to the causes listed in Displayable.sizeChanged, a size change can occur on a Canvas because of a change between normal and full-screen modes. If the size of a Canvas changes while it is actually visible on the display, it may trigger an automatic repaint request. If this occurs, the call to size Changed will occur prior to the call to paint. If the Canvas has become smaller, the implementation may choose not to trigger a repaint request if the remaining contents of the Canvas have been preserved. Similarly, if the Canvas has become larger, the implementation may choose to trigger a repaint only for the new region. In both cases, the preserved contents must remain stationary with respect to the origin of the Canvas. If the size change is significant to the contents of the Canvas, the application must explicitly issue a repaint request for the changed areas. Note that the application's repaint request should not cause multiple repaints, since it can be coalesced with repaint requests that are already pending. If the size of a Canvas changes while it is not visible, the implementation may choose to delay calls to sizeChanged until immediately prior to the call to showNotify. In that case, there will be only one call to sizeChanged, regardless of the number of size changes. An application that is sensitive to size changes can update instance variables in its implementation of sizeChanged. These updated values will be available to the code in the showNotify, hideNotify, and paint methods.
Parameters:
  w - the new width in pixels of the drawable area of the Canvas
Parameters:
  h - the new height in pixels of the drawable area of the Canvas



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