java.lang.Object
org.eclipse.nebula.widgets.nattable.search.action.SearchAction
All Implemented Interfaces:
IKeyAction

public class SearchAction extends Object implements IKeyAction
An action for opening a Find dialog on a NatTable. Supports both modal and non-modal (i.e., sharable) Find dialog behavior.
  • Constructor Details

    • SearchAction

      public SearchAction()
      Constructs an action with a modal Find dialog.
    • SearchAction

      public SearchAction(SearchAction.SearchDialogCreator creator)
      Constructs an action with a modal Find dialog that is created via the given creator function
      Parameters:
      creator - The SearchAction.SearchDialogCreator used to create the find dialog.
      Since:
      2.3
    • SearchAction

      public SearchAction(NatTable natTable, org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
      Constructs an action with a non-modal (i.e., sharable) Find dialog.
      Parameters:
      natTable - The NatTable instance to perform the search action on.
      dialogSettings - The dialog settings that should be used to create the search dialog.
    • SearchAction

      public SearchAction(NatTable natTable, org.eclipse.jface.dialogs.IDialogSettings dialogSettings, SearchAction.SearchDialogCreator creator)
      Constructs an action with a non-modal (i.e., sharable) Find dialog.
      Parameters:
      natTable - The NatTable instance to perform the search action on.
      dialogSettings - The dialog settings that should be used to create the search dialog.
      creator - The SearchAction.SearchDialogCreator used to create the find dialog.
      Since:
      2.3
  • Method Details

    • setActiveContext

      protected void setActiveContext()
    • run

      public void run(NatTable natTable, org.eclipse.swt.events.KeyEvent event)
      Specified by:
      run in interface IKeyAction