Package ghidra.util.table
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 Summary
Fields Modifier and Type Field Description protected javax.swing.JTable
table
-
Fields inherited from interface docking.action.DockingActionIf
DESCRIPTION_PROPERTY, ENABLEMENT_PROPERTY, GLOBALCONTEXT_PROPERTY, KEYBINDING_DATA_PROPERTY, MENUBAR_DATA_PROPERTY, POPUP_MENU_DATA_PROPERTY, TOOLBAR_DATA_PROPERTY
-
Fields inherited from interface docking.action.ToggleDockingActionIf
SELECTED_STATE_PROPERTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSelectionNavigationAction(java.lang.String name, java.lang.String owner, javax.swing.JTable table)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
navigate()
Users of this class will implement this method to know when to use their table to perform navigation tasks in their own way.protected void
restoreState()
protected void
saveState()
boolean
setEnabled(boolean enable)
Enables or disables the actionvoid
setSelected(boolean value)
Sets the toggle state for this action.protected void
toggleSelectionListening(boolean listen)
-
Methods inherited from class docking.action.ToggleDockingAction
actionPerformed, doCreateButton, doCreateMenuItem, isSelected
-
Methods inherited from class docking.action.DockingAction
addPropertyChangeListener, createButton, createMenuItem, dispose, firePropertyChanged, getDefaultKeyBindingData, getDescription, getFullName, getHelpInfo, getHelpObject, getInceptionFromTheFirstClassThatIsNotUs, getInceptionInformation, getKeyBinding, getKeyBindingData, getKeyBindingType, getMenuBarData, getName, getOwner, getPopupMenuData, getPreferredKeyBindingType, getToolBarData, isAddToPopup, isEnabled, isEnabledForContext, isValidContext, isValidGlobalContext, markHelpUnnecessary, removePropertyChangeListener, setDescription, setHelpLocation, setKeyBindingData, setMenuBarData, setPopupMenuData, setToolBarData, setUnvalidatedKeyBindingData, shouldAddToWindow, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface docking.action.DockingActionIf
addPropertyChangeListener, createButton, createMenuItem, dispose, getDefaultKeyBindingData, getDescription, getFullName, getInceptionInformation, getKeyBinding, getKeyBindingData, getKeyBindingType, getMenuBarData, getName, getOwner, getOwnerDescription, getPopupMenuData, getToolBarData, isAddToPopup, isEnabled, isEnabledForContext, isValidContext, isValidGlobalContext, removePropertyChangeListener, setKeyBindingData, setUnvalidatedKeyBindingData, shouldAddToWindow
-
Methods inherited from interface docking.help.HelpDescriptor
getHelpInfo, getHelpObject
-
-
-
-
Method Detail
-
navigate
public abstract void navigate()
Users of this class will implement this method to know when to use their table to perform navigation tasks in their own way.
-
setEnabled
public boolean setEnabled(boolean enable)
Description copied from interface:DockingActionIf
Enables or disables the action- Specified by:
setEnabled
in interfaceDockingActionIf
- Overrides:
setEnabled
in classDockingAction
- Parameters:
enable
- true to enable the action, false to disable it- Returns:
- the enabled value of the action after this call
-
setSelected
public void setSelected(boolean value)
Description copied from interface:ToggleDockingActionIf
Sets the toggle state for this action.- Specified by:
setSelected
in interfaceToggleDockingActionIf
- Overrides:
setSelected
in classToggleDockingAction
- Parameters:
value
- the new toggle state.
-
toggleSelectionListening
protected void toggleSelectionListening(boolean listen)
-
saveState
protected void saveState()
-
restoreState
protected void restoreState()
-
-