|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AbstractComposer
The AbstractComposer
interface defines set of methods
that supports a text caret's handling and basic text editing.
Method Summary | |
---|---|
boolean |
addChar(char ch,
boolean insertMode)
|
boolean |
backspace()
Deletes previous symbol, moves cursor one position left |
boolean |
caretLeft()
Moves the caret one position left |
boolean |
caretRight()
Moves the caret one position right |
boolean |
deleteChar()
Deletes current symbol |
void |
destructor()
Default destructor. |
int |
getCaretPosition()
Returns the caret position |
char[] |
getChars()
Returns the char array (mutable) that is presented by this text component. |
int |
getCurrentLength()
Returns the current text length |
java.lang.String |
getText()
Returns the immutable string that is presented by this text component. |
boolean |
setCaretPosition(int caretPosition)
Sets the caret position |
void |
setText(java.lang.String newText)
Sets the text that is presented by this text component to be the specified text. |
Method Detail |
---|
boolean addChar(char ch, boolean insertMode)
boolean backspace()
true
if the delete and moving is possible/done, false
otherwiseboolean caretLeft()
true
if the moving is possible/done, false
otherwiseboolean caretRight()
true
if the moving is possible/done, false
otherwiseboolean deleteChar()
true
if the delete possible/done, false
otherwisevoid destructor()
int getCaretPosition()
char[] getChars()
int getCurrentLength()
java.lang.String getText()
boolean setCaretPosition(int caretPosition)
caretPosition
- new caret position
true
if operation is successful, false
otherwisevoid setText(java.lang.String newText)
newText
- the new text.
|
jMobileCore toolkit | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |