예제 #1
0
 /** Starts delayed close timer. */
 private void startDelayedClose() {
   if (displayTime > 0 && (displayTimer == null || !displayTimer.isRunning())) {
     displayTimer =
         WebTimer.delay(
             displayTime,
             new ActionListener() {
               @Override
               public void actionPerformed(final ActionEvent e) {
                 hidePopup();
               }
             });
   }
 }
예제 #2
0
 /** Stops delayed close timer. */
 private void stopDelayedClose() {
   if (displayTimer != null && displayTimer.isRunning()) {
     displayTimer.stop();
   }
 }