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


java.lang.Object
   com.sun.midp.chameleon.input.BasicInputMode
      com.sun.midp.chameleon.input.NumericInputMode

NumericInputMode
public class NumericInputMode extends BasicInputMode (Code)
An InputMode instance which processes the numeric 0-9 keys as their literal numeric values.


Field Summary
protected  char[][]anyKeyMap
     The any numeric key map.
protected  char[][]decimalKeyMap
     The decimal key map.
protected  char[][]numericKeyMap
     The numeric key map.
protected  char[][]phoneNumericKeyMap
     The phone numeric key map.

Constructor Summary
public  NumericInputMode()
     Default constructor.

Method Summary
protected  char[]getCharOptions(int lastKey)
     Gets the possible matches for the key code
Parameters:
  lastKey - the key code returns the set of options.
public  StringgetCommandName()
    
public  boolean[][]getIsConstraintsMap()
     Returns the map specifying this input mode is proper one for the particular pair of input subset and constraint.
public  StringgetName()
     Returns the display name which will represent this InputMode to the user, such as in a selection list or the softbutton bar.
protected  booleansetKeyMap(int constraints, boolean longPress)
     Set the corresponding key map.
Parameters:
  constraints - text input constraints.
public  booleansupportsConstraints(int constraints)
     This method is called to determine if this InputMode supports the given text input constraints.

Field Detail
anyKeyMap
protected char[][] anyKeyMap(Code)
The any numeric key map.



decimalKeyMap
protected char[][] decimalKeyMap(Code)
The decimal key map.



numericKeyMap
protected char[][] numericKeyMap(Code)
The numeric key map.



phoneNumericKeyMap
protected char[][] phoneNumericKeyMap(Code)
The phone numeric key map.




Constructor Detail
NumericInputMode
public NumericInputMode()(Code)
Default constructor. Init key maps for all constraints




Method Detail
getCharOptions
protected char[] getCharOptions(int lastKey)(Code)
Gets the possible matches for the key code
Parameters:
  lastKey - the key code returns the set of options. Return null if matches are not found.



getCommandName
public String getCommandName()(Code)
Returns the command name which will represent this InputMode in the input menu the locale-appropriate name to represent this InputModeto the user



getIsConstraintsMap
public boolean[][] getIsConstraintsMap()(Code)
Returns the map specifying this input mode is proper one for the particular pair of input subset and constraint. The form of the map is |ANY|EMAILADDR|NUMERIC|PHONENUMBER|URL|DECIMAL| --------------------------------------------------------------------- IS_FULLWIDTH_DIGITS |t|f| t|f | t|f | t|f |t|f| t|f | IS_FULLWIDTH_LATIN |t|f| t|f | t|f | t|f |t|f| t|f | IS_HALFWIDTH_KATAKANA |t|f| t|f | t|f | t|f |t|f| t|f | IS_HANJA |t|f| t|f | t|f | t|f |t|f| t|f | IS_KANJI |t|f| t|f | t|f | t|f |t|f| t|f | IS_LATIN |t|f| t|f | t|f | t|f |t|f| t|f | IS_LATIN_DIGITS |t|f| t|f | t|f | t|f |t|f| t|f | IS_SIMPLIFIED_HANZI |t|f| t|f | t|f | t|f |t|f| t|f | IS_TRADITIONAL_HANZI |t|f| t|f | t|f | t|f |t|f| t|f | MIDP_UPPERCASE_LATIN |t|f| t|f | t|f | t|f |t|f| t|f | MIDP_LOWERCASE_LATIN |t|f| t|f | t|f | t|f |t|f| t|f | NULL |t|f| t|f | t|f | t|f |t|f| t|f | input subset x constraint map



getName
public String getName()(Code)
Returns the display name which will represent this InputMode to the user, such as in a selection list or the softbutton bar. the locale-appropriate name to represent this InputModeto the user



setKeyMap
protected boolean setKeyMap(int constraints, boolean longPress)(Code)
Set the corresponding key map.
Parameters:
  constraints - text input constraints. The semantics of the constraints value are defined in the TextField API.
Parameters:
  longPress - return true if it's long key press otherwise false true if the key map has been changed otherwise false



supportsConstraints
public boolean supportsConstraints(int constraints)(Code)
This method is called to determine if this InputMode supports the given text input constraints. The semantics of the constraints value are defined in the javax.microedition.lcdui.TextField API. If this InputMode returns false, this InputMode must not be used to process key input for the selected text component.
Parameters:
  constraints - text input constraints. The semantics of the constraints value are defined in the TextField API. true if this InputMode supports the given text componentconstraints, as defined in the MIDP TextField API



Fields inherited from com.sun.midp.chameleon.input.BasicInputMode
final protected static int KEY_COMMIT_TIMEOUT(Code)(Java Doc)
protected int clickCount(Code)(Java Doc)
protected boolean commitChar(Code)(Java Doc)
protected int constraints(Code)(Java Doc)
protected boolean hasMoreMatches(Code)(Java Doc)
static char[][] keyMap(Code)(Java Doc)
protected int lastKey(Code)(Java Doc)
protected InputModeMediator mediator(Code)(Java Doc)
protected int modifiers(Code)(Java Doc)
protected int pendingChar(Code)(Java Doc)
protected boolean sessionIsLive(Code)(Java Doc)

Methods inherited from com.sun.midp.chameleon.input.BasicInputMode
public void beginInput(InputModeMediator mediator, String inputSubset, int constraints)(Code)(Java Doc)
protected boolean commitPendingChar()(Code)(Java Doc)
protected void completeInputMode(boolean commit)(Code)(Java Doc)
public void endInput()(Code)(Java Doc)
abstract protected char[] getCharOptions(int lastKey)(Code)(Java Doc)
abstract public String getCommandName()(Code)(Java Doc)
public Displayable getDisplayable()(Code)(Java Doc)
abstract public boolean[][] getIsConstraintsMap()(Code)(Java Doc)
protected char[][] getMapByLine(String line)(Code)(Java Doc)
public String[] getMatchList()(Code)(Java Doc)
abstract public String getName()(Code)(Java Doc)
protected int getNextChar()(Code)(Java Doc)
public String getNextMatch()(Code)(Java Doc)
public char getPendingChar()(Code)(Java Doc)
public int getPendingCharInternal()(Code)(Java Doc)
public boolean hasDisplayable()(Code)(Java Doc)
public boolean hasMoreMatches()(Code)(Java Doc)
protected void nextCapsMode()(Code)(Java Doc)
public int processKey(int keyCode, boolean longPress)(Code)(Java Doc)
public void run()(Code)(Java Doc)
protected void setInputSubset(String inputSubset)(Code)(Java Doc)
abstract protected boolean setKeyMap(int constraints, boolean longPress)(Code)(Java Doc)
abstract public boolean supportsConstraints(int constraints)(Code)(Java Doc)
protected void validateState(boolean activeOperation)(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.