public abstract class AbstractListenerWrapper
extends java.lang.Object
| Constructor and Description |
|---|
AbstractListenerWrapper(MaterialDialog dialog,
int buttonType)
Creates a new wrapper, which implements a specific listener interface of a dialog's
buttonType or list item, in order to delegate the method calls to an encapsulated listener of
another type.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
attemptCloseDialog()
Attempts to close the dialog depending on the type of the buttonType or list view, the
listener belongs to.
|
protected int |
getButtonType()
Returns the type of the button or list item, the listener belongs to.
|
protected MaterialDialog |
getDialog()
Returns the dialog, the listener belongs to.
|
public AbstractListenerWrapper(MaterialDialog dialog, int buttonType)
dialog - The dialog, the listener should belong to, as an instance of the class AlertDialog. The dialog may not be nullbuttonType - The type of the button or list item, the listener belongs to, as an Integer
valueprotected final void attemptCloseDialog()
protected final MaterialDialog getDialog()
MaterialDialogprotected final int getButtonType()
Integer
value