Examples of addAttributes()


Examples of com.github.dandelion.core.html.HtmlTag.addAttributes()

    default:
      tag = null;
    }
    if (tag != null) {
      tag.addAttributesOnlyName(asset.getAttributesOnlyName());
      tag.addAttributes(asset.getAttributes());
    }
    return tag;
  }
}
View Full Code Here

Examples of com.ibm.richtext.textlayout.attributes.AttributeMap.addAttributes()

                   
                    fRunLimit = Math.min(fRangeLimit, fText.characterStyleLimit(pos));
                    fRunLimit = Math.min(fRunLimit, fText.paragraphLimit(pos));
                    if (fRunStart < fRunLimit) {
                        style = fText.paragraphStyleAt(pos);
                        style = style.addAttributes(fText.characterStyleAt(pos));
                    }
                }
                fStyle = fFontResolver.applyFont(style);
            }
        }
View Full Code Here

Examples of com.psddev.dari.util.HtmlElement.addAttributes()

        if (element == null) {
            element = new HtmlElement();

            element.setName(name);
            element.addAttributes(attributes);

            List<HtmlNode> nodes = getHeadNodes();

            if (ObjectUtils.isBlank(nodes)) {
                nodes.add(element);
View Full Code Here

Examples of com.sishuok.es.common.utils.html.jsoup.SishuokWhitelist.addAttributes()

        whitelist.addTags("dd", "dl", "dt", "em", "hr", "h1", "h2", "h3", "h4", "h5", "h6", "i", "img");
        whitelist.addTags("li", "ol", "p", "pre", "q", "small", "strike", "strong", "sub", "sup", "table");
        whitelist.addTags("tbody", "td", "tfoot", "th", "thead", "tr", "u", "ul");

        //删除以on开头的(事件)
        whitelist.addAttributes(":all", "on");
        Document dirty = Jsoup.parseBodyFragment(html, "");
        SishuokCleaner cleaner = new SishuokCleaner(whitelist);
        Document clean = cleaner.clean(dirty);

        return clean.body().html();
View Full Code Here

Examples of com.volantis.xml.sax.recorder.impl.attributes.AttributeContainerBuilder.addAttributes()

        int offset1 = builder.getOffset();
        AttributesImpl attributes = new AttributesImpl();
        attributes.addAttribute("", "abc", "abc", "CDATA", "123");
        attributes.addAttribute("", "xyz", "xyz", "CDATA", "456");
        builder.addAttributes(attributes);

        int offset2 = builder.getOffset();
        builder.addAttributes(attributes);
        int offset3 = builder.getOffset();
View Full Code Here

Examples of com.volantis.xml.sax.recorder.impl.attributes.AttributeContainerBuilderImpl.addAttributes()

        int offset1 = builder.getOffset();
        AttributesImpl attributes = new AttributesImpl();
        attributes.addAttribute("", "abc", "abc", "CDATA", "123");
        attributes.addAttribute("", "xyz", "xyz", "CDATA", "456");
        builder.addAttributes(attributes);

        int offset2 = builder.getOffset();
        builder.addAttributes(attributes);
        int offset3 = builder.getOffset();
View Full Code Here

Examples of com.xmlcalabash.util.TreeWriter.addAttributes()

                tree.addPI(child.getNodeName().getLocalName(), child.getStringValue());
            } else if (child.getNodeKind() == XdmNodeKind.TEXT) {
                tree.addText(child.getStringValue());
            } else {
                tree.addStartElement(child);
                tree.addAttributes(child);
                tree.startContent();

                // Serialize the *whole* thing, then strip off the start and end tags, because
                // otherwise namespace fixup messes with the namespace bindings
                ByteArrayOutputStream outstr = new ByteArrayOutputStream();
View Full Code Here

Examples of fr.soleil.comete.bean.technicaldata.full.genericclasses.treeutil.TreeNodeMember.addAttributes()

                                {
                                    if(!memberNode.isBuilt())
                                    {
                                        try
                                        {
                                            memberNode.addAttributes();
                                            memberNode.setBuilt(true);
                                        }
                                        catch (DevFailed e)
                                        {
                                            System.out.println("Device " + memberNode.getDeviceName() + " is not alive." );
View Full Code Here

Examples of java.text.AttributedString.addAttributes()

            char c = stream.readChar();
            int start = 0;
            while (c != CharacterIterator.DONE) {
                int limit = stream.readInt();
                Map atts = (Map) stream.readObject();
                result.addAttributes(atts, start, limit);
                start = limit;
                c = stream.readChar();
            }
        }
        return result;
View Full Code Here

Examples of javax.swing.text.AbstractDocument.BranchElement.addAttributes()

        ((BranchElement) paragraph).replace(0, 1, leaves);
        BranchElement branch = (BranchElement) doc.createBranchElement(root, null);
        leaves = new Element[1];
        leaves[0] = doc.createLeafElement(branch, null, 16, 21);
        branch.replace(0, 0, leaves);
        branch.addAttributes(boldFalse);
        branch.addAttributes(italicFalse);
        // Add this branch to the root
        ((BranchElement) root).replace(1, 0, new Element[] { branch });
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.