Package ghidra.app.util.viewer.field
Interface FieldMouseHandler
-
- All Known Subinterfaces:
FieldMouseHandlerExtension
- All Known Implementing Classes:
AnnotatedStringFieldMouseHandler
,CommentFieldMouseHandler
,ErrorFieldMouseHandler
,FunctionRepeatableCommentFieldMouseHandler
,ImageFactoryFieldMouseHandler
,MnemonicFieldMouseHandler
,OpenCloseFieldMouseHandler
,OperandFieldMouseHandler
,PcodeFieldMouseHandler
,ThunkedFunctionFieldMouseHandler
,VariableCommentFieldMouseHandler
,VariableXRefFieldMouseHandler
,XRefFieldMouseHandler
public interface FieldMouseHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
fieldElementClicked(java.lang.Object clickedObject, Navigatable sourceNavigatable, ProgramLocation programLocation, java.awt.event.MouseEvent mouseEvent, ServiceProvider serviceProvider)
Called when a fieldField
has been clicked.java.lang.Class<?>[]
getSupportedProgramLocations()
Returns an array of types that this handler wishes to handle.
-
-
-
Method Detail
-
fieldElementClicked
boolean fieldElementClicked(java.lang.Object clickedObject, Navigatable sourceNavigatable, ProgramLocation programLocation, java.awt.event.MouseEvent mouseEvent, ServiceProvider serviceProvider)
Called when a fieldField
has been clicked. The object being passed in may be of any type, as returned by the clicked field. The type is guaranteed to be one of the types returned in the call togetSupportedProgramLocations()
.- Parameters:
clickedObject
- The object that was clickedsourceNavigatable
- The source navigatable that was clicked upon.programLocation
- The location at the time the click was made. Due to swing delay, this location may not be the same as you would get if you asked the navagatable for the current location.SCmouseEvent
- The mouse event that triggered the clickserviceProvider
- A service provider used to access system resources.- Returns:
- true if this handler wishes to have exclusive handling rights to processing the
clickedObject
- See Also:
ListingField.getClickedObject(ghidra.util.bean.field.FieldLocation)
-
getSupportedProgramLocations
java.lang.Class<?>[] getSupportedProgramLocations()
Returns an array of types that this handler wishes to handle.- Returns:
- an array of types that this handler wishes to handle.
-
-