Package ghidra.app.util.viewer.util

# Class FieldNavigator

java.lang.Object
ghidra.app.util.viewer.util.FieldNavigator

All Implemented Interfaces:
  `ButtonPressedListener`, `FieldMouseHandlerService`

public class FieldNavigator extends Object implements ButtonPressedListener, FieldMouseHandlerService
Helper class to navigate to an address when user double clicks in a Field. This class will find `FieldMouseHandlerExtension`s by using the `ClassSearcher`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FieldNavigator(ServiceProvider serviceProvider, Navigatable navigatable)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addFieldMouseHandler(FieldMouseHandler handler)`
  `void`
  `buttonPressed(ProgramLocation location, FieldLocation fieldLocation, ListingField field, MouseEvent event)`
  Notification that a mouse button was pressed.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FieldNavigator

    public FieldNavigator(ServiceProvider serviceProvider, Navigatable navigatable)

- ## Method Details

  - ### buttonPressed

    public void buttonPressed(ProgramLocation location, FieldLocation fieldLocation, ListingField field, MouseEvent event)
    Description copied from interface: `ButtonPressedListener`
    Notification that a mouse button was pressed.
    Specified by:
      `buttonPressed` in interface `ButtonPressedListener`
    Parameters:
      `location` - program location when the button was pressed
      `fieldLocation` - locations within the FieldPanel
      `field` - field from the ListingPanel
      `event` - mouse event for the button pressed

  - ### addFieldMouseHandler

    public void addFieldMouseHandler(FieldMouseHandler handler)
    Specified by:
      `addFieldMouseHandler` in interface `FieldMouseHandlerService`