Lines Matching defs:listener

211      * Sets a listener to be invoked when the positive button of the dialog is pressed. This method
214 * @param whichButton Which button to set the listener on, can be one of
219 * @param listener The {@link DialogInterface.OnClickListener} to use.
221 public void setButton(int whichButton, CharSequence text, OnClickListener listener) {
222 mAlert.setButton(whichButton, text, listener, null);
444 * Set a listener to be invoked when the positive button of the dialog is pressed.
446 * @param listener The {@link DialogInterface.OnClickListener} to use.
450 public Builder setPositiveButton(@StringRes int textId, final OnClickListener listener) {
452 P.mPositiveButtonListener = listener;
457 * Set a listener to be invoked when the positive button of the dialog is pressed.
459 * @param listener The {@link DialogInterface.OnClickListener} to use.
463 public Builder setPositiveButton(CharSequence text, final OnClickListener listener) {
465 P.mPositiveButtonListener = listener;
470 * Set a listener to be invoked when the negative button of the dialog is pressed.
472 * @param listener The {@link DialogInterface.OnClickListener} to use.
476 public Builder setNegativeButton(@StringRes int textId, final OnClickListener listener) {
478 P.mNegativeButtonListener = listener;
483 * Set a listener to be invoked when the negative button of the dialog is pressed.
485 * @param listener The {@link DialogInterface.OnClickListener} to use.
489 public Builder setNegativeButton(CharSequence text, final OnClickListener listener) {
491 P.mNegativeButtonListener = listener;
496 * Set a listener to be invoked when the neutral button of the dialog is pressed.
498 * @param listener The {@link DialogInterface.OnClickListener} to use.
502 public Builder setNeutralButton(@StringRes int textId, final OnClickListener listener) {
504 P.mNeutralButtonListener = listener;
509 * Set a listener to be invoked when the neutral button of the dialog is pressed.
511 * @param listener The {@link DialogInterface.OnClickListener} to use.
515 public Builder setNeutralButton(CharSequence text, final OnClickListener listener) {
517 P.mNeutralButtonListener = listener;
574 * selected item via the supplied listener. This should be an array type i.e. R.array.foo
578 public Builder setItems(@ArrayRes int itemsId, final OnClickListener listener) {
580 P.mOnClickListener = listener;
586 * selected item via the supplied listener.
590 public Builder setItems(CharSequence[] items, final OnClickListener listener) {
592 P.mOnClickListener = listener;
599 * selected item via the supplied listener.
602 * @param listener The listener that will be called when an item is clicked.
606 public Builder setAdapter(final ListAdapter adapter, 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.
624 public Builder setCursor(final Cursor cursor, final OnClickListener listener,
628 P.mOnClickListener = listener;
634 * you will be notified of the selected item via the supplied listener.
644 * @param listener notified when an item on the list is clicked. The dialog will not be
651 final OnMultiChoiceClickListener listener) {
653 P.mOnCheckboxClickListener = listener;
661 * you will be notified of the selected item via the supplied listener.
670 * @param listener notified when an item on the list is clicked. The dialog will not be
677 final OnMultiChoiceClickListener listener) {
679 P.mOnCheckboxClickListener = listener;
687 * you will be notified of the selected item via the supplied listener.
698 * @param listener notified when an item on the list is clicked. The dialog will not be
705 final OnMultiChoiceClickListener listener) {
707 P.mOnCheckboxClickListener = listener;
716 * the selected item via the supplied listener. This should be an array type i.e.
723 * @param listener notified when an item on the list is clicked. The dialog will not be
730 final OnClickListener listener) {
732 P.mOnClickListener = listener;
740 * the selected item via the supplied listener. The list will have a check mark displayed to
748 * @param listener notified when an item on the list is clicked. The dialog will not be
755 final OnClickListener listener) {
757 P.mOnClickListener = listener;
766 * the selected item via the supplied listener. The list will have a check mark displayed to
772 * @param listener notified when an item on the list is clicked. The dialog will not be
778 public Builder setSingleChoiceItems(CharSequence[] items, int checkedItem, final OnClickListener listener) {
780 P.mOnClickListener = listener;
788 * the selected item via the supplied listener. The list will have a check mark displayed to
794 * @param listener notified when an item on the list is clicked. The dialog will not be
800 public Builder setSingleChoiceItems(ListAdapter adapter, int checkedItem, final OnClickListener listener) {
802 P.mOnClickListener = listener;
809 * Sets a listener to be invoked when an item in the list is selected.
811 * @param listener the listener to be invoked
815 public Builder setOnItemSelectedListener(final AdapterView.OnItemSelectedListener listener) {
816 P.mOnItemSelectedListener = listener;