| com.sun.midp.chameleon.input.InputModeMediator
All known Subclasses: com.sun.midp.chameleon.input.BasicTextInputSession,
InputModeMediator | public interface InputModeMediator (Code) | | An interface which defines the protocol between
TextInputComponent and InputMoode
|
Method Summary | |
public void | clear(int num) | public void | commit(String input) Called by an InputMode in order to automatically commit the given
input to the Text component. | public int | getAvailableSize() Returns the available size (number of characters) that can be
stored in this TextInputComponent . | public void | inputModeCompleted() Called by an InputMode in order to signal that the input process
has been completed with respect to the InputMode. | public boolean | isClearKey(int keyCode) | public void | subInputModeChanged() Called by an InputMode to inform a TextComponent of a sub-inputMode
change. |
clear | public void clear(int num)(Code) | | Clear the particular number of symbols
Parameters: num - number of symbols |
commit | public void commit(String input)(Code) | | Called by an InputMode in order to automatically commit the given
input to the Text component. For example, when the timer expires
in an AlphaNumeric InputMode it will commit the current pending
character.
Parameters: input - String needs to be commited |
getAvailableSize | public int getAvailableSize()(Code) | | Returns the available size (number of characters) that can be
stored in this TextInputComponent .
available size in characters |
inputModeCompleted | public void inputModeCompleted()(Code) | | Called by an InputMode in order to signal that the input process
has been completed with respect to the InputMode. Subsequent key
input should be handled in a new input session, possibly by the
same InputMode or by a different InputMode alltogether. For example,
when the timer expires in an AlphaNumeric InputMode, the character
is committed and the AlphaNumeric InputMode signals its completion.
Further key input may start a new session with the AlphaNumeric
InputMode or possibly some other InputMode.
|
isClearKey | public boolean isClearKey(int keyCode)(Code) | | Returns true if the keyCode is used as 'clear'
Parameters: keyCode - key code true if keu code is Clear one, false otherwise |
subInputModeChanged | public void subInputModeChanged()(Code) | | Called by an InputMode to inform a TextComponent of a sub-inputMode
change.
|
|
|