| |
|
| 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.
|
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 String | getCommandName() | public boolean[][] | getIsConstraintsMap() Returns the map specifying this input mode is proper one for the
particular pair of input subset and constraint. | public String | getName() Returns the display name which will represent this InputMode to
the user, such as in a selection list or the softbutton bar. | protected boolean | setKeyMap(int constraints, boolean longPress) Set the corresponding key map.
Parameters: constraints - text input constraints. | public boolean | supportsConstraints(int constraints) This method is called to determine if this InputMode supports
the given text input constraints. |
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.
|
NumericInputMode | public NumericInputMode()(Code) | | Default constructor. Init key maps for all constraints
|
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 |
|
|
|