Module java.desktop

Class BasicTreeUI.MouseInputHandler

All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener, MouseInputListener
Enclosing class:

public class BasicTreeUI.MouseInputHandler
extends Object
implements MouseInputListener
MouseInputHandler handles passing all mouse events, including mouse motion events, until the mouse is released to the destination it is constructed with. It is assumed all the events are currently target at source.
  • Field Details

    • source

      protected Component source
      Source that events are coming from.
    • destination

      protected Component destination
      Destination that receives all events.
  • Constructor Details

    • MouseInputHandler

      public MouseInputHandler​(Component source, Component destination, MouseEvent event)
      Constructs a new instance of MouseInputHandler.
      source - a source component
      destination - a destination component
      event - a mouse event
  • Method Details

    • removeFromSource

      protected void removeFromSource()
      Removes an event from the source.