com.nqadmin.swingSet
Class SSDataGridAdapter

java.lang.Object
  extended by com.nqadmin.swingSet.SSDataGridAdapter
All Implemented Interfaces:
SSDataGridHandler, java.io.Serializable

public abstract class SSDataGridAdapter
extends java.lang.Object
implements SSDataGridHandler, java.io.Serializable

SSDataGridAdapter.java

SwingSet - Open Toolkit For Making Swing Controls Database-Aware

 This abstract class is provided as a convenience for creating
 custom SSDataGridHandler objects. Extend this class to create a 
 SSDataGridHandler implementation.

 SSDataGridHandlerImpl defines empty functions so that the programmer can define
 only the functions desired.

Version:
$Revision$
Author:
$Author$
See Also:
Serialized Form

Constructor Summary
SSDataGridAdapter()
           
 
Method Summary
 boolean allowDeletion(int _row)
          This empty implementation always returns true.
 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 perform pre-deletion operations.
 void performPreInsertOps(int _row)
          Method to perform pre-insertion operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSDataGridAdapter

public SSDataGridAdapter()
Method Detail

allowDeletion

public boolean allowDeletion(int _row)
This empty implementation always returns true. For description about the function look in SSRowDeletion class.

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

performPreDeletionOps

public void performPreDeletionOps(int _row)
Method to perform pre-deletion operations.

Specified by:
performPreDeletionOps in interface SSDataGridHandler
Parameters:
_row - position of data grid row being deleted.

performPostDeletionOps

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

Specified by:
performPostDeletionOps in interface SSDataGridHandler
Parameters:
_row - the position of deleted row in the data grid.

performPreInsertOps

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

Specified by:
performPreInsertOps in interface SSDataGridHandler
Parameters:
_row - position of new row in the data grid.

performPostInsertOps

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

Specified by:
performPostInsertOps in interface SSDataGridHandler
Parameters:
_row - position of added row in the data grid.