com.nqadmin.swingSet
Interface SSDataGridHandler

All Known Implementing Classes:
SSDataGridAdapter

public interface SSDataGridHandler

SSDataGridHandler.java

SwingSet - Open Toolkit For Making Swing Controls Database-Aware

 The SSDataGridHandler interface specifies set of methods that can be used to
 determine whether or not a given row can be deleted, and operation to be 
 performed before and after deletion or insertion of a record.

Version:
$Revision$
Author:
$Author$

Method Summary
 boolean allowDeletion(int _row)
          Returns true if the row _row can be deleted SSTableModel calls this function if the row deletion is requested (If SSDataGridHandler is implemented).
 void performPostDeletionOps(int _row)
          Method to perform post-deletion operations.
 void performPostInsertOps(int _row)
          Method to perform post-insertion operations.
 void performPreDeletionOps(int _row)
          Method to specify any pre-deletion operations.
 void performPreInsertOps(int _row)
          Method to perform pre-insertion operations.
 

Method Detail

allowDeletion

boolean allowDeletion(int _row)
Returns true if the row _row can be deleted SSTableModel calls this function if the row deletion is requested (If SSDataGridHandler is implemented).

Parameters:
_row - the row number in data grid.
Returns:
returns true is the row can be deleted else false.

performPreDeletionOps

void performPreDeletionOps(int _row)
Method to specify any pre-deletion operations.

Parameters:
_row - position of data grid row being deleted.

performPostDeletionOps

void performPostDeletionOps(int _row)
Method to perform post-deletion operations.

Parameters:
_row - position of deleted row in the data grid.

performPreInsertOps

void performPreInsertOps(int _row)
Method to perform pre-insertion operations.

Parameters:
_row - position of new row in the data grid.

performPostInsertOps

void performPostInsertOps(int _row)
Method to perform post-insertion operations.

Parameters:
_row - position of added grid row.