/** Immediately sets Content of javadoc withou popup delay * @param content String representation of the displayed text. * In the case of current implementation it is an HTML document * Can be <code>null</code> in this case javaDoc popup will be hidden */ public void setContent(String content){ if (content == null){ setJavaDocVisible(false); return; } getJavaDocView().setContent(content); }
/** Immediately sets Content of javadoc withou popup delay * @param content String representation of the displayed text. * In the case of current implementation it is an HTML document * Can be <code>null</code> in this case javaDoc popup will be hidden */ public void setContent(String content){ if (content == null){ setJavaDocVisible(false); return; } getJavaDocView().setContent(content); }
/** Sets content of javadoc * @param content it is Object of the java member such as JCClass, JCMethod, JCField or JCConstructor * @param postRequest if false, javadoc window is popuped without delay * @param addToHistory if true, the content item will be added to history queue */ public synchronized void setContent(Object content, boolean postRequest, boolean addToHistory){ timer.stop(); if (content == null) { currentContent = null; setJavaDocVisible(false); return; } currentContent = content; this.addToHistory = addToHistory; if (postRequest){ //timer.setInitialDelay(javaDocDelay); timer.setInitialDelay(POPUP_DELAY); //timer.setDelay(javaDocDelay); timer.setDelay(POPUP_DELAY); timer.start(); }else{ actionPerformed(null); } }
/** Sets content of javadoc * @param content it is Object of the java member such as JCClass, JCMethod, JCField or JCConstructor * @param postRequest if false, javadoc window is popuped without delay * @param addToHistory if true, the content item will be added to history queue */ public synchronized void setContent(Object content, boolean postRequest, boolean addToHistory){ timer.stop(); if (content == null) { currentContent = null; setJavaDocVisible(false); return; } currentContent = content; this.addToHistory = addToHistory; if (postRequest){ //timer.setInitialDelay(javaDocDelay); timer.setInitialDelay(POPUP_DELAY); //timer.setDelay(javaDocDelay); timer.setDelay(POPUP_DELAY); timer.start(); }else{ actionPerformed(null); } }