Class ColumnSearchWindow

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

public class ColumnSearchWindow extends AuxDialog
Dialog window that allows the user to search for text content in cells of a column and highlight the corresponding rows. This dialog is associated with the TableViewerWindow.
Since:
28 Jun 2018
Author:
Mark Taylor
See Also:
  • Constructor Details

    • ColumnSearchWindow

      public ColumnSearchWindow(TableViewerWindow viewWindow, TopcatModel tcModel)
      Constructor.
      Parameters:
      viewWindow - table viewer window
      tcModel - topcat model
  • Method Details

    • canSearchColumn

      public boolean canSearchColumn(uk.ac.starlink.table.ColumnInfo info)
      Indicates whether a given column can be searched by this window.
      Parameters:
      info - column metadata
      Returns:
      true iff this window is prepared to search contents of the described column
    • cellToString

      public String cellToString(Object cell)
      Stringifies a cell value for pattern matching purposes.
      Parameters:
      cell - value, assumed to be from a column for which canSearchColumn returns true
      Returns:
      stringified value
    • setColumn

      public void setColumn(TableColumn tcol)
      Programmatically configures the column to be searched by this window.
      Parameters:
      tcol - column
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window