/** Setter for help URL. * @param helpURL help URL */ public void setHelpURL(URL helpURL) { if (htmlBrowser == null) { return; } if (helpURL != null) { if (!helpURL.equals(htmlBrowser.getDocumentURL())) { htmlBrowser.setURL(helpURL); } if (tabbedPane != null) { tabbedPane.setEnabledAt(tabbedPane.indexOfComponent(htmlBrowser), true); } } else if (tabbedPane != null) { tabbedPane.setSelectedComponent(contentPanel); tabbedPane.setEnabledAt(tabbedPane.indexOfComponent(htmlBrowser), false); } }
/** * Gets current document url. */ public final URL getDocumentURL () { if( null == browserComponent ) { URL url = null; if( null != urlToLoad ) { try { url = new URL(urlToLoad); } catch( MalformedURLException ex ) { } } return url; } return browserComponent.getDocumentURL (); }
/** Setter for help URL. * @param helpURL help URL */ public void setHelpURL(URL helpURL) { if (htmlBrowser == null) return; if (helpURL != null) { if (!helpURL.equals(htmlBrowser.getDocumentURL())) htmlBrowser.setURL(helpURL); if (tabbedPane != null) tabbedPane.setEnabledAt(tabbedPane.indexOfComponent(htmlBrowser), true); } else if (tabbedPane != null){ tabbedPane.setSelectedComponent(contentPanel); tabbedPane.setEnabledAt(tabbedPane.indexOfComponent(htmlBrowser), false); } }
/** Setter for help URL. * @param helpURL help URL */ public void setHelpURL(URL helpURL) { if (htmlBrowser == null) return; if (helpURL != null) { if (!helpURL.equals(htmlBrowser.getDocumentURL())) htmlBrowser.setURL(helpURL); if (tabbedPane != null) tabbedPane.setEnabledAt(tabbedPane.indexOfComponent(htmlBrowser), true); } else if (tabbedPane != null){ tabbedPane.setSelectedComponent(contentPanel); tabbedPane.setEnabledAt(tabbedPane.indexOfComponent(htmlBrowser), false); } }