FileDocCategorySizeDatePackage
InputConnectionWrapper.javaAPI DocAndroid 1.5 API3556Wed May 06 22:41:56 BST 2009android.view.inputmethod

InputConnectionWrapper

public class InputConnectionWrapper extends Object implements InputConnection

Wrapper class for proxying calls to another InputConnection. Subclass and have fun!

Fields Summary
private InputConnection
mTarget
final boolean
mMutable
Constructors Summary
public InputConnectionWrapper(InputConnection target, boolean mutable)

        mMutable = mutable;
        mTarget = target;
    
Methods Summary
public booleanbeginBatchEdit()

        return mTarget.beginBatchEdit();
    
public booleanclearMetaKeyStates(int states)

        return mTarget.clearMetaKeyStates(states);
    
public booleancommitCompletion(CompletionInfo text)

        return mTarget.commitCompletion(text);
    
public booleancommitText(java.lang.CharSequence text, int newCursorPosition)

        return mTarget.commitText(text, newCursorPosition);
    
public booleandeleteSurroundingText(int leftLength, int rightLength)

        return mTarget.deleteSurroundingText(leftLength, rightLength);
    
public booleanendBatchEdit()

        return mTarget.endBatchEdit();
    
public booleanfinishComposingText()

        return mTarget.finishComposingText();
    
public intgetCursorCapsMode(int reqModes)

        return mTarget.getCursorCapsMode(reqModes);
    
public ExtractedTextgetExtractedText(ExtractedTextRequest request, int flags)

        return mTarget.getExtractedText(request, flags);
    
public java.lang.CharSequencegetTextAfterCursor(int n, int flags)

        return mTarget.getTextAfterCursor(n, flags);
    
public java.lang.CharSequencegetTextBeforeCursor(int n, int flags)

        return mTarget.getTextBeforeCursor(n, flags);
    
public booleanperformContextMenuAction(int id)

        return mTarget.performContextMenuAction(id);
    
public booleanperformEditorAction(int editorAction)

        return mTarget.performEditorAction(editorAction);
    
public booleanperformPrivateCommand(java.lang.String action, android.os.Bundle data)

        return mTarget.performPrivateCommand(action, data);
    
public booleanreportFullscreenMode(boolean enabled)

        return mTarget.reportFullscreenMode(enabled);
    
public booleansendKeyEvent(android.view.KeyEvent event)

        return mTarget.sendKeyEvent(event);
    
public booleansetComposingText(java.lang.CharSequence text, int newCursorPosition)

        return mTarget.setComposingText(text, newCursorPosition);
    
public booleansetSelection(int start, int end)

        return mTarget.setSelection(start, end);
    
public voidsetTarget(InputConnection target)
Change the target of the input connection.

        if (mTarget != null && !mMutable) {
            throw new SecurityException("not mutable");
        }
        mTarget = target;