com.taco.swinger
Class SwingInvokeProxyFactory
java.lang.Object
com.taco.swinger.SwingInvokeProxyFactory
public class SwingInvokeProxyFactory
- extends java.lang.Object
A static utility class that creates implementations of interfaces whose
methods all execute on the event dispatch thread. Each method of the proxy
does not return until the corresponding method of wrapped object returns.
If a method of the proxy is invoked on the event-dispatching thread, the
corresponding method of the wrapped object will be executed immediately.
Method Summary |
static java.lang.Object |
makeSwingInvokeProxy(java.lang.Object obj,
java.lang.Class[] interfaces)
Create a proxy based on obj which implements the intefaces
classes in interfaces , in which all methods are run on the
event-dispatch thread. |
static INoReturnObservableMap |
makeSwingInvokeProxyMap()
Return an observable map suitable for using as an argument map for
the text2gui package. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingInvokeProxyFactory
public SwingInvokeProxyFactory()
makeSwingInvokeProxy
public static final java.lang.Object makeSwingInvokeProxy(java.lang.Object obj,
java.lang.Class[] interfaces)
- Create a proxy based on
obj
which implements the intefaces
classes in interfaces
, in which all methods are run on the
event-dispatch thread.
- Parameters:
obj
- The object whose methods should only be invoked in the
event-dispatch thread.interfaces
- An array interfaces the returned proxy shoud
implement.
- Returns:
- A proxy to
obj
whose methods all execute on the
event-dispatch thread.
- Throws:
java.lang.NullPointerException
- if either obj
or
interfaces
is null
.
makeSwingInvokeProxyMap
public static final INoReturnObservableMap makeSwingInvokeProxyMap()
- Return an observable map suitable for using as an argument map for
the text2gui package. All operations on the map will occur on the
event dispatch thread.