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