FileDocCategorySizeDatePackage
WindowCallbackWrapper.javaAPI DocAndroid 5.1 API4048Thu Mar 12 22:22:10 GMT 2015android.view

WindowCallbackWrapper

public class WindowCallbackWrapper extends Object implements Window.Callback
A simple decorator stub for Window.Callback that passes through any calls to the wrapped instance as a base implementation. Call super.foo() to call into the wrapped callback for any subclasses.
hide
for internal use

Fields Summary
private Window.Callback
mWrapped
Constructors Summary
public WindowCallbackWrapper(Window.Callback wrapped)

        if (wrapped == null) {
            throw new IllegalArgumentException("Window callback may not be null");
        }
        mWrapped = wrapped;
    
Methods Summary
public booleandispatchGenericMotionEvent(MotionEvent event)

        return mWrapped.dispatchGenericMotionEvent(event);
    
public booleandispatchKeyEvent(KeyEvent event)

        return mWrapped.dispatchKeyEvent(event);
    
public booleandispatchKeyShortcutEvent(KeyEvent event)

        return mWrapped.dispatchKeyShortcutEvent(event);
    
public booleandispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent event)

        return mWrapped.dispatchPopulateAccessibilityEvent(event);
    
public booleandispatchTouchEvent(MotionEvent event)

        return mWrapped.dispatchTouchEvent(event);
    
public booleandispatchTrackballEvent(MotionEvent event)

        return mWrapped.dispatchTrackballEvent(event);
    
public voidonActionModeFinished(ActionMode mode)

        mWrapped.onActionModeFinished(mode);
    
public voidonActionModeStarted(ActionMode mode)

        mWrapped.onActionModeStarted(mode);
    
public voidonAttachedToWindow()

        mWrapped.onAttachedToWindow();
    
public voidonContentChanged()

        mWrapped.onContentChanged();
    
public booleanonCreatePanelMenu(int featureId, Menu menu)

        return mWrapped.onCreatePanelMenu(featureId, menu);
    
public ViewonCreatePanelView(int featureId)

        return mWrapped.onCreatePanelView(featureId);
    
public voidonDetachedFromWindow()

        mWrapped.onDetachedFromWindow();
    
public booleanonMenuItemSelected(int featureId, MenuItem item)

        return mWrapped.onMenuItemSelected(featureId, item);
    
public booleanonMenuOpened(int featureId, Menu menu)

        return mWrapped.onMenuOpened(featureId, menu);
    
public voidonPanelClosed(int featureId, Menu menu)

        mWrapped.onPanelClosed(featureId, menu);
    
public booleanonPreparePanel(int featureId, View view, Menu menu)

        return mWrapped.onPreparePanel(featureId, view, menu);
    
public booleanonSearchRequested()

        return mWrapped.onSearchRequested();
    
public voidonWindowAttributesChanged(WindowManager.LayoutParams attrs)

        mWrapped.onWindowAttributesChanged(attrs);
    
public voidonWindowFocusChanged(boolean hasFocus)

        mWrapped.onWindowFocusChanged(hasFocus);
    
public ActionModeonWindowStartingActionMode(ActionMode.Callback callback)

        return mWrapped.onWindowStartingActionMode(callback);