public final class AlertDialogNotification extends AbstractUserNotification
AlertDialog
.Constructor and Description |
---|
AlertDialogNotification() |
AlertDialogNotification(NotificationConfiguration notificationConfiguration) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getMessage()
Returns the message of the AlertDialog.
|
ButtonAction |
getNegativeButtonAction()
Returns the Action to carry out when the user selects the negative button.
|
java.lang.String |
getNegativeButtonText()
Returns the caption of the negative button.
|
ButtonAction |
getNeutralButtonAction()
Returns the Action to carry out when the user selects the neutral button.
|
java.lang.String |
getNeutralButtonText()
Returns the caption of the neutral button.
|
ButtonAction |
getPositiveButtonAction()
Returns the Action to carry out when the user selects the positive button.
|
java.lang.String |
getPositiveButtonText()
Returns the caption of the positive button.
|
java.lang.String |
getTitle()
Returns the title of the AlertDialog.
|
int |
hashCode() |
boolean |
isModal()
Returns if the AlertDialog is modal.
|
void |
setMessage(java.lang.String message)
Sets the message of the AlertDialog.
|
void |
setModal(boolean modal)
Sets if the AlertDialog is modal.
|
void |
setNegativeButtonAction(ButtonAction negativeButtonAction)
Sets the Action to carry out when the user selects the negative button.
|
void |
setNegativeButtonText(java.lang.String negativeButtonText)
Sets the caption of the negative button.
|
void |
setNeutralButtonAction(ButtonAction neutralButtonAction)
Sets the Action to carry out when the user selects the neutral button.
|
void |
setNeutralButtonText(java.lang.String neutralButtonText)
Sets the caption of the neutral button.
|
void |
setPositiveButtonAction(ButtonAction positiveButtonAction)
Sets the Action to carry out when the user selects the positive button.
|
void |
setPositiveButtonText(java.lang.String positiveButtonText)
Sets the caption of the positive button.
|
void |
setTitle(java.lang.String title)
Sets the title of the AlertDialog.
|
void |
show(android.content.Context context)
Shows the Notification to the user.
|
java.lang.String |
toString() |
getNotificationConfiguration
public AlertDialogNotification()
public AlertDialogNotification(NotificationConfiguration notificationConfiguration)
public void show(android.content.Context context)
UserNotification
context
- the Context
of the app.public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title of the AlertDialog.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message of the AlertDialogpublic java.lang.String getPositiveButtonText()
public void setPositiveButtonText(java.lang.String positiveButtonText)
null
the button won't be shown.positiveButtonText
- the caption of the positive buttonpublic java.lang.String getNegativeButtonText()
public void setNegativeButtonText(java.lang.String negativeButtonText)
null
the button won't be shown.negativeButtonText
- the caption of the negative buttonpublic ButtonAction getPositiveButtonAction()
public void setPositiveButtonAction(ButtonAction positiveButtonAction)
positiveButtonAction
- the Action to carry out when the user selects the positive buttonpublic ButtonAction getNegativeButtonAction()
public void setNegativeButtonAction(ButtonAction negativeButtonAction)
negativeButtonAction
- the Action to carry out when the user selects the negative buttonpublic boolean isModal()
public void setModal(boolean modal)
modal
- true if the AlertDialog is modal, else falsepublic java.lang.String getNeutralButtonText()
public void setNeutralButtonText(java.lang.String neutralButtonText)
null
the button won't be shown.neutralButtonText
- the caption of the neutral buttonpublic ButtonAction getNeutralButtonAction()
public void setNeutralButtonAction(ButtonAction neutralButtonAction)
neutralButtonAction
- the Action to carry out when the user selects the neutral buttonpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class AbstractUserNotification
public int hashCode()
hashCode
in class AbstractUserNotification