java命名空间java.awt.event类invocationevent的类成员方法:
invocationevent定义及介绍
本文导语:
invocationevent
protected invocationevent(object source,
int id,
runnable runnable,
object notifier,
boolean catchthrowables)
构造一个具有指定源和 id 的 invocationevent,此源...
invocationevent
protected invocationevent(object source,
int id,
runnable runnable,
object notifier,
boolean catchthrowables)
- 构造一个具有指定源和 id 的
invocationevent,此源和 id 将在被指派时执行 runnable 的 run 方法。如果 notifier 为非 null,则将在 run 返回之后立即对它调用 notifyall。
注意,传递无效 id 会导致不确定的行为。如果 source 为 null,则此方法抛出 illegalargumentexception。
- 参数:
source - 产生事件的 objectid - 事件的 idrunnable - 执行其 run 方法的 runnablenotifier - 在 runnable.run 返回之后调用其 notifyall 方法的 objectcatchthrowables - 指定 dispatch 是否应该在执行 runnable 的 run 方法时捕获 java开发命名规范总结
iis7站长之家,或者应该将那些 throwable 传播到 eventdispatchthread 的调度循环中
- 抛出:
illegalargumentexception - 如果 source 为 null
dispatch
public void dispatch()
- 执行 runnable 的
run() 方法并在 run() 返回时通知 notifier(如果有)。
- 指定者:
- 接口
activeevent 中的 dispatch