Class SelectionSearchStrategy

java.lang.Object
org.eclipse.nebula.widgets.nattable.search.strategy.AbstractSearchStrategy
org.eclipse.nebula.widgets.nattable.search.strategy.SelectionSearchStrategy
All Implemented Interfaces:
ISearchStrategy

public class SelectionSearchStrategy extends AbstractSearchStrategy
  • Constructor Details

    • SelectionSearchStrategy

      public SelectionSearchStrategy(IConfigRegistry configRegistry)
    • SelectionSearchStrategy

      public SelectionSearchStrategy(IConfigRegistry configRegistry, boolean columnFirst)
    • SelectionSearchStrategy

      @Deprecated public SelectionSearchStrategy(IConfigRegistry configRegistry, String searchDirection, boolean columnFirst)
      Deprecated.
      Use constructor with SearchDirection parameter
      Parameters:
      configRegistry - The ConfigRegistry.
      searchDirection - The SearchDirection.
      columnFirst - Flag to configure if the search should be by column.
    • SelectionSearchStrategy

      public SelectionSearchStrategy(IConfigRegistry configRegistry, SearchDirection searchDirection, boolean columnFirst)
      Parameters:
      configRegistry - The ConfigRegistry.
      searchDirection - The SearchDirection.
      columnFirst - Flag to configure if the search should be by column.
      Since:
      2.0
  • Method Details

    • executeSearch

      public PositionCoordinate executeSearch(Object valueToMatch)
      Description copied from interface: ISearchStrategy
      Search for the given value and return the coordinates of the matching cell.
      Parameters:
      valueToMatch - The value to search for.
      Returns:
      The coordinates of the cell that contains the given value.
    • getSelectedCells

      protected PositionCoordinate[] getSelectedCells(SelectionLayer selectionLayer)
    • processResultInternally

      public boolean processResultInternally()
      Overrides:
      processResultInternally in class AbstractSearchStrategy
      Returns:
      false if the result should be processed by the caller, true if the strategy deals with the result itself.