| |
|
| java.lang.Object com.sun.midp.chameleon.input.BasicInputMode com.sun.midp.chameleon.input.AlphaNumericInputMode
AlphaNumericInputMode | public class AlphaNumericInputMode extends BasicInputMode (Code) | | An InputMode instance which processes the numeric 0-9 keys
as their literal numeric values.
|
Method Summary | |
protected boolean | commitPendingChar() This method is used to immediately commit the pending
character because a new character is now pending. | 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 void | nextCapsMode() | protected void | setInputSubset(String inputSubset) | 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. |
CAPS_MODES | final protected static int[] CAPS_MODES(Code) | | array of sub-inputModes supported by this inputMode
|
capsModePointer | protected int capsModePointer(Code) | | points to an element of CAPS_MODES which is the current sub-inputMode
|
AlphaNumericInputMode | public AlphaNumericInputMode()(Code) | | Default constructor. Init key maps for all constraints
|
commitPendingChar | protected boolean commitPendingChar()(Code) | | This method is used to immediately commit the pending
character because a new character is now pending.
true if char has been committed otherwise false |
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 |
nextCapsMode | protected void nextCapsMode()(Code) | | Set the next capital mode for this input method
|
setInputSubset | protected void setInputSubset(String inputSubset)(Code) | | Notify about current input subset
Parameters: inputSubset - current input subset |
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 |
|
|
|