FileDocCategorySizeDatePackage
InputMethodClient.javaAPI DocJ2ME MIDP 2.03245Thu Nov 07 12:02:22 GMT 2002com.sun.midp.lcdui

InputMethodClient

public interface InputMethodClient
A public interface for the InputMethod client.

Fields Summary
Constructors Summary
Methods Summary
public java.lang.String[]getAllowedModes()
Returns the allowed modes

return
the allowed modes

public intgetConstraints()
Returns the current input constraints

return
the current input constraints

public javax.microedition.lcdui.DisplaygetDisplay()
Returns the current display

return
the current display

public java.lang.StringgetInputMode()
Returns the current input mode

return
current input mode

public booleanisNewInputEntry()
Asks the client to determine if the next character would be the first input to the client

return
true is the next character would be the first input

public booleanisNewSentence()
Asks the client to determine if the next character would start a new sentence

return
true is the next character would begin a new sentence

public booleanisNewWord()
Asks the client to determine if the next character would start a new word

return
true is the next character would begin a new word

public voidkeyEntered(int keyCode)
Call back from the input handler when a key has been committed

param
keyCode key code of the key committed

public voidsetAllowedModes(java.lang.String[] allowedModes)
Sets which modes are allowed

param
allowedModes array of strings specifying allowed modes

public booleansetConstraints(int constraints)
Set the current input constraints

param
constraints the constraints to set
return
true if the constraints were set correctly

public voidsetCurrent(javax.microedition.lcdui.Displayable displayable, javax.microedition.lcdui.Display display)
Tell the input client that it should set the displayable to be the current display. This is called when returning from the symbol table

param
displayable displayable to be used
param
display display to be used

public voidsetInputMethodHandler(InputMethodHandler imh)
Set which input handler to use

param
imh input handler to use

public voidsetInputMode(java.lang.String inputMode)
Set which input mode to use

param
inputMode a String identifying the input mode

public voidshowInputMode(int mode)
Call back from the input handler to inform the client that the input mode has changed and that may want to show that information to the user

param
mode new input mode