Package com.xffffff.wellfed.common
Class DeleteButton
- java.lang.Object
-
- com.xffffff.wellfed.common.DeleteButton
-
- All Implemented Interfaces:
android.view.View.OnClickListener
public class DeleteButton extends java.lang.Object implements android.view.View.OnClickListener
The DeleteButton class attaches an OnClickListener to a Button that opens a deletion confirmation dialog.
-
-
Constructor Summary
Constructors Constructor Description DeleteButton(android.content.Context context, android.view.View view, java.lang.String title, ConfirmDialog.OnConfirmListener onConfirmListener)
Constructs a DeleteButton
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onClick(android.view.View view)
Shows the DeleteDialog when the button is clicked
-
-
-
Constructor Detail
-
DeleteButton
public DeleteButton(android.content.Context context, android.view.View view, java.lang.String title, ConfirmDialog.OnConfirmListener onConfirmListener)
Constructs a DeleteButton- Parameters:
context
- the contextview
- the viewtitle
- the titleonConfirmListener
- the OnConfirmListener
-
-