Class DataTable

    • Field Detail

      • MAX_COLUMN_WIDTH

        public static final int MAX_COLUMN_WIDTH
        the maximum column width.
        See Also:
        Constant Field Values
      • m_SortAttributes

        protected boolean m_SortAttributes
        whether to sort the attributes alphabetically.
    • Constructor Detail

      • DataTable

        public DataTable​(DataTableModel dm)
        Constructs a DataTable 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

      • initGUI

        protected void initGUI()
        Initializes some GUI-related things.
        Overrides:
        initGUI in class adams.gui.core.BaseTable
      • afterTableLayoutChanged

        protected void afterTableLayoutChanged()
        Can be called after the layout changed.
      • 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
      • getCellEditor

        public TableCellEditor getCellEditor​(int row,
                                             int column)
        Returns the cell editor for the specified cell.
        Overrides:
        getCellEditor in class JTable
        Parameters:
        row - the row
        column - the column
        Returns:
        the cell editor