/** * Set the url and resets the visited flag. * * Think: keep list of visited urls here? */ public void setURL(URL url) { if (url == null) { throw new IllegalArgumentException("URL for link cannot be null"); } if (url.equals(getURL())) return; URL old = getURL(); this.url = url; firePropertyChange("URL", old, url); setVisited(false); }
/** * Set the url and resets the visited flag. * * Think: keep list of visited urls here? */ public void setURL(URL url) { if (url == null) { throw new IllegalArgumentException("URL for link cannot be null"); } if (url.equals(getURL())) return; URL old = getURL(); this.url = url; firePropertyChange("URL", old, url); setVisited(false); }
/** * Set the url and resets the visited flag. * * Think: keep list of visited urls here? */ public void setURL(URL url) { if (url == null) { throw new IllegalArgumentException("URL for link cannot be null"); } if (url.equals(getURL())) return; URL old = getURL(); this.url = url; firePropertyChange("URL", old, url); setVisited(false); }
/** * Set the url and resets the visited flag. * * Think: keep list of visited urls here? */ public void setURL(URL url) { if (url == null) { throw new IllegalArgumentException("URL for link cannot be null"); } if (url.equals(getURL())) return; URL old = getURL(); this.url = url; firePropertyChange("URL", old, url); setVisited(false); }
/** * Set the url and resets the visited flag. * * Think: keep list of visited urls here? */ public void setURL(URL url) { if (url == null) { throw new IllegalArgumentException("URL for link cannot be null"); } if (url.equals(getURL())) return; URL old = getURL(); this.url = url; firePropertyChange("URL", old, url); setVisited(false); }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }