/** * Gets the baseURL attribute of the RenderingContext object * * @return The baseURL value */ public String getBaseURL() { return uac.getBaseURL(); }
/** * Gets the baseURL attribute of the RenderingContext object * * @return The baseURL value */ public String getBaseURL() { return uac.getBaseURL(); }
public URL getURL() { URL base = null; try { base = new URL(getSharedContext().getUac().getBaseURL()); } catch (MalformedURLException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } return base; }
public URL getURL() { URL base = null; try { base = new URL(getSharedContext().getUac().getBaseURL()); } catch (MalformedURLException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } return base; }
refs[i].setUri(uri); } else { refs[i].setUri(_uac.getBaseURL() + "#inline_style_" + (++inlineStyleCount)); Stylesheet sheet = _stylesheetFactory.parse( new StringReader(refs[i].getContent()), refs[i]);
refs[i].setUri(uri); } else { refs[i].setUri(_uac.getBaseURL() + "#inline_style_" + (++inlineStyleCount)); Stylesheet sheet = _stylesheetFactory.parse( new StringReader(refs[i].getContent()), refs[i]);
/** * Flushes any stylesheet associated with this stylereference (based on the user agent callback) that are in cache. */ public void flushStyleSheets() { String uri = _uac.getBaseURL(); StylesheetInfo info = new StylesheetInfo(); info.setUri(uri); info.setOrigin(StylesheetInfo.AUTHOR); if (_stylesheetFactory.containsStylesheet(uri)) { _stylesheetFactory.removeCachedStylesheet(uri); XRLog.cssParse("Removing stylesheet '" + uri + "' from cache by request."); } else { XRLog.cssParse("Requested removing stylesheet '" + uri + "', but it's not in cache."); } }
/** * Flushes any stylesheet associated with this stylereference (based on the user agent callback) that are in cache. */ public void flushStyleSheets() { String uri = _uac.getBaseURL(); StylesheetInfo info = new StylesheetInfo(); info.setUri(uri); info.setOrigin(StylesheetInfo.AUTHOR); if (_stylesheetFactory.containsStylesheet(uri)) { _stylesheetFactory.removeCachedStylesheet(uri); XRLog.cssParse("Removing stylesheet '" + uri + "' from cache by request."); } else { XRLog.cssParse("Requested removing stylesheet '" + uri + "', but it's not in cache."); } }
g2r.getSharedContext().getTextRenderer().setSmoothingThreshold(0); g2r.getSharedContext().setUserAgentCallback(panel.getSharedContext().getUserAgentCallback()); g2r.setDocument(panel.getDocument(), panel.getSharedContext().getUac().getBaseURL()); g2r.getSharedContext().setReplacedElementFactory(panel.getSharedContext().getReplacedElementFactory()); g2r.layout(g2, null);
g2r.getSharedContext().getTextRenderer().setSmoothingThreshold(0); g2r.getSharedContext().setUserAgentCallback(panel.getSharedContext().getUserAgentCallback()); g2r.setDocument(panel.getDocument(), panel.getSharedContext().getUac().getBaseURL()); g2r.getSharedContext().setReplacedElementFactory(panel.getSharedContext().getReplacedElementFactory()); g2r.layout(g2, null);