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             * ID for serialization.
021             */
022            private static final long serialVersionUID = 8914315406862651782L;
023    
024            /**
025         * Create a new JStoringStockTable.
026         *
027         * @param st the Stock to be displayed.
028         * @param db the DataBasket to be used to determine visibility.
029         * @param cmp a Comparator defining the sort order. If <code>null</code>, the StockItems are ordered in
030         * their natural order.
031         * @param ted a TableEntryDescriptor that can split StockItems into a table's cells.
032         */
033        public JStoringStockTable(Stock st, DataBasket db, Comparator<StockItem> cmp, TableEntryDescriptor ted) {
034            super(new StoringStockTableModel(st, db, cmp, ted));
035        }
036    }