Class CommentFieldMouseHandler

    • Constructor Detail

      • CommentFieldMouseHandler

        public CommentFieldMouseHandler()
    • Method Detail

      • fieldElementClicked

        public boolean fieldElementClicked​(java.lang.Object clickedObject,
                                           Navigatable sourceNavigatable,
                                           ProgramLocation location,
                                           java.awt.event.MouseEvent mouseEvent,
                                           ServiceProvider serviceProvider)
        Description copied from interface: FieldMouseHandler
        Called when a field Field 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 to FieldMouseHandler.getSupportedProgramLocations().
        Specified by:
        fieldElementClicked in interface FieldMouseHandler
        clickedObject - The object that was clicked
        sourceNavigatable - The source navigatable that was clicked upon.
        location - 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.SC
        mouseEvent - The mouse event that triggered the click
        serviceProvider - A service provider used to access system resources.
        true if this handler wishes to have exclusive handling rights to processing the clickedObject
        See Also:
        FieldMouseHandlerExtension#fieldElementClicked(Object, Navigatable, MouseEvent, ServiceProvider)
      • getCommentRow

        protected int getCommentRow​(ProgramLocation programLocation)
      • getCommentColumn

        protected int getCommentColumn​(ProgramLocation programLocation)
      • getComment

        protected java.lang.String[] getComment​(ProgramLocation programLocation)
      • checkWord

        protected boolean checkWord​(java.lang.String wordString,
                                    ServiceProvider serviceProvider,
                                    Navigatable sourceNavigatable)