Package smile.swing

Class Table.RowHeader

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, CellEditorListener, ChangeListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable, org.jdesktop.swingx.event.TableColumnModelExtListener
Enclosing class:
Table

public class Table.RowHeader extends org.jdesktop.swingx.JXTable implements ChangeListener, PropertyChangeListener
Use a JTable as a renderer for row numbers of the main table. This table must be added to the row header of the JScrollPane that contains the main table.
See Also:
  • Constructor Details

    • RowHeader

      public RowHeader()
      Constructor.
  • Method Details

    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class JTable
    • getRowCount

      public int getRowCount()
      Delegate method to main table
      Overrides:
      getRowCount in class JTable
    • getRowHeight

      public int getRowHeight(int row)
      Overrides:
      getRowHeight in class JTable
    • getValueAt

      public Object getValueAt(int row, int column)
      This table does not use any data from the main TableModel, so just return a value based on the row parameter.
      Overrides:
      getValueAt in class JTable
    • isCellEditable

      public boolean isCellEditable(int row, int column)
      Don't edit data in the main TableModel by mistake
      Overrides:
      isCellEditable in class org.jdesktop.swingx.JXTable
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Specified by:
      propertyChange in interface PropertyChangeListener