Methods Summary |
---|
public void | finishInternalChanges()Finish making changes that will not be reported to the client. That
is, {@link #onSelectionChanged(int, int)} will not result in sending
the new selection to the client
mSettingExtractedText -= 1;
|
public boolean | hasFocus()Pretend like this view always has focus, so its
highlight and cursor will be displayed.
return this.isEnabled() ? true : false;
|
public boolean | hasVerticalScrollBar()Return true if the edit text is currently showing a scroll bar.
return computeVerticalScrollRange() > computeVerticalScrollExtent();
|
public boolean | hasWindowFocus()Pretend like the window this view is in always has focus, so its
highlight and cursor will be displayed.
return this.isEnabled() ? true : false;
|
public boolean | isFocused()Pretend like this view always has focus, so its
highlight and cursor will be displayed.
return this.isEnabled() ? true : false;
|
public boolean | isInputMethodTarget()We are always considered to be an input method target.
return true;
|
protected void | onSelectionChanged(int selStart, int selEnd)Report to the underlying text editor about selection changes.
if (mSettingExtractedText == 0 && mIME != null && selStart >= 0 && selEnd >= 0) {
mIME.onExtractedSelectionChanged(selStart, selEnd);
}
|
public boolean | onTextContextMenuItem(int id)
if (mIME != null) {
if (mIME.onExtractTextContextMenuItem(id)) {
return true;
}
}
return super.onTextContextMenuItem(id);
|
public boolean | performClick()Redirect clicks to the IME for handling there. First allows any
on click handler to run, though.
if (!super.performClick() && mIME != null) {
mIME.onExtractedTextClicked();
return true;
}
return false;
|
public void | setExtractedText(android.view.inputmethod.ExtractedText text)Implement just to keep track of when we are setting text from the
client (vs. seeing changes in ourself from the user).
try {
mSettingExtractedText++;
super.setExtractedText(text);
} finally {
mSettingExtractedText--;
}
|
void | setIME(InputMethodService ime)
mIME = ime;
|
public void | startInternalChanges()Start making changes that will not be reported to the client. That
is, {@link #onSelectionChanged(int, int)} will not result in sending
the new selection to the client
mSettingExtractedText += 1;
|