package data.swing;

import data.*;

import util.swing.*;

import java.util.*;

/**
  * A {@link javax.swing.JTable} for displaying and editing the contents of a {@link Stock} giving one row to each
  * {@link StockItem}.
  *
  * @author Steffen Zschaler
  * @version 2.0 23/08/1999
  * @since v2.0
  */
public class JStoringStockTable extends JAbstractTable {

  /**
    * Create a new JStoringStockTable.
    *
    * @param st the Stock to be displayed.
    * @param db the DataBasket to be used to determine visibility.
    * @param cmp a Comparator defining the sort order. If <code>null</code>, the StockItems are ordered in
    * their natural order.
    * @param ted a TableEntryDescriptor that can split StockItems into a table's cells.
    */
  public JStoringStockTable (Stock st,
                             DataBasket db,
                             Comparator cmp,
                             TableEntryDescriptor ted) {
    super (new StoringStockTableModel (st, db, cmp, ted));
  }
}