Interface IDeleteHandler

All Known Implementing Classes:
DeleteAdapter

public interface IDeleteHandler
Interface IDeleteHandler. An interface for objects that can manage deletions on behalf of a CompositeTable.
  • Method Summary

    Modifier and Type Method Description
    boolean canDelete​(int rowInCollection)
    Method canDelete.
    void deleteRow​(int rowInCollection)
    Method deleteRow.
    void rowDeleted​(int rowInCollection)
    Method rowDeleted.
  • Method Details

    • canDelete

      boolean canDelete​(int rowInCollection)
      Method canDelete. This method is called to determine if the specified row can be successfully deleted. The receiver may perform whatever validation that is required If this is successful, the receiver should return true. If the object cannot (or must not) be deleted, the receiver must return false.
      Parameters:
      rowInCollection - The row under consideration for deletion.
      Returns:
      true if the row can be deleted; false otherwise.
    • deleteRow

      void deleteRow​(int rowInCollection)
      Method deleteRow. This method is called when the user has requested to delete the specified row.
      Parameters:
      rowInCollection - The row in the collection to delete (0-based).
    • rowDeleted

      void rowDeleted​(int rowInCollection)
      Method rowDeleted. This method is called after the specified row has been successfully deleted.
      Parameters:
      rowInCollection - The row in the collection that was deleted (0-based).