public void run() { if (isPaneVisible()) { timer.stop(); if (post) { timer.setInitialDelay(refreshDelay); timer.setDelay(refreshDelay); timer.start(); } else { actionPerformed(null); } } } });
private synchronized void popupImpl( boolean postRequest) { if (isPaneVisible()) { refreshImpl(postRequest); } else { timer.stop(); if (postRequest) { timer.setInitialDelay(autoPopupDelay); timer.setDelay(autoPopupDelay); timer.start(); } else { actionPerformed(null); } } }
private synchronized void popupImpl( boolean postRequest) { if (isPaneVisible()) { refreshImpl(postRequest); } else { timer.stop(); if (postRequest) { timer.setInitialDelay(autoPopupDelay); timer.setDelay(autoPopupDelay); timer.start(); } else { actionPerformed(null); } } }
/** * Get the help and show it in the view. If the view is already visible * perform the refresh of the view. * * @param postRequest * post the request instead of displaying the view immediately. * The <tt>ExtSettingsNames.COMPLETION_AUTO_POPUP_DELAY</tt> * setting stores the number of milliseconds before the view is * displayed. If the user presses a key until the delay expires * nothing is shown. This guarantees that the user which knows * what to write will not be annoyed with the unnecessary help. */ public synchronized void popup(boolean postRequest) { if (isPaneVisible()) { refresh(postRequest); } else { timer.stop(); if (postRequest) { timer.setInitialDelay(autoPopupDelay); timer.setDelay(autoPopupDelay); timer.start(); } else { actionPerformed(null); } } }