edu.indiana.util.swing
Class EventForwarder

java.lang.Object
  extended by edu.indiana.util.swing.EventForwarder

public class EventForwarder
extends java.lang.Object

Class used to forward GUI events to given Swing components. This is mostly required when an event is produced, but it cannot be received automatically by the component. This is the case when the component is embedded into a cell of a JList.


Constructor Summary
EventForwarder()
           
 
Method Summary
static void forwardMouseEvent(java.awt.event.MouseEvent evt, java.awt.Component topMostComponent, java.awt.Rectangle componentBounds)
          Forwards the mouse event Evt to the atom component placed under Evt coordinates, if the component implements a MouseListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventForwarder

public EventForwarder()
Method Detail

forwardMouseEvent

public static void forwardMouseEvent(java.awt.event.MouseEvent evt,
                                     java.awt.Component topMostComponent,
                                     java.awt.Rectangle componentBounds)
Forwards the mouse event Evt to the atom component placed under Evt coordinates, if the component implements a MouseListener. The atom component is contained into topMostComponent.

Parameters:
evt - The mouse event originated on topMostComponent
topMostComponent - The container of the target component.
componentBounds - Bounds of the component.