|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmusic.DeferredInvoker
public class DeferredInvoker
This is a Runnable class that will invoke one instance of one method on an object. This is used to get around Swing thread restrictions.
Constructor Summary | |
---|---|
DeferredInvoker(java.lang.Object _target,
java.lang.String _methodname,
java.lang.Class[] _types,
java.lang.Object[] _values)
Constructor. |
Method Summary | |
---|---|
void |
run()
This does the actual method call, using reflection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeferredInvoker(java.lang.Object _target, java.lang.String _methodname, java.lang.Class[] _types, java.lang.Object[] _values)
_target
- the target object of the method call_methodname
- the string name of the method (i.e. "setSize")_types
- a list of the types of parameter this method takes_values
- the list of actual values for the parameters, with primitives wrapped in wrapper classesMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |