com.alee.utils.swing
Class EventPump

java.lang.Object
  extended by com.alee.utils.swing.EventPump
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class EventPump
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

Event pump for modal frame.

Author:
Mikle Garin

Constructor Summary
EventPump(java.awt.Frame frame)
          Constructs an event pump for modal frame.
 
Method Summary
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          
 void start()
          A small hack to pump an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventPump

public EventPump(java.awt.Frame frame)
Constructs an event pump for modal frame.

Parameters:
frame - modal frame
Method Detail

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

start

public void start()
           throws java.lang.Exception
A small hack to pump an event. Reflection calls in this method has to be replaced once Sun provides a public API to pump events.

Throws:
java.lang.Exception