edu.udo.cs.yale.gui.attributeeditor
Class CellRenderers

java.lang.Object
  extended by edu.udo.cs.yale.gui.attributeeditor.CellRenderers

public class CellRenderers
extends java.lang.Object

A generic collection class for cell renderers. This class manages a vector containing the cell renderers for each row, i.e. a vector of a vector of cell renderers.

Version:
$Id: CellRenderers.java,v 1.2 2006/08/03 14:39:30 ingomierswa Exp $
Author:
Ingo Mierswa

Field Summary
private  java.util.List<java.util.List<javax.swing.table.TableCellRenderer>> cellRenderers
           
 
Constructor Summary
CellRenderers(int size)
          Creates a new cell renderer collection.
 
Method Summary
 void add(int row, javax.swing.table.TableCellRenderer renderer)
          Adds a new cell renderer in the given row.
 javax.swing.table.TableCellRenderer get(int row, int column)
          Returns the cell renderer in the given row and column.
 int getSize()
          Returns the number of rows.
 int getSize(int i)
          Returns the size of the i-th row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cellRenderers

private java.util.List<java.util.List<javax.swing.table.TableCellRenderer>> cellRenderers
Constructor Detail

CellRenderers

public CellRenderers(int size)
Creates a new cell renderer collection.

Method Detail

add

public void add(int row,
                javax.swing.table.TableCellRenderer renderer)
Adds a new cell renderer in the given row.


get

public javax.swing.table.TableCellRenderer get(int row,
                                               int column)
Returns the cell renderer in the given row and column.


getSize

public int getSize()
Returns the number of rows.


getSize

public int getSize(int i)
Returns the size of the i-th row.



Copyright © 2001-2006