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 * Create a new JDataBasketTable.
020 *
021 * @param db the DataBasket to displayed.
022 * @param dbc a condition selecting the DataBasketEntries to be selected.
023 * @param dbeg a strategy grouping individual DataBasketEntries together for display.
024 * @param cmp a Comparator defining the sort order. If <code>null</code>, the DataBasketEntries are ordered
025 * first by their main and then by their secondary keys.
026 * @param ted a TableEntryDescriptor that can split DataBasketEntries into a table's cells.
027 */
028 public JDataBasketTable(DataBasket db, DataBasketCondition dbc, DataBasketEntryGrouper dbeg,
029 Comparator cmp, TableEntryDescriptor ted) {
030 super(new DataBasketTableModel(db, dbc, dbeg, cmp, ted));
031 }
032 }