Lines Matching refs:listener

225      * Set a listener to be invoked when the positive button of the dialog is pressed.
227 * @param whichButton Which button to set the listener on, can be one of
232 * @param listener The {@link DialogInterface.OnClickListener} to use.
234 public void setButton(int whichButton, CharSequence text, OnClickListener listener) {
235 mAlert.setButton(whichButton, text, listener, null);
266 * Set a listener to be invoked when button 1 of the dialog is pressed.
269 * @param listener The {@link DialogInterface.OnClickListener} to use.
275 public void setButton(CharSequence text, final OnClickListener listener) {
276 setButton(BUTTON_POSITIVE, text, listener);
280 * Set a listener to be invoked when button 2 of the dialog is pressed.
282 * @param listener The {@link DialogInterface.OnClickListener} to use.
288 public void setButton2(CharSequence text, final OnClickListener listener) {
289 setButton(BUTTON_NEGATIVE, text, listener);
293 * Set a listener to be invoked when button 3 of the dialog is pressed.
295 * @param listener The {@link DialogInterface.OnClickListener} to use.
301 public void setButton3(CharSequence text, final OnClickListener listener) {
302 setButton(BUTTON_NEUTRAL, text, listener);
480 * Set a listener to be invoked when the positive button of the dialog is pressed.
482 * @param listener The {@link DialogInterface.OnClickListener} to use.
486 public Builder setPositiveButton(int textId, final OnClickListener listener) {
488 P.mPositiveButtonListener = listener;
493 * Set a listener to be invoked when the positive button of the dialog is pressed.
495 * @param listener The {@link DialogInterface.OnClickListener} to use.
499 public Builder setPositiveButton(CharSequence text, final OnClickListener listener) {
501 P.mPositiveButtonListener = listener;
506 * Set a listener to be invoked when the negative button of the dialog is pressed.
508 * @param listener The {@link DialogInterface.OnClickListener} to use.
512 public Builder setNegativeButton(int textId, final OnClickListener listener) {
514 P.mNegativeButtonListener = listener;
519 * Set a listener to be invoked when the negative button of the dialog is pressed.
521 * @param listener The {@link DialogInterface.OnClickListener} to use.
525 public Builder setNegativeButton(CharSequence text, final OnClickListener listener) {
527 P.mNegativeButtonListener = listener;
532 * Set a listener to be invoked when the neutral button of the dialog is pressed.
534 * @param listener The {@link DialogInterface.OnClickListener} to use.
538 public Builder setNeutralButton(int textId, final OnClickListener listener) {
540 P.mNeutralButtonListener = listener;
545 * Set a listener to be invoked when the neutral button of the dialog is pressed.
547 * @param listener The {@link DialogInterface.OnClickListener} to use.
551 public Builder setNeutralButton(CharSequence text, final OnClickListener listener) {
553 P.mNeutralButtonListener = listener;
590 * selected item via the supplied listener. This should be an array type i.e. R.array.foo
594 public Builder setItems(int itemsId, final OnClickListener listener) {
596 P.mOnClickListener = listener;
602 * selected item via the supplied listener.
606 public Builder setItems(CharSequence[] items, final OnClickListener listener) {
608 P.mOnClickListener = listener;
615 * selected item via the supplied listener.
618 * @param listener The listener that will be called when an item is clicked.
622 public Builder setAdapter(final ListAdapter adapter, final OnClickListener listener) {
624 P.mOnClickListener = listener;
631 * selected item via the supplied listener.
634 * @param listener The listener that will be called when an item is clicked.
640 public Builder setCursor(final Cursor cursor, final OnClickListener listener,
644 P.mOnClickListener = listener;
650 * you will be notified of the selected item via the supplied listener.
660 * @param listener notified when an item on the list is clicked. The dialog will not be
667 final OnMultiChoiceClickListener listener) {
669 P.mOnCheckboxClickListener = listener;
677 * you will be notified of the selected item via the supplied listener.
686 * @param listener notified when an item on the list is clicked. The dialog will not be
693 final OnMultiChoiceClickListener listener) {
695 P.mOnCheckboxClickListener = listener;
703 * you will be notified of the selected item via the supplied listener.
714 * @param listener notified when an item on the list is clicked. The dialog will not be
721 final OnMultiChoiceClickListener listener) {
723 P.mOnCheckboxClickListener = listener;
732 * the selected item via the supplied listener. This should be an array type i.e.
739 * @param listener notified when an item on the list is clicked. The dialog will not be
746 final OnClickListener listener) {
748 P.mOnClickListener = listener;
756 * the selected item via the supplied listener. The list will have a check mark displayed to
764 * @param listener notified when an item on the list is clicked. The dialog will not be
771 final OnClickListener listener) {
773 P.mOnClickListener = listener;
782 * the selected item via the supplied listener. The list will have a check mark displayed to
788 * @param listener notified when an item on the list is clicked. The dialog will not be
794 public Builder setSingleChoiceItems(CharSequence[] items, int checkedItem, final OnClickListener listener) {
796 P.mOnClickListener = listener;
804 * the selected item via the supplied listener. The list will have a check mark displayed to
810 * @param listener notified when an item on the list is clicked. The dialog will not be
816 public Builder setSingleChoiceItems(ListAdapter adapter, int checkedItem, final OnClickListener listener) {
818 P.mOnClickListener = listener;
825 * Sets a listener to be invoked when an item in the list is selected.
827 * @param listener The listener to be invoked.
832 public Builder setOnItemSelectedListener(final AdapterView.OnItemSelectedListener listener) {
833 P.mOnItemSelectedListener = listener;