Class DataColumnSearchWindow

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

public class DataColumnSearchWindow extends ColumnSearchWindow
SearchWindow subclass that searches for content in the columns of a TableViewerWindow. Since the effective data model (a StarTable) may be large, the searching is done asynchronously, off the EDT.
Since:
14 Sep 2023
Author:
Mark Taylor
See Also:
  • Constructor Details

    • DataColumnSearchWindow

      public DataColumnSearchWindow(TableViewerWindow viewWindow)
      Constructor.
      Parameters:
      viewWindow - the table view window on behalf of which searches will be carried out
  • Method Details

    • 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
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window
    • canSearchColumn

      public static 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