public String getText() { if (text != null) { return text; } else if (url != null) { return getURL().toString(); } return null; }
public String getText() { if (text != null) { return text; } else if (url != null) { return getURL().toString(); } return null; }
public String getText() { if (text != null) { return text; } else if (url != null) { return getURL().toString(); } return null; }
public String getText() { if (text != null) { return text; } else if (url != null) { return getURL().toString(); } return null; }
public String getText() { if (text != null) { return text; } else if (url != null) { return getURL().toString(); } return null; }
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>"); } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }
protected void updateFromTarget() { if (getTarget() != null) { putValue(Action.NAME, getTarget().getText()); putValue(Action.SHORT_DESCRIPTION, getTarget().getURL().toString()); putValue(VISITED_KEY, new Boolean(getTarget().getVisited())); } else { Object[] keys = getKeys(); if (keys == null) return; for (int i = 0; i < keys.length; i++) { putValue(keys[i].toString(), null); } } }