Class AbstractSelectionNavigationAction

java.lang.Object
docking.action.DockingAction
docking.action.ToggleDockingAction
ghidra.util.table.AbstractSelectionNavigationAction
All Implemented Interfaces:
DockingActionIf, ToggleDockingActionIf, HelpDescriptor
Direct Known Subclasses:
SelectionNavigationAction

public abstract class AbstractSelectionNavigationAction extends ToggleDockingAction
An action used to trigger navigation callback on instances of JTable. Users can toggle this action to control navigation that is based upon selection.

Subclasses need to implement navigate(), which will be called when a navigation is triggered on the given table by a selection.

This class will save the state of the action when the tool is saved.

  • Field Details

    • table

      protected final JTable table
  • Constructor Details

    • AbstractSelectionNavigationAction

      protected AbstractSelectionNavigationAction(String name, String owner, JTable table)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enable)
      Description copied from interface: DockingActionIf
      Enables or disables the action
      Specified by:
      setEnabled in interface DockingActionIf
      Overrides:
      setEnabled in class DockingAction
      Parameters:
      enable - true to enable the action, false to disable it
    • setSelected

      public void setSelected(boolean value)
      Description copied from interface: ToggleDockingActionIf
      Sets the toggle state for this action.
      Specified by:
      setSelected in interface ToggleDockingActionIf
      Overrides:
      setSelected in class ToggleDockingAction
      Parameters:
      value - the new toggle state.
    • toggleSelectionListening

      protected void toggleSelectionListening(boolean listen)
    • saveState

      protected void saveState()
    • restoreState

      protected void restoreState()