public class UniversalStrategy extends BaseStrategy
| Constructor and Description |
|---|
UniversalStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getStrategyName()
Gets strategy name (for logging)
|
void |
handleCommitText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
Handles commitText call
|
void |
handleDeleteSurroundingText(int beforeLength,
int afterLength,
ComposingContext context)
Handles deleteSurroundingText call
|
void |
handleFinishComposingText(ComposingContext context)
Handles finishComposingText call
|
void |
handleSetComposingRegion(int start,
int end,
ComposingContext context)
Handles setComposingRegion call
|
void |
handleSetComposingText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
Handles setComposingText call
|
handleSendKeyEventequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleBeginBatchEdit, handleEndBatchEditpublic void handleSetComposingRegion(int start,
int end,
ComposingContext context)
InputBehaviorStrategystart - Starting position of the regionend - Ending position of the regioncontext - Composing contextpublic void handleSetComposingText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
InputBehaviorStrategytext - Composing textnewCursorPosition - New cursor positioncontext - Composing contextpublic void handleCommitText(java.lang.CharSequence text,
int newCursorPosition,
ComposingContext context)
InputBehaviorStrategytext - Text to commitnewCursorPosition - New cursor positioncontext - Composing contextpublic void handleDeleteSurroundingText(int beforeLength,
int afterLength,
ComposingContext context)
InputBehaviorStrategybeforeLength - Number of characters to delete before the cursorafterLength - Number of characters to delete after the cursorcontext - Composing contextpublic void handleFinishComposingText(ComposingContext context)
InputBehaviorStrategycontext - Composing contextpublic java.lang.String getStrategyName()
InputBehaviorStrategy