| javax.microedition.lcdui.TextFieldLF
All known Subclasses: javax.microedition.lcdui.TextBoxLFImpl, javax.microedition.lcdui.TextFieldLFImpl,
TextFieldLF | interface TextFieldLF extends ItemLF(Code) | | Look and Feel interface used by TextField.
See Naming Conventions
for information about method naming conventions.
|
Method Summary | |
void | itemDeleted() | void | lDelete(int offset, int length) Notifies L&F of character deletion in the corresponding TextField. | int | lGetCaretPosition() Gets the current input position. | void | lInsert(char data, int offset, int length, int position) Notifies L&F of a character insertion in the corresponding TextField. | void | lSetChars() Notifies L&F of a content change in the corresponding TextField. | void | lSetConstraints() Notifies L&F that constraints have to be changed. | void | lSetInitialInputMode(String characterSubset) Notifies L&F that preferred initial input mode was changed. | void | lSetMaxSize(int maxSize) Notifies L&F of a maximum size change in the corresponding TextField. | boolean | lUpdateContents() Update the character buffer in TextField with latest user input. | public boolean | lValidate(DynamicCharacterArray buffer, int constraints) Validate a given character array against a constraints. |
itemDeleted | void itemDeleted()(Code) | | Notifies item that it has been recently deleted
|
lDelete | void lDelete(int offset, int length)(Code) | | Notifies L&F of character deletion in the corresponding TextField.
Parameters: offset - the beginning of the deleted region Parameters: length - the number of characters deleted |
lGetCaretPosition | int lGetCaretPosition()(Code) | | Gets the current input position.
the current caret position, 0 if at the beginning |
lInsert | void lInsert(char data, int offset, int length, int position)(Code) | | Notifies L&F of a character insertion in the corresponding TextField.
Parameters: data - the source of the character data Parameters: offset - the beginning of the region of characters copied Parameters: length - the number of characters copied Parameters: position - the position at which insertion occurred |
lSetChars | void lSetChars()(Code) | | Notifies L&F of a content change in the corresponding TextField.
|
lSetConstraints | void lSetConstraints()(Code) | | Notifies L&F that constraints have to be changed.
|
lSetInitialInputMode | void lSetInitialInputMode(String characterSubset)(Code) | | Notifies L&F that preferred initial input mode was changed.
Parameters: characterSubset - a string naming a Unicode character subset,or null |
lSetMaxSize | void lSetMaxSize(int maxSize)(Code) | | Notifies L&F of a maximum size change in the corresponding TextField.
Parameters: maxSize - - the new maximum size |
lUpdateContents | boolean lUpdateContents()(Code) | | Update the character buffer in TextField with latest user input.
true if there is new user input updated in the buffer |
lValidate | public boolean lValidate(DynamicCharacterArray buffer, int constraints)(Code) | | Validate a given character array against a constraints.
Parameters: buffer - a character array Parameters: constraints - text input constraints true if constraints is met by the character array |
|
|