|
jMobileCore toolkit | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jmobilecore.ui.CustomFieldComposer
public abstract class CustomFieldComposer
| Field Summary | |
|---|---|
protected int |
curBlock
|
protected TextBlockComposer[] |
textBlocks
|
| Constructor Summary | |
|---|---|
CustomFieldComposer(TextBlockComposer[] textBlocks)
|
|
| Method Summary | |
|---|---|
boolean |
addChar(char ch,
boolean insertMode)
Adds new symbol or replaces the current one |
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 |
void |
clear()
|
boolean |
deleteChar()
Deletes current symbol |
void |
destructor()
Default destructor. |
int |
getCaretPosition()
Returns the caret position |
char[] |
getChars()
Returns the text that is presented by this text component. |
int |
getCurrentBlock()
|
int |
getCurrentLength()
Returns the current text length |
int |
getCursorOffset(javax.microedition.lcdui.Font font,
char echoChar)
Returns the cursor offset (in pixels) for the composed string |
int |
getMaxSize()
Get maximum lenght of the text which can be entered in TextFieldComposer |
java.lang.String |
getText()
Returns the text that is presented by this text component. |
boolean |
isComplete()
|
boolean |
setCaretPosition(int caretPosition)
Sets the caret position |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jmobilecore.ui.core.AbstractComposer |
|---|
setText |
| Field Detail |
|---|
protected int curBlock
protected TextBlockComposer[] textBlocks
| Constructor Detail |
|---|
public CustomFieldComposer(TextBlockComposer[] textBlocks)
| Method Detail |
|---|
public boolean addChar(char ch,
boolean insertMode)
addChar in interface AbstractComposerch - new symbolinsertMode - if true then new symbol will be added, otherwise the current symbol
will be replaced
true if the add/replace is possible, false otherwisepublic boolean backspace()
backspace in interface AbstractComposertrue if the delete and moving is possible/done, false otherwisepublic boolean caretLeft()
caretLeft in interface AbstractComposertrue if the moving is possible/done, false otherwisepublic boolean caretRight()
caretRight in interface AbstractComposertrue if the moving is possible/done, false otherwisepublic void clear()
public boolean deleteChar()
deleteChar in interface AbstractComposertrue if the delete possible/done, false otherwisepublic void destructor()
destructor in interface AbstractComposerpublic int getCaretPosition()
AbstractComposer
getCaretPosition in interface AbstractComposerpublic char[] getChars()
getChars in interface AbstractComposerpublic int getCurrentBlock()
public int getCurrentLength()
AbstractComposer
getCurrentLength in interface AbstractComposer
public int getCursorOffset(javax.microedition.lcdui.Font font,
char echoChar)
font - the current font.echoChar - the echo character, not used if equal to 0public int getMaxSize()
public java.lang.String getText()
getText in interface AbstractComposerpublic boolean isComplete()
public boolean setCaretPosition(int caretPosition)
AbstractComposer
setCaretPosition in interface AbstractComposercaretPosition - new caret position
true if operation is successful, false otherwise
|
jMobileCore toolkit | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||