| java.lang.Object javax.swing.table.TableColumn net.sf.jga.swing.GenericTableColumn
GenericTableColumn | public class GenericTableColumn extends TableColumn (Code) | | Column class used in conjuction with GenericTableModel.
Copyright © 2003-2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn) Builds a read-only column that will apply the given functor to objects of
the given class to get the value of specific cells. | public | GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn) Builds a potentially editable column that will apply the given functors to
objects of the given class to get and set the value of specific cells. | public | GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, UnaryFunctor<C, String> formatter, UnaryFunctor<String, C> parser) Builds a potentially editable column that will apply the given functors
to objects of the given class to get and set the value of specific cells.
The setFn can be null: if it is, then this column will not be editable.
The formatter will be used to build a GenericTableCellRenderer for the
column if it is non-null. | public | GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, TableCellRenderer renderer, TableCellEditor editor) Builds a potentially editable column that will apply the given functors
to objects of the given class to get and set the value of specific cells.
The setFn can be null: if it is, then this column will not be editable.
Either the renderer or editor may be null: the Table will supply the
default renderer/editor in this case. |
serialVersionUID | final static long serialVersionUID(Code) | | |
GenericTableColumn | public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn)(Code) | | Builds a read-only column that will apply the given functor to objects of
the given class to get the value of specific cells. A default table
renderer will be used, as defined by the Table that uses this column.
|
GenericTableColumn | public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn)(Code) | | Builds a potentially editable column that will apply the given functors to
objects of the given class to get and set the value of specific cells.
The setFn can be null: if it is, then this column will not be editable.
A default table renderer and editor will be used, as defined by the Table
that uses this column.
|
GenericTableColumn | public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, UnaryFunctor<C, String> formatter, UnaryFunctor<String, C> parser)(Code) | | Builds a potentially editable column that will apply the given functors
to objects of the given class to get and set the value of specific cells.
The setFn can be null: if it is, then this column will not be editable.
The formatter will be used to build a GenericTableCellRenderer for the
column if it is non-null. If formatter, parser, and setFn are all
non-null, then a GenericCellEditor will be built for this column. If any
of these fields are null, the the Table that uses this column will supply
the default renderer/editor.
|
GenericTableColumn | public GenericTableColumn(Class<C> coltype, UnaryFunctor<R, C> getFn, BinaryFunctor<R, C, C> setFn, TableCellRenderer renderer, TableCellEditor editor)(Code) | | Builds a potentially editable column that will apply the given functors
to objects of the given class to get and set the value of specific cells.
The setFn can be null: if it is, then this column will not be editable.
Either the renderer or editor may be null: the Table will supply the
default renderer/editor in this case. Note that if the setFn is null,
there will be no editor configured (as it would never be called anyway).
|
getValueAt | public C getValueAt(R rowvalue)(Code) | | |
isEditable | public boolean isEditable()(Code) | | |
setValueAt | public void setValueAt(R rowvalue, Object obj)(Code) | | |
|
|