/** 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 */ public synchronized void setContent(Object content, boolean postRequest){ setContent(content, postRequest, true); }
/** Sets content of javadoc with postRequest setted to true * @see #setContent(java.lang.Object, boolean) */ public void setContent(Object content){ setContent(content, true); }
/** 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 */ public synchronized void setContent(Object content, boolean postRequest){ setContent(content, postRequest, true); }
/** Sets content of javadoc with postRequest setted to true * @see #setContent(java.lang.Object, boolean) */ public void setContent(Object content){ setContent(content, true); }
public synchronized void forwardHistory(){ if (curHistoryItem <history.size()-1){ curHistoryItem++; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == history.size()-1) getJavaDocPane().setForwardEnabled(false); getJavaDocPane().setBackEnabled(true); } }
public synchronized void forwardHistory(){ if (curHistoryItem <history.size()-1){ curHistoryItem++; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == history.size()-1) getJavaDocPane().setForwardEnabled(false); getJavaDocPane().setBackEnabled(true); } }
public synchronized void backHistory(){ if (curHistoryItem > 0) { curHistoryItem--; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == 0) getJavaDocPane().setBackEnabled(false); getJavaDocPane().setForwardEnabled(true); } }
public synchronized void backHistory(){ if (curHistoryItem > 0) { curHistoryItem--; setContent(history.get(curHistoryItem), false, false); if (curHistoryItem == 0) getJavaDocPane().setBackEnabled(false); getJavaDocPane().setForwardEnabled(true); } }
public void hyperlinkUpdate(HyperlinkEvent e) { if (e!=null && HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){ if (e.getDescription() != null){ Object obj = cjd.parseLink(e.getDescription(), null); if (obj!=null){ cjd.setContent(obj, false); cjd.addToHistory(obj); } else { obj = (e.getURL() == null) ? e.getDescription() : (Object)e.getURL(); cjd.setContent(obj, false); } } } } }
public void hyperlinkUpdate(HyperlinkEvent e) { if (e!=null && HyperlinkEvent.EventType.ACTIVATED.equals(e.getEventType())){ if (e.getDescription() != null){ Object obj = cjd.parseLink(e.getDescription(), null); if (obj!=null){ cjd.setContent(obj, false); cjd.addToHistory(obj); } else { obj = (e.getURL() == null) ? e.getDescription() : (Object)e.getURL(); cjd.setContent(obj, false); } } } } }