001 package data.swing; 002 003 import data.*; 004 005 import util.swing.*; 006 007 import java.util.*; 008 009 /** 010 * A {@link javax.swing.JTable} for displaying and editing the contents of a {@link DataBasket}. 011 * 012 * @author Steffen Zschaler 013 * @version 2.0 23/08/1999 014 * @since v2.0 015 */ 016 public class JDataBasketTable extends JAbstractTable { 017 018 /** 019 * ID for serialization. 020 */ 021 private static final long serialVersionUID = -2950099275293528223L; 022 023 /** 024 * Create a new JDataBasketTable. 025 * 026 * @param db the DataBasket to displayed. 027 * @param dbc a condition selecting the DataBasketEntries to be selected. 028 * @param dbeg a strategy grouping individual DataBasketEntries together for display. 029 * @param cmp a Comparator defining the sort order. If <code>null</code>, the DataBasketEntries are ordered 030 * first by their main and then by their secondary keys. 031 * @param ted a TableEntryDescriptor that can split DataBasketEntries into a table's cells. 032 */ 033 public JDataBasketTable(DataBasket db, DataBasketCondition dbc, DataBasketEntryGrouper dbeg, 034 Comparator<DataBasketEntry> cmp, TableEntryDescriptor ted) { 035 super(new DataBasketTableModel(db, dbc, dbeg, cmp, ted)); 036 } 037 }