Class DeleteAdapter
java.lang.Object
org.eclipse.nebula.widgets.compositetable.DeleteAdapter
- All Implemented Interfaces:
IDeleteHandler
public class DeleteAdapter extends java.lang.Object implements IDeleteHandler
This adapter class provides default implementations for the
methods described by the
IDeleteHandler
interface.
Classes that wish to deal with delete events from the CompositeTable can extend this class and override only the methods which they are interested in.
- See Also:
IDeleteHandler
-
Constructor Summary
Constructors Constructor Description DeleteAdapter()
-
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.
-
Constructor Details
-
DeleteAdapter
public DeleteAdapter()
-
-
Method Details
-
canDelete
public 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.- Specified by:
canDelete
in interfaceIDeleteHandler
- Parameters:
rowInCollection
- The row under consideration for deletion.- Returns:
- true if the row can be deleted; false otherwise.
-
deleteRow
public void deleteRow(int rowInCollection)Method deleteRow. This method is called when the user has requested to delete the specified row.- Specified by:
deleteRow
in interfaceIDeleteHandler
- Parameters:
rowInCollection
- The row in the collection to delete (0-based).
-
rowDeleted
public void rowDeleted(int rowInCollection)Method rowDeleted. This method is called after the specified row has been successfully deleted.- Specified by:
rowDeleted
in interfaceIDeleteHandler
- Parameters:
rowInCollection
- The row in the collection that was deleted (0-based).
-