dyntable
Interface CellAttribute

All Known Implementing Classes:
DefaultCellAttribute

public interface CellAttribute

$Id: CellAttribute.java,v 1.0 2005/09/25 jDynTable@gmx.de $
The CellAttribute Interface is implemented by DefaultCellAttribute and used by many of the table classes. It provides some standard methods concerning table cell attributes.

Version:
$Revision: 1.0 $
Author:
$Author: jdyntable@gmx.de $

Method Summary
 void addColumn()
          Adds column to table.
 void addRow()
          Adds column to table.
 void combine(int[] rows, int[] columns)
          Combines cells
 java.awt.Dimension getSize()
          Getter method
 void insertRow(int row)
          Adds column to table at a certain position.
 boolean isEditable(int row, int column)
          Returns editability of a cell
 void setNotEditable(int row, int column)
          Set cell uneditable.
 void setSize(java.awt.Dimension size)
          Setter method
 void split(int row, int column)
          The opposite of combine.
 

Method Detail

addColumn

public void addColumn()
Adds column to table.
Attention: Changing things in CellAttribute must always be synchronized to Table data


addRow

public void addRow()
Adds column to table.
Attention: Changing things in CellAttribute must always be synchronized to Table data


insertRow

public void insertRow(int row)
Adds column to table at a certain position.
Attention: Changing things in CellAttribute must always be synchronized to Table data

Parameters:
row - Row where new row is to be inserted at.

getSize

public java.awt.Dimension getSize()
Getter method

Returns:
Dimension of the table (column size & row size)

setSize

public void setSize(java.awt.Dimension size)
Setter method

Parameters:
size - new Dimension of the table (column size & row size)

combine

public void combine(int[] rows,
                    int[] columns)
Combines cells

Parameters:
rows - Array of integers with Rows that are to be combined
columns - Array of integers with Columns that are to be combined

split

public void split(int row,
                  int column)
The opposite of combine. Both parameters together define a cell that is to be split.

Parameters:
row - integer with Row
column - integer with Column

setNotEditable

public void setNotEditable(int row,
                           int column)
Set cell uneditable. Both parameters together define the cell that is not editable.

Parameters:
row - integer with Row
column - integer with Column

isEditable

public boolean isEditable(int row,
                          int column)
Returns editability of a cell

Parameters:
row - integer with Row
column - integer with Column
Returns:
true if cell is editable