Class DataTableWithButtons

  • All Implemented Interfaces:
    adams.data.spreadsheet.SpreadSheetSupporter, adams.gui.core.JTableSupporter<adams.gui.core.BaseTable>, ImageObserver, MenuContainer, Serializable, Accessible

    public class DataTableWithButtons
    extends adams.gui.core.BaseTableWithButtons
    Specialized table with buttons.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • DataTableWithButtons

        public DataTableWithButtons​(DataTableModel dm)
        Constructs a DataTableWithButtons that is initialized with dm as the data model, a default column model, and a default selection model.
        Parameters:
        dm - the data model for the table
    • Method Detail

      • createComponent

        protected DataTable createComponent()
        Creates the component to use in the panel. If a
        Overrides:
        createComponent in class adams.gui.core.BaseTableWithButtons
        Returns:
        the component
      • setSortAttributes

        public void setSortAttributes​(boolean value)
        Sets whether to sort the attributes alphabetically for the dropdown list.
        Parameters:
        value - true if to sort
      • getSortAttributes

        public boolean getSortAttributes()
        Returns whether to sort the attributes alphabetically for the dropdown list.
        Returns:
        true if to sort