68 } 69 70 /** 71 * Marks the first integer id for the range of invocation event ids. 72 */ 73 public static final int INVOCATION_FIRST = 1200; 74 75 /** 76 * The default id for all InvocationEvents. 77 */ 78 public static final int INVOCATION_DEFAULT = INVOCATION_FIRST; 79 80 /** 81 * Marks the last integer id for the range of invocation event ids. 82 */ 83 public static final int INVOCATION_LAST = INVOCATION_DEFAULT; 84 85 /** 86 * The Runnable whose run() method will be called. 87 */ 88 protected Runnable runnable; 89 90 /** 91 * The (potentially null) Object whose notifyAll() method will be called 92 * immediately after the Runnable.run() method has returned or thrown an exception 93 * or after the event was disposed. 94 * 95 * @see #isDispatched 96 */ 97 protected volatile Object notifier; 98 99 /** 100 * The (potentially null) Runnable whose run() method will be called 101 * immediately after the event was dispatched or disposed. 102 * 103 * @see #isDispatched 104 * @since 1.8 105 */ 106 private final Runnable listener; 107 108 /** 109 * Indicates whether the {@code run()} method of the {@code runnable} 110 * was executed or not. 111 * 112 * @see #isDispatched 113 * @since 1.7 114 */ 115 private volatile boolean dispatched = false; 116 117 /** 118 * Set to true if dispatch() catches Throwable and stores it in the 119 * exception instance variable. If false, Throwables are propagated up 120 * to the EventDispatchThread's dispatch loop. 121 */ 122 protected boolean catchExceptions; 123 124 /** 125 * The (potentially null) Exception thrown during execution of the | 68 } 69 70 /** 71 * Marks the first integer id for the range of invocation event ids. 72 */ 73 public static final int INVOCATION_FIRST = 1200; 74 75 /** 76 * The default id for all InvocationEvents. 77 */ 78 public static final int INVOCATION_DEFAULT = INVOCATION_FIRST; 79 80 /** 81 * Marks the last integer id for the range of invocation event ids. 82 */ 83 public static final int INVOCATION_LAST = INVOCATION_DEFAULT; 84 85 /** 86 * The Runnable whose run() method will be called. 87 */ 88 @SuppressWarnings("serial") // Not statically typed as Serializable 89 protected Runnable runnable; 90 91 /** 92 * The (potentially null) Object whose notifyAll() method will be called 93 * immediately after the Runnable.run() method has returned or thrown an exception 94 * or after the event was disposed. 95 * 96 * @see #isDispatched 97 */ 98 @SuppressWarnings("serial") // Not statically typed as Serializable 99 protected volatile Object notifier; 100 101 /** 102 * The (potentially null) Runnable whose run() method will be called 103 * immediately after the event was dispatched or disposed. 104 * 105 * @see #isDispatched 106 * @since 1.8 107 */ 108 @SuppressWarnings("serial") // Not statically typed as Serializable 109 private final Runnable listener; 110 111 /** 112 * Indicates whether the {@code run()} method of the {@code runnable} 113 * was executed or not. 114 * 115 * @see #isDispatched 116 * @since 1.7 117 */ 118 private volatile boolean dispatched = false; 119 120 /** 121 * Set to true if dispatch() catches Throwable and stores it in the 122 * exception instance variable. If false, Throwables are propagated up 123 * to the EventDispatchThread's dispatch loop. 124 */ 125 protected boolean catchExceptions; 126 127 /** 128 * The (potentially null) Exception thrown during execution of the |