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 Stock} giving one row to each
011 * {@link StockItem}.
012 *
013 * @author Steffen Zschaler
014 * @version 2.0 23/08/1999
015 * @since v2.0
016 */
017 public class JStoringStockTable extends JAbstractTable {
018
019 /**
020 * Create a new JStoringStockTable.
021 *
022 * @param st the Stock to be displayed.
023 * @param db the DataBasket to be used to determine visibility.
024 * @param cmp a Comparator defining the sort order. If <code>null</code>, the StockItems are ordered in
025 * their natural order.
026 * @param ted a TableEntryDescriptor that can split StockItems into a table's cells.
027 */
028 public JStoringStockTable(Stock st, DataBasket db, Comparator cmp, TableEntryDescriptor ted) {
029 super(new StoringStockTableModel(st, db, cmp, ted));
030 }
031 }