public class OnClickListenerWrapper extends AbstractListenerWrapper implements android.view.View.OnClickListener
View.OnClickListener in order to
delegate the method calls to encapsulated listener of the type DialogInterface.OnClickListener.| Constructor and Description |
|---|
OnClickListenerWrapper(android.content.DialogInterface.OnClickListener listener,
boolean validate,
ValidateableDialog dialog,
int buttonType)
Creates a new wrapper, which implements the interface
View.OnClickListener
in order to delegate the method calls to encapsulated listener of the type DialogInterface.OnClickListener. |
| Modifier and Type | Method and Description |
|---|---|
void |
onClick(android.view.View v) |
attemptCloseDialog, getButtonType, getDialogpublic OnClickListenerWrapper(android.content.DialogInterface.OnClickListener listener,
boolean validate,
ValidateableDialog dialog,
int buttonType)
View.OnClickListener
in order to delegate the method calls to encapsulated listener of the type DialogInterface.OnClickListener.listener - The listener, which should be encapsulated by the wrapper, as an instance of the type
DialogInterface.OnClickListener or null, if no listener should be encapsulatedvalidate - True, if the dialog, the listener belongs to, should be validated when the listener
is called, false otherwisedialog - The dialog, the listener should belong to, as an instance of the type ValidateableDialog. The dialog may not be nullbuttonType - The type of the button or list item, the listener belongs to, as an Integer
value