com.nqadmin.swingSet
Class SSCellEditingAdapter

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

public abstract class SSCellEditingAdapter
extends java.lang.Object
implements SSCellEditing, java.io.Serializable

SSCellEditingAdapter.java

SwingSet - Open Toolkit For Making Swing Controls Database-Aware

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

 SSCellEditingAdapter defines empty functions so that the programmer can define
 only the functions desired. Both isCellEditable() and cellUpdateRequested()
 always return true.

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

Constructor Summary
SSCellEditingAdapter()
           
 
Method Summary
 boolean cellUpdateRequested(int _row, int _column, java.lang.Object _oldValue, java.lang.Object _newValue)
          This empty implementation always returns true.
 boolean isCellEditable(int _row, int _column)
          This empty implementation always returns true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSCellEditingAdapter

public SSCellEditingAdapter()
Method Detail

isCellEditable

public boolean isCellEditable(int _row,
                              int _column)
This empty implementation always returns true. For description about the function look in SSCellEditing class.

Specified by:
isCellEditable in interface SSCellEditing
Parameters:
_row - the row to which the cell belongs.
_column - the column to which the cell belongs.
Returns:
returns true is the cell is editable else false.

cellUpdateRequested

public boolean cellUpdateRequested(int _row,
                                   int _column,
                                   java.lang.Object _oldValue,
                                   java.lang.Object _newValue)
This empty implementation always returns true. For description about the function look in SSCellEditing class.

Specified by:
cellUpdateRequested in interface SSCellEditing
Parameters:
_row - the row in which update is taking place.
_column - the column at which update is taking place.
_oldValue - the present value in the cell being edited.
_newValue - the new value entered in the cell being edited.
Returns:
returns true if update should be made else false.