Class TableViewerWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class TableViewerWindow extends AuxWindow
Browser window for viewing the data in a table. This provides a JTable view on a TopcatModel.
Since:
19 Feb 2004
Author:
Mark Taylor (Starlink)
See Also:
  • Constructor Details

    • TableViewerWindow

      public TableViewerWindow(TopcatModel tcModel, Component parent)
      Constructs a new TableViewer to view a given table.
      Parameters:
      tcModel - topcat model
      parent - parent component for positioning; may be null
  • Method Details

    • getRowSelectionModel

      public ListSelectionModel getRowSelectionModel()
      Returns the row selection model for this window's JTable.
      Returns:
      row selection model
    • scrollToRow

      public void scrollToRow(int viewRow)
      Scrolls the JTable so that the given row is visible in the centre of the window.
      Parameters:
      viewRow - row index in the view model
    • scrollToColumn

      public void scrollToColumn(int viewCol)
      Scrolls the JTable so that the given column is visible at the left of the window.
      Parameters:
      viewCol - column index in the view model
    • setSelection

      public void setSelection(RowSubset rset)
      Sets the row selection for this window's JTable to correspond to a given row subset.
      Parameters:
      rset - row subset