Ejemplo n.º 1
0
        /// <summary>Sets a click listener or a message to be sent when the button is clicked.
        ///     </summary>
        /// <remarks>
        /// Sets a click listener or a message to be sent when the button is clicked.
        /// You only need to pass one of
        /// <code>listener</code>
        /// or
        /// <code>msg</code>
        /// .
        /// </remarks>
        /// <param name="whichButton">
        /// Which button, can be one of
        /// <see cref="android.content.DialogInterfaceClass.BUTTON_POSITIVE">android.content.DialogInterfaceClass.BUTTON_POSITIVE
        ///     </see>
        /// ,
        /// <see cref="android.content.DialogInterfaceClass.BUTTON_NEGATIVE">android.content.DialogInterfaceClass.BUTTON_NEGATIVE
        ///     </see>
        /// , or
        /// <see cref="android.content.DialogInterfaceClass.BUTTON_NEUTRAL">android.content.DialogInterfaceClass.BUTTON_NEUTRAL
        ///     </see>
        /// </param>
        /// <param name="text">The text to display in positive button.</param>
        /// <param name="listener">
        /// The
        /// <see cref="android.content.DialogInterfaceClass.OnClickListener">android.content.DialogInterfaceClass.OnClickListener
        ///     </see>
        /// to use.
        /// </param>
        /// <param name="msg">
        /// The
        /// <see cref="android.os.Message">android.os.Message</see>
        /// to be sent when clicked.
        /// </param>
        public virtual void setButton(int whichButton, java.lang.CharSequence text, android.content.DialogInterfaceClass
                                      .OnClickListener listener, android.os.Message msg)
        {
            if (msg == null && listener != null)
            {
                msg = mHandler.obtainMessage(whichButton, listener);
            }
            switch (whichButton)
            {
            case android.content.DialogInterfaceClass.BUTTON_POSITIVE:
            {
                mButtonPositiveText    = text;
                mButtonPositiveMessage = msg;
                break;
            }

            case android.content.DialogInterfaceClass.BUTTON_NEGATIVE:
            {
                mButtonNegativeText    = text;
                mButtonNegativeMessage = msg;
                break;
            }

            case android.content.DialogInterfaceClass.BUTTON_NEUTRAL:
            {
                mButtonNeutralText    = text;
                mButtonNeutralMessage = msg;
                break;
            }

            default:
            {
                throw new System.ArgumentException("Button does not exist");
            }
            }
        }
Ejemplo n.º 2
0
 public virtual android.app.AlertDialog.Builder setSingleChoiceItems(java.lang.CharSequence
                                                                     [] items, int checkedItem, android.content.DialogInterfaceClass.OnClickListener
                                                                     listener)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 3
0
 public virtual android.app.AlertDialog.Builder setSingleChoiceItems(android.widget.ListAdapter
                                                                     adapter, int checkedItem, android.content.DialogInterfaceClass.OnClickListener
                                                                     listener)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 4
0
 public virtual android.app.AlertDialog.Builder setSingleChoiceItems(android.database.Cursor
                                                                     cursor, int checkedItem, string labelColumn, android.content.DialogInterfaceClass
                                                                     .OnClickListener listener)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 5
0
 public virtual android.app.AlertDialog.Builder setCursor(android.database.Cursor
                                                          cursor, android.content.DialogInterfaceClass.OnClickListener listener, string labelColumn
                                                          )
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 6
0
 public virtual android.app.AlertDialog.Builder setItems(int itemsId, android.content.DialogInterfaceClass
                                                         .OnClickListener listener)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 7
0
 public virtual android.app.AlertDialog.Builder setNeutralButton(java.lang.CharSequence
                                                                 text, android.content.DialogInterfaceClass.OnClickListener listener)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 8
0
 public virtual void setButton3(java.lang.CharSequence text, android.content.DialogInterfaceClass
                                .OnClickListener listener)
 {
     throw new System.NotImplementedException();
 }