Class InputTablePane.ColSpec

java.lang.Object
org.bzdev.ecdb.InputTablePane.ColSpec
Enclosing class:
InputTablePane

public static class InputTablePane.ColSpec extends Object
Specification for a table column.
  • Constructor Details

    • ColSpec

      public ColSpec(String heading, String example, Class<?> clasz, TableCellRenderer tcr, TableCellEditor tce)
      Constructor.

      Note: if one explicitly sets the trc argument to DefaultTableCellRenderer, JTable implementation will render boolean values as strings not as checkboxes. As a general rule, one should set the tcr argument to specify a specific table cell renderer to use when the default behavior is not wanted.

      Parameters:
      heading - the table heading
      example - , sample text to compute the column width
      clasz - the class for the data in this column
      tcr - the table-cell renderer used to render a cell in the column; null for the JTable default redenderer
      tce - the table-cell editor used to edit a cell in the table; null if the column is not editable