package com.heaven7.android.component.fragment;

import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;

/**
 * Created by heaven7 on 2016/5/24.
 */
public abstract class MenuCallback extends BaseFragmentCallback0 {

    protected abstract void onCreateOptionsMenu(Menu menu, MenuInflater inflater);

    protected abstract boolean onOptionsItemSelected(MenuItem item);

    protected abstract void onPrepareOptionsMenu(Menu menu);

    protected abstract void onOptionsMenuClosed(Menu menu);

    protected abstract void onDestroyOptionsMenu();

    protected abstract boolean onContextItemSelected(MenuItem item);

    protected abstract boolean onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo);
}

@@ -314,32 +314,24 @@
   protected 
-abstract
  void onCrea
@@ -377,17 +377,24 @@
 nflater)
-;
+%7B%0A%0A    %7D
 %0A%0A    pr
@@ -397,32 +397,24 @@
   protected 
-abstract
  boolean onO
@@ -438,33 +438,62 @@
 d(MenuItem item)
-;
+%7B%0A         return false;%0A    %7D
 %0A%0A    protected 
@@ -488,32 +488,24 @@
   protected 
-abstract
  void onPrep
@@ -521,33 +521,40 @@
 sMenu(Menu menu)
-;
+%7B%0A%0A    %7D
 %0A%0A    protected 
@@ -549,32 +549,24 @@
   protected 
-abstract
  void onOpti
@@ -589,17 +589,24 @@
 nu menu)
-;
+%7B%0A%0A    %7D
 %0A%0A    pr
@@ -613,24 +613,16 @@
 otected 
-abstract
  void on
@@ -641,17 +641,24 @@
 nsMenu()
-;
+%7B%0A%0A    %7D
 %0A%0A    pr
@@ -661,32 +661,24 @@
   protected 
-abstract
  boolean onC
@@ -710,17 +710,45 @@
 em item)
-;
+%7B%0A        return false;%0A    %7D
 %0A%0A    pr
@@ -755,24 +755,16 @@
 otected 
-abstract
  boolean
@@ -847,12 +847,40 @@
 enuInfo)
-;
+%7B%0A        return false;%0A    %7D
 %0A%7D%0A

add lib android-component (current only have fragment relative)