Holger's
Java API

Package com.antelmann.util.table

This package provides useful additions to TableModels and contains classes to ease development with Swing tables.

See:
          Description

Interface Summary
ObjectTableModel<T> an ObjectTableModel is a TableModel where any given row represents a certain Object value.
StyledCellRenderer.Styler  
TableCustomizer TableCustomizer is responsible for setting editors and renderer.
 

Class Summary
AbstractDialogCellEditor<T> provides an editor that always shows a dialog for editing the value.
AbstractObjectTableModel<T> implements commonly applicable concepts of an ObjectTableModel based on a simple list.
AbstractSpecialCellEditor provides some convenience stuff for the editors in this package taken from a DefaultCellEditor, but w/o the delegate stuff
CalendarCellRenderer useful to display CalendarCell objects in a CalendarTableModel
ColorDialogCellEditor provides a dialog to edit colors
ColorRenderer taken from the Java Tutorial and then modified
ConvertedObjectTableModel<X,T> allows to use an ObjectTableModel for a different type by providing a conversion
ConvertedTableModel a special model that allows converting the values before setting/getting a cell value.
CurrencyCellRenderer a renderer for displaying numbers as a currency
CustomThemeTableModel an editable theme based on a table model to be used with a JTable
DateDialogCellEditor provides a dialog with a MyJCalendar component for selecting the date upon edit.
FileTableModel a table model that enables importing/exporting from/to a CSV file easily.
FilteredTableModel a wrapper around a TableModel allowing filtering
FontCellEditor  
FormattedCellEditor edits cells flexibly while the return value is the actual Type, not a String (like it is with a DefaultCellEditor).
FormattedCellRenderer a renderer for customizing the formatting of values based on a Format.
FormattedCellRenderer.ToStringFormat simply converts to strings; used internally by the enclosing class if no other format was given
FormDialogCellEditor<T> uses a FormDialog instead of a JOptionPane to support more complex editing
JFilteredTableComponent a component that filters and sorts a given TableModel.
JTableFilterTextField uses a SimpleTableRowFilter to apply filtering capabilities to a FilteredTableModel If you want to be notified upon changes of the model before it's actually updated, use a PropertyChangeListener with the property name JTableFilterTextField.SEARCH_PATTERN_KEY
LabelRenderer displays a a label header suitable for custom table column headings
LineColorRenderer a TableCellRenderer that colors every 2nd line differently for better visualization
MethodTableModel<T> a table model that displays/edits a list of objects based on the return value of given method names using reflection.
MoneyRenderer renders Money objects using a NumberFormat
MovableListModel a helper class providing support for movable lists
MovableTableModel a wrapper around a TableModel allowing to rearrange its rows.
MultiLineCellTextEditor allows to edit String values in a cell in a JTextArea, optionally with dialog capabilities
MultiLineTextRenderer renders given text in multiple lines.
ObjectTableModelView<T> combines the features of an ObjectTableModel with a TableModelView
ObjectTableModelWrapper<T> a wrapper around a TableModel that also supports ObjectTableModel
PatternTableModel<T> a very flexible ObjectTableModel that allows to define PatternExtractors per column
RowNumberTableModel wraps a given TableModel and adds a first column that simply contains a row numbering
SelectableObjectsTableModel<T> a special table model that wraps an existing ObjectTableModel by adding a column with an editable Boolean.
SimpleTableRowFilter implements a simple filter based on a search string searchPattern.
SortableTableModel a wrapper around a TableModel allowing to sort the model.
StringMapTableModel a table model that allows to edit the values of a given Map based on String objects
StyledCellRenderer allows to easily customize an already given renderer by applying any given style
TableModelCopy provides an unmodifiable copy of any given TableModel; all data is fully copied, so changes of the original model are not reflected on this model.
TableModelRenderer allows to delegate the rendering of table columns to the model if applicable
TableModelView provides a view/projection of a given TableModel.
TableModelWrapper allows to easily wrap a given table model and quickly just override a single method or customize the model by using appropriate methods herein.
TableRow simply represents a row in a table.
TableUtils some utilities for tables
TableUtils.BooleanRenderer thanks for JTable for not making this available externally :(
TextDialogCellEditor provides a dialog using a JTextComponent to edit cell values; unless a JTextField is used, a JScrollPane is automatically employed.
TimeCellRenderer properly formats java.util.Date and Long values (the latter with Stopwatch methods).
TransposedTableModel the first column of the given model will become the header row of the transposed model
WrappedTableCellRenderer allows to easily adjust the behavior of a given renderer
 

Package com.antelmann.util.table Description

This package provides useful additions to TableModels and contains classes to ease development with Swing tables.



(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads