| com.sun.midp.chameleon.input.TextInputComponent
TextInputComponent | public interface TextInputComponent (Code) | | An interface which defines the protocol between LCDUI component
implementations (TextFieldLFImpl, TextBoxLFImpl) and the TextInputMediator
to enable text input from the system's input modes.
|
Method Summary | |
public void | clear(int num) | public void | commit(String input) This is a direct call from the text input system to immediately
commit the given input to this TextInputComponent's state. | public int | getAvailableSize() Returns the available size (number of characters) that can be
stored in this TextInputComponent . | public int | getConstraints() Retrieve the constraints of this text component as defined
by the MIDP TextField API. | public Display | getDisplay() | public String | getInitialInputMode() Retrieve the initial input mode of this text component as
defined by the MIDP TextField API. | public boolean | isClearKey(int keyCode) | public void | notifyModeChanged() This is a notification from the input session that the selected
input mode has changed. |
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) | | This is a direct call from the text input system to immediately
commit the given input to this TextInputComponent's state.
This call constitutes a change to the value of this TextInputComponent
and should result in any of its change listeners being notified.
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 |
getConstraints | public int getConstraints()(Code) | | Retrieve the constraints of this text component as defined
by the MIDP TextField API.
a bitmask which defines the constraints set on thistext component, or 0 if none were set |
getDisplay | public Display getDisplay()(Code) | | Gets the current Display
current Display |
getInitialInputMode | public String getInitialInputMode()(Code) | | Retrieve the initial input mode of this text component as
defined by the MIDP TextField API.
the initial input mode for this text component or 'null'if none was set |
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 |
notifyModeChanged | public void notifyModeChanged()(Code) | | This is a notification from the input session that the selected
input mode has changed. If the TextInputComponent is interested,
it can query the session for the new InputMode.
|
|
|