Esempio n. 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();
               }
             });
   }
 }
Esempio n. 2
0
 /** Stops delayed close timer. */
 private void stopDelayedClose() {
   if (displayTimer != null && displayTimer.isRunning()) {
     displayTimer.stop();
   }
 }