Home | History | Annotate | Download | only in widget

Lines Matching defs:EDITABLE

45 import android.text.Editable;
275 private Editable.Factory mEditableFactory = Editable.Factory.getInstance();
387 // Although these fields are specific to editable text, they are not added to Editor because
539 boolean editable = getDefaultEditable();
570 editable = a.getBoolean(attr, editable);
876 BufferType bufferType = BufferType.EDITABLE;
977 } else if (editable) {
992 bufferType = BufferType.EDITABLE;
1266 * an argument of BufferType.SPANNABLE or BufferType.EDITABLE, you can cast
1267 * the return value from this method to Spannable or Editable, respectively.
1287 * Return the text the TextView is displaying as an Editable object. If
1288 * the text is not editable, null is returned.
1292 public Editable getEditableText() {
1293 return (mText instanceof Editable) ? (Editable)mText : null;
1387 if (input != null && !(mText instanceof Editable)) {
1391 setFilters((Editable) mText, mFilters);
1477 mAllowTransformationLengthChange = !isTextSelectable() && !(mText instanceof Editable);
3114 * display buffer, upgrading it to BufferType.EDITABLE if it was
3115 * not already editable.
3123 * display buffer, upgrading it to BufferType.EDITABLE if it was
3124 * not already editable.
3127 if (!(mText instanceof Editable)) {
3128 setText(mText, BufferType.EDITABLE);
3131 ((Editable) mText).append(text, start, end);
3354 public final void setEditableFactory(Editable.Factory factory) {
3399 * in a styleable/spannable buffer and whether it is editable.
3460 if (type == BufferType.EDITABLE || getKeyListener() != null ||
3463 Editable t = mEditableFactory.newEditable(text);
3477 if (type == BufferType.EDITABLE || text instanceof Spannable) {
3485 type = (type == BufferType.EDITABLE) ? BufferType.EDITABLE : BufferType.SPANNABLE;
3554 sendAfterTextChanged((Editable) text);
3857 * Get the type of the editable content.
4159 * Editable. Has no effect otherwise.
4170 if (mText instanceof Editable) {
4171 setFilters((Editable) mText, filters);
4176 * Sets the list of input filters on the specified Editable,
4179 private void setFilters(Editable e, InputFilter[] filters) {
4621 * in order to select text in non-editable TextView, the content of an {@link EditText} can
5092 mEditor.mKeyListener.onKeyUp(this, (Editable)mText, keyCode, up);
5094 mEditor.mKeyListener.onKeyDown(this, (Editable)mText, keyCode, down);
5095 mEditor.mKeyListener.onKeyUp(this, (Editable)mText, keyCode, up);
5223 final boolean handled = mEditor.mKeyListener.onKeyOther(this, (Editable) mText,
5240 final boolean handled = mEditor.mKeyListener.onKeyDown(this, (Editable) mText,
5318 if (mMovement != null && mText instanceof Editable
5388 if (mEditor.mKeyListener.onKeyUp(this, (Editable) mText, keyCode, event))
5443 if (mText instanceof Editable) {
5455 * If this TextView contains editable content, extract a portion of it
5483 Editable content = getEditableText();
5486 setText(text.text, TextView.BufferType.EDITABLE);
6734 * This setting will be ignored if this field is editable or selectable.
6885 * makes sense for editable TextView.
6907 * @return whether or not the cursor is visible (assuming this TextView is editable)
7014 * Editable if it would not otherwise be and does call this method.
7055 if (!(mText instanceof Editable)) return;
7056 Editable text = (Editable) mText;
7090 void sendAfterTextChanged(Editable text) {
7271 // usually because this instance is an editable field in a list
7283 // usually because this instance is an editable field in a list
7389 // on non editable text that support text selection.
7443 return mText instanceof Editable && onCheckIsTextEditor() && isEnabled();
7450 * of interest, in an editable text view.
7572 NORMAL, SPANNABLE, EDITABLE,
7986 if (mText.length() > 0 && hasSelection() && mText instanceof Editable && mEditor != null &&
8007 return (mText instanceof Editable &&
8089 ((Editable) mText).replace(min, max, paste);
8092 ((Editable) mText).insert(getSelectionEnd(), "\n");
8093 ((Editable) mText).insert(getSelectionEnd(), paste);
8294 ((Editable) mText).delete(start, end);
8302 ((Editable) mText).replace(start, end, text);
8310 ((Editable) mText).setSpan(span, start, end, flags);
8318 Selection.setSelection(((Editable) mText), start, end);
8322 * An Editor should be created as soon as any of the editable-specific fields (grouped
8741 public void afterTextChanged(Editable buffer) {