/** * Gets the attributeValue attribute of the StandardAttributeResolver object * * @param e PARAM * @param attrName PARAM * @return The attributeValue value */ public String getAttributeValue(Object e, String attrName) { return nsh.getAttributeValue((Element) e, attrName); }
/** * Gets the link attribute of the StandardAttributeResolver object * * @param e PARAM * @return The link value */ public boolean isLink(Object e) { return nsh.getLinkUri((Element) e) != null; }
/** * Gets the class attribute of the StandardAttributeResolver object * * @param e PARAM * @return The class value */ public String getClass(Object e) { return nsh.getClass((Element) e); }
if (elem != null) { NamespaceHandler handler = _sharedContext.getNamespaceHandler(); String uri = handler.getLinkUri(elem); if (uri != null) { if (uri.length() > 1 && uri.charAt(0) == '#') { if (!"".equals(handler.getAttributeValue(elem, "onclick"))) { action = PdfAction.javaScript(handler.getAttributeValue(elem, "onclick"), _writer); } else { action.put(PdfName.S, PdfName.GOTO);
private void addBoxID(LayoutContext c) { if (! isAnonymous()) { String name = c.getNamespaceHandler().getAnchorName(getElement()); if (name != null) { c.addBoxId(name, this); } String id = c.getNamespaceHandler().getID(getElement()); if (id != null) { c.addBoxId(id, this); } } }
long st = System.currentTimeMillis(); StylesheetInfo defaultStylesheet = _nsh.getDefaultStylesheet(_stylesheetFactory); if (defaultStylesheet != null) { infos.add(defaultStylesheet); StylesheetInfo[] refs = _nsh.getStylesheets(_doc); int inlineStyleCount = 0; if (refs != null) {
/** * Gets the iD attribute of the StandardAttributeResolver object * * @param e PARAM * @return The iD value */ public String getID(Object e) { return nsh.getID((Element) e); }
if (images.getLength() > 0) { Element img = (Element) images.item(0); String uri = c.getNamespaceHandler().getImageSourceURI(img); ImageResource res = uac.getImageResource(uri); SWTFSImage fsi = (SWTFSImage) res.getImage();
/** * 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); }
/** * Gets the elementStyling attribute of the StandardAttributeResolver object * * @param e PARAM * @return The elementStyling value */ public String getElementStyling(Object e) { return nsh.getElementStyling((Element) e); }
if (elem != null) { NamespaceHandler handler = _sharedContext.getNamespaceHandler(); String uri = handler.getLinkUri(elem); if (uri != null) { if (uri.length() > 1 && uri.charAt(0) == '#') { if (!"".equals(handler.getAttributeValue(elem, "onclick"))) { action = PdfAction.javaScript(handler.getAttributeValue(elem, "onclick"), _writer); } else { action.put(PdfName.S, PdfName.GOTO);
private void addBoxID(LayoutContext c) { if (! isAnonymous()) { String name = c.getNamespaceHandler().getAnchorName(getElement()); if (name != null) { c.addBoxId(name, this); } String id = c.getNamespaceHandler().getID(getElement()); if (id != null) { c.addBoxId(id, this); } } }
long st = System.currentTimeMillis(); StylesheetInfo defaultStylesheet = _nsh.getDefaultStylesheet(_stylesheetFactory); if (defaultStylesheet != null) { infos.add(defaultStylesheet); StylesheetInfo[] refs = _nsh.getStylesheets(_doc); int inlineStyleCount = 0; if (refs != null) {
/** * Gets the iD attribute of the StandardAttributeResolver object * * @param e PARAM * @return The iD value */ public String getID(Object e) { return nsh.getID((Element) e); }
if (re == null) { Image im = null; String imageSrc = context.getNamespaceHandler().getImageSourceURI(elem); if (imageSrc == null || imageSrc.length() == 0) { XRLog.layout(Level.WARNING, "No source provided for img element.");
/** * 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); }
/** * Gets the elementStyling attribute of the StandardAttributeResolver object * * @param e PARAM * @return The elementStyling value */ public String getElementStyling(Object e) { return nsh.getElementStyling((Element) e); }
if (elem != null) { NamespaceHandler handler = _sharedContext.getNamespaceHandler(); String uri = handler.getLinkUri(elem); if (uri != null) { if (uri.length() > 1 && uri.charAt(0) == '#') { if (!"".equals(handler.getAttributeValue(elem, "onclick"))) { action = PdfAction.javaScript(handler.getAttributeValue(elem, "onclick"), _writer); } else { action.put(PdfName.S, PdfName.GOTO);
/** * Gets the link attribute of the StandardAttributeResolver object * * @param e PARAM * @return The link value */ public boolean isLink(Object e) { return nsh.getLinkUri((Element) e) != null; }
/** * Gets the attributeValue attribute of the StandardAttributeResolver object * * @param e PARAM * @param attrName PARAM * @return The attributeValue value */ public String getAttributeValue(Object e, String attrName) { return nsh.getAttributeValue((Element) e, attrName); }