public class

AlertDialog

extends Dialog
java.lang.Object
   ↳ com.neomades.ui.dialog.Dialog
     ↳ com.neomades.ui.dialog.AlertDialog

Class Overview

An alert dialog has a title, a message an only one button.

Generally used to display a message to inform the user, with only one button. This dialog will be automatically closed when the user clicks on the button.

Summary

Public Constructors
AlertDialog()
Constructs an alert dialog, without title and message.
Public Methods
void setButtonText(String text)
Sets the button text
void setButtonText(int resId)
Sets the button text.
void setDialogClickListener(DialogClickListener listener)
Sets the click listener to this dialog button.
void setMessage(String message)
Sets the message that will be displayed by this dialog
void setMessage(int resId)
Sets the message that will be displayed by this dialog
[Expand]
Inherited Methods
From class com.neomades.ui.dialog.Dialog
From class java.lang.Object

Public Constructors

public AlertDialog ()

Constructs an alert dialog, without title and message.

Public Methods

public void setButtonText (String text)

Sets the button text

Parameters
text the button text

public void setButtonText (int resId)

Sets the button text.

Parameters
resId the id of the button text

public void setDialogClickListener (DialogClickListener listener)

Sets the click listener to this dialog button.

The method onClick(View) of the listener will be called when the button is clicked (null will be passed in parameter of this method)

The type of response used for this listener is DIALOG_BUTTON_1

Parameters
listener the listener
See Also

public void setMessage (String message)

Sets the message that will be displayed by this dialog

Parameters
message the message

public void setMessage (int resId)

Sets the message that will be displayed by this dialog

Parameters
resId the id of the message