Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 context
        view - the view
        title - the title
        onConfirmListener - the OnConfirmListener
    • Method Detail

      • onClick

        public void onClick​(android.view.View view)
        Shows the DeleteDialog when the button is clicked
        Specified by:
        onClick in interface android.view.View.OnClickListener
        Parameters:
        view - the view