public class ComposingContext
extends java.lang.Object
| Constructor and Description |
|---|
ComposingContext(KeyboardInputListener inputListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCommittedText()
Clear committed text record
|
void |
commitText(java.lang.CharSequence text,
java.lang.CharSequence replaceText)
Commit text
|
void |
deleteText()
Delete text
|
void |
finishComposing()
Finish composing mode
|
java.lang.String |
getCommittedText()
Get text committed to PDF
|
java.lang.CharSequence |
getComposingText()
Get current composing text
|
boolean |
hasComposingText()
Whether there is composing text
|
boolean |
isInComposingMode()
Whether in composing mode
|
void |
moveDown()
Move Down
|
void |
moveLeft()
Move Left
|
void |
moveRight()
Move Right
|
void |
moveUp()
Move Up
|
void |
notifyComposingText(java.lang.CharSequence text)
Notify composing text change (for preview display)
|
void |
reset()
Reset all states
|
void |
section()
New line / Section
|
void |
setCommittedText(java.lang.String text)
Set text committed to PDF
|
void |
startComposing()
Start composing mode
|
void |
updateComposingText(java.lang.CharSequence text)
Update composing text
|
public ComposingContext(KeyboardInputListener inputListener)
public void startComposing()
public void updateComposingText(java.lang.CharSequence text)
public void finishComposing()
public void reset()
public java.lang.CharSequence getComposingText()
public boolean isInComposingMode()
public boolean hasComposingText()
public java.lang.String getCommittedText()
public void setCommittedText(java.lang.String text)
public void clearCommittedText()
public void notifyComposingText(java.lang.CharSequence text)
public void commitText(java.lang.CharSequence text,
java.lang.CharSequence replaceText)
text - New text to commitreplaceText - Old text to be replaced (composing text)public void deleteText()
public void section()
public void moveUp()
public void moveDown()
public void moveLeft()
public void moveRight()