com.cleancode.swing
Interface JTableCellChecker


public interface JTableCellChecker

Provides a mechanism to separate editability of a cell from the table model. This interface provides a callback mechanism which may be specified in a table model so that the logic which determines whether a cell is editable or not may be separate from the table model.

Since:
CleanCode 0.9
Version:
$Revision: 9 $
Author:
Michael Sorens

Field Summary
static String VERSION
          Current version of this class.
 
Method Summary
 boolean cellChecker(AbstractTableModel model, int rowIndex, int colIndex)
          Determines whether the specified table cell is editable.
 

Field Detail

VERSION

static final String VERSION
Current version of this class.

Method Detail

cellChecker

boolean cellChecker(AbstractTableModel model,
                    int rowIndex,
                    int colIndex)
Determines whether the specified table cell is editable.

Parameters:
model - table model whose cell is to be checked
rowIndex - row index of the cell
colIndex - column index of the cell
Returns:
boolean indicating whether cell is editable


CleanCode Java Libraries Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 Get CleanCode at SourceForge.net. Fast, secure and Free Open Source software downloads