Exemple #1
0
        static void n_OnPrepareSubMenu_Lcom_actionbarsherlock_view_SubMenu_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
        {
            ActionProvider __this = Java.Lang.Object.GetObject <ActionProvider> (native__this, JniHandleOwnership.DoNotTransfer);

            global::ActionBar_Sherlock.View.ISubMenu p0 = Java.Lang.Object.GetObject <global::ActionBar_Sherlock.View.ISubMenu> (native_p0, JniHandleOwnership.DoNotTransfer);
            __this.OnPrepareSubMenu(p0);
        }
Exemple #2
0
 public static global::ActionBar_Sherlock.View.ISubMenu AddSubMenu(this ActionBar_Sherlock.View.IMenu self, string p0)
 {
     Java.Lang.String jls_p0 = p0 == null ? null : new Java.Lang.String(p0);
     global::ActionBar_Sherlock.View.ISubMenu __result = self.AddSubMenu(jls_p0);
     if (jls_p0 != null)
     {
         jls_p0.Dispose();
     }
     return(__result);
 }
Exemple #3
0
 public static global::ActionBar_Sherlock.View.ISubMenu AddSubMenu(this ActionBar_Sherlock.View.IMenu self, int p0, int p1, int p2, string p3)
 {
     Java.Lang.String jls_p3 = p3 == null ? null : new Java.Lang.String(p3);
     global::ActionBar_Sherlock.View.ISubMenu __result = self.AddSubMenu(p0, p1, p2, jls_p3);
     if (jls_p3 != null)
     {
         jls_p3.Dispose();
     }
     return(__result);
 }
Exemple #4
0
        public global::ActionBar_Sherlock.View.ISubMenu AddSubMenu(global::Java.Lang.ICharSequence p0)
        {
            if (id_addSubMenu_Ljava_lang_CharSequence_ == IntPtr.Zero)
            {
                id_addSubMenu_Ljava_lang_CharSequence_ = JNIEnv.GetMethodID(class_ref, "addSubMenu", "(Ljava/lang/CharSequence;)Lcom/actionbarsherlock/view/SubMenu;");
            }
            IntPtr native_p0 = CharSequence.ToLocalJniHandle(p0);

            global::ActionBar_Sherlock.View.ISubMenu __ret = Java.Lang.Object.GetObject <global::ActionBar_Sherlock.View.ISubMenu> (JNIEnv.CallObjectMethod(Handle, id_addSubMenu_Ljava_lang_CharSequence_, new JValue(native_p0)), JniHandleOwnership.TransferLocalRef);
            JNIEnv.DeleteLocalRef(native_p0);
            return(__ret);
        }
Exemple #5
0
        public virtual void OnPrepareSubMenu(global::ActionBar_Sherlock.View.ISubMenu p0)
        {
            if (id_onPrepareSubMenu_Lcom_actionbarsherlock_view_SubMenu_ == IntPtr.Zero)
            {
                id_onPrepareSubMenu_Lcom_actionbarsherlock_view_SubMenu_ = JNIEnv.GetMethodID(class_ref, "onPrepareSubMenu", "(Lcom/actionbarsherlock/view/SubMenu;)V");
            }

            if (GetType() == ThresholdType)
            {
                JNIEnv.CallVoidMethod(Handle, id_onPrepareSubMenu_Lcom_actionbarsherlock_view_SubMenu_, new JValue(p0));
            }
            else
            {
                JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, id_onPrepareSubMenu_Lcom_actionbarsherlock_view_SubMenu_, new JValue(p0));
            }
        }