コード例 #1
0
 protected void callSelectListeners(final SelectEvent event) {
   EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           for (SelectListener listener : eventListeners.getListeners(SelectListener.class)) {
             listener.selected(event);
           }
         }
       });
 }
コード例 #2
0
 protected void callPositionListeners(final PositionEvent event) {
   EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           for (PositionListener listener : eventListeners.getListeners(PositionListener.class)) {
             listener.moved(event);
           }
         }
       });
 }
コード例 #3
0
 protected void callRenderingExceptionListeners(final Throwable exception) {
   EventQueue.invokeLater(
       new Runnable() {
         public void run() {
           for (RenderingExceptionListener listener :
               eventListeners.getListeners(RenderingExceptionListener.class)) {
             listener.exceptionThrown(exception);
           }
         }
       });
 }