01: package org.uispec4j;
02:
03: import org.uispec4j.interception.WindowInterceptor;
04:
05: /**
06: * Interface for window interception triggers - UI interactions which display a window.<p>
07: * Ready-to-use triggers are made available by several components such as Buttons or Menus.
08: *
09: * @see Button#triggerClick
10: * @see MenuItem#triggerClick
11: * @see WindowInterceptor
12: */
13: public interface Trigger {
14: void run() throws Exception;
15:
16: public static final Trigger DO_NOTHING = new Trigger() {
17: public void run() throws Exception {
18: }
19: };
20: }
|