static void processLink(HTMLComponent htmlC, String link) { boolean process = true; if (htmlC.getHTMLCallback() != null) { process = htmlC.getHTMLCallback().linkClicked(htmlC, htmlC.convertURL(link)); } if (process) { if (!link.startsWith("#")) { htmlC.setPage(htmlC.convertURL(link)); } else { // local anchor String anchorName = link.substring(1); htmlC.goToAnchor(anchorName); } } }