com.nqadmin.swingSet
Interface SSCellEditing

All Known Implementing Classes:
SSCellEditingAdapter

public interface SSCellEditing

SSCellEditing.java

SwingSet - Open Toolkit For Making Swing Controls Database-Aware

 The SSCellEditing interface specifies the methods the SSTableModel will use to
 determine whether or not a given cell can be edited or if a user-specified
 value for a cell is valid or invalid.

Version:
$Revision: 1.7 $
Author:
$Author: prasanth $

Method Summary
 boolean cellUpdateRequested(int _row, int _column, java.lang.Object _oldValue, java.lang.Object _newValue)
          This function is called when ever a update to a cell is done but before the value is updated in the database.
If the function returns false the update is cancelled, if it returns true the value will be updated in the database.
 boolean isCellEditable(int _row, int _column)
          Returns true if the cell at row _row and at column _column is editable else false.
 

Method Detail

isCellEditable

boolean isCellEditable(int _row,
                       int _column)
Returns true if the cell at row _row and at column _column is editable else false. SSTableModel first looks in to uneditable columns, if the column is not in the uneditable columns list then this function is called (If SSCellEditing is implemented).

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

boolean cellUpdateRequested(int _row,
                            int _column,
                            java.lang.Object _oldValue,
                            java.lang.Object _newValue)
This function is called when ever a update to a cell is done but before the value is updated in the database.
If the function returns false the update is cancelled, if it returns true the value will be updated in the database.

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.