public NamespaceHandler getNamespaceHandler() { return _sharedContext.getNamespaceHandler(); }
public NamespaceHandler getNamespaceHandler() { return _sharedContext.getNamespaceHandler(); }
private String findLink(BasicPanel panel, Element e) { String uri = null; for (Node node = e; node.getNodeType() == Node.ELEMENT_NODE; node = node.getParentNode()) { uri = panel.getSharedContext().getNamespaceHandler().getLinkUri((Element) node); if (uri != null) { break; } } return uri; } }
private String findLink(BasicPanel panel, Element e) { String uri = null; for (Node node = e; node.getNodeType() == Node.ELEMENT_NODE; node = node.getParentNode()) { uri = panel.getSharedContext().getNamespaceHandler().getLinkUri((Element) node); if (uri != null) { break; } } return uri; } }
protected String findLink(Element e) { String uri = null; for (Node node = e; node.getNodeType() == Node.ELEMENT_NODE; node = node .getParentNode()) { uri = _parent.getSharedContext().getNamespaceHandler().getLinkUri( (Element) node); if (uri != null) { break; } } return uri; }
public String getDocumentTitle() { if (_doc == null) { return null; } NamespaceHandler nsh = getSharedContext().getNamespaceHandler(); if (nsh == null) { return null; } return nsh.getDocumentTitle(_doc); }
/** * Returns the title as reported by the NamespaceHandler assigned to the SharedContext in this panel. For an HTML * document, this will be the contents of /html/head/title. * * @return the document title, or "" if the namespace handler cannot find a title, or if there is no current document * in the panel. */ public String getDocumentTitle() { return doc == null ? "" : getSharedContext().getNamespaceHandler().getDocumentTitle(doc); }
/** * Returns the title as reported by the NamespaceHandler assigned to the SharedContext in this panel. For an HTML * document, this will be the contents of /html/head/title. * * @return the document title, or "" if the namespace handler cannot find a title, or if there is no current document * in the panel. */ public String getDocumentTitle() { return doc == null ? "" : getSharedContext().getNamespaceHandler().getDocumentTitle(doc); }
/** * Reloads the document using the same base URL and namespace handler. Reloading will pick up changes to styles * within the document. * * @param doc The document to reload. */ public void reloadDocument(Document doc) { if (this.doc == null) { XRLog.render("Reload called on BasicPanel, but there is no document set on the panel yet."); return; } ; this.doc = doc; setDocument(this.doc, getSharedContext().getBaseURL(), getSharedContext().getNamespaceHandler()); }
/** * Reloads the document using the same base URL and namespace handler. Reloading will pick up changes to styles * within the document. * * @param doc The document to reload. */ public void reloadDocument(Document doc) { if (this.doc == null) { XRLog.render("Reload called on BasicPanel, but there is no document set on the panel yet."); return; } ; this.doc = doc; setDocument(this.doc, getSharedContext().getBaseURL(), getSharedContext().getNamespaceHandler()); }
private void setDocument(Document doc, String url, NamespaceHandler nsh) { this.doc = doc; sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { sharedContext.getCss().flushStyleSheets(); } else { sharedContext.getCss().flushAllStyleSheets(); } sharedContext.setBaseURL(url); sharedContext.setNamespaceHandler(nsh); sharedContext.getCss().setDocumentContext( sharedContext, sharedContext.getNamespaceHandler(), doc, new NullUserInterface() ); }
private void setDocument(Document doc, String url, NamespaceHandler nsh) { this.doc = doc; sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { sharedContext.getCss().flushStyleSheets(); } else { sharedContext.getCss().flushAllStyleSheets(); } sharedContext.setBaseURL(url); sharedContext.setNamespaceHandler(nsh); sharedContext.getCss().setDocumentContext( sharedContext, sharedContext.getNamespaceHandler(), doc, new NullUserInterface() ); }
private void setDocument(Document doc, String url, NamespaceHandler nsh) { this.doc = doc; sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { sharedContext.getCss().flushStyleSheets(); } else { sharedContext.getCss().flushAllStyleSheets(); } sharedContext.setBaseURL(url); sharedContext.setNamespaceHandler(nsh); sharedContext.getCss().setDocumentContext( sharedContext, sharedContext.getNamespaceHandler(), doc, new NullUserInterface() ); }
public void setDocument(Document doc, String url, NamespaceHandler nsh) { _doc = doc; getFontResolver().flushFontFaceFonts(); _sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { _sharedContext.getCss().flushStyleSheets(); } else { _sharedContext.getCss().flushAllStyleSheets(); } _sharedContext.setBaseURL(url); _sharedContext.setNamespaceHandler(nsh); _sharedContext.getCss().setDocumentContext(_sharedContext, _sharedContext.getNamespaceHandler(), doc, new NullUserInterface()); getFontResolver().importFontFaces(_sharedContext.getCss().getFontFaceRules()); }
public void setDocument(Document doc, String url, NamespaceHandler nsh) { _doc = doc; getFontResolver().flushFontFaceFonts(); _sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { _sharedContext.getCss().flushStyleSheets(); } else { _sharedContext.getCss().flushAllStyleSheets(); } _sharedContext.setBaseURL(url); _sharedContext.setNamespaceHandler(nsh); _sharedContext.getCss().setDocumentContext(_sharedContext, _sharedContext.getNamespaceHandler(), doc, new NullUserInterface()); getFontResolver().importFontFaces(_sharedContext.getCss().getFontFaceRules()); }
public void setDocument(Document doc, String url, NamespaceHandler nsh) { _doc = doc; getFontResolver().flushFontFaceFonts(); _sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { _sharedContext.getCss().flushStyleSheets(); } else { _sharedContext.getCss().flushAllStyleSheets(); } _sharedContext.setBaseURL(url); _sharedContext.setNamespaceHandler(nsh); _sharedContext.getCss().setDocumentContext(_sharedContext, _sharedContext.getNamespaceHandler(), doc, new NullUserInterface()); getFontResolver().importFontFaces(_sharedContext.getCss().getFontFaceRules()); }
public void setDocument(Document doc, String url, NamespaceHandler nsh) { _doc = doc; getFontResolver().flushFontFaceFonts(); _sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { _sharedContext.getCss().flushStyleSheets(); } else { _sharedContext.getCss().flushAllStyleSheets(); } _sharedContext.setBaseURL(url); _sharedContext.setNamespaceHandler(nsh); _sharedContext.getCss().setDocumentContext( _sharedContext, _sharedContext.getNamespaceHandler(), doc, new NullUserInterface()); getFontResolver().importFontFaces(_sharedContext.getCss().getFontFaceRules()); }
public void setDocument(Document doc, String url, NamespaceHandler nsh) { _doc = doc; getFontResolver().flushFontFaceFonts(); _sharedContext.reset(); if (Configuration.isTrue("xr.cache.stylesheets", true)) { _sharedContext.getCss().flushStyleSheets(); } else { _sharedContext.getCss().flushAllStyleSheets(); } _sharedContext.setBaseURL(url); _sharedContext.setNamespaceHandler(nsh); _sharedContext.getCss().setDocumentContext( _sharedContext, _sharedContext.getNamespaceHandler(), doc, new NullUserInterface()); getFontResolver().importFontFaces(_sharedContext.getCss().getFontFaceRules()); }
public void setDocument(Document doc, String url, NamespaceHandler nsh) { fireDocumentStarted(); resetScrollPosition(); setRootBox(null); this.doc = doc; //have to do this first if (Configuration.isTrue("xr.cache.stylesheets", true)) { getSharedContext().getCss().flushStyleSheets(); } else { getSharedContext().getCss().flushAllStyleSheets(); } getSharedContext().reset(); getSharedContext().setBaseURL(url); getSharedContext().setNamespaceHandler(nsh); getSharedContext().getCss().setDocumentContext(getSharedContext(), getSharedContext().getNamespaceHandler(), doc, this); repaint(); }
public void setDocument(Document doc, String url, NamespaceHandler nsh) { fireDocumentStarted(); resetScrollPosition(); setRootBox(null); this.doc = doc; //have to do this first if (Configuration.isTrue("xr.cache.stylesheets", true)) { getSharedContext().getCss().flushStyleSheets(); } else { getSharedContext().getCss().flushAllStyleSheets(); } getSharedContext().reset(); getSharedContext().setBaseURL(url); getSharedContext().setNamespaceHandler(nsh); getSharedContext().getCss().setDocumentContext(getSharedContext(), getSharedContext().getNamespaceHandler(), doc, this); repaint(); }