Examples of attr()


Examples of com.astamuse.asta4d.extnode.GroupNode.attr()

        // copy all the attrs to the wrapping group node
        Iterator<Attribute> attrs = elem.attributes().iterator();
        Attribute attr;
        while (attrs.hasNext()) {
            attr = attrs.next();
            wrappingNode.attr(attr.getKey(), attr.getValue());
        }

        // a embed template file may by included many times in same parent
        // template, so we have to avoid duplicated snippet refs
        resetSnippetRefs(wrappingNode);
View Full Code Here

Examples of com.astamuse.asta4d.extnode.SnippetNode.attr()

    // @ShowCode:showPassvariablesEnd
    // @ShowCode:showDynamicsnippetStart
    public Renderer createDynamicSnippet() {
        Renderer render = new GoThroughRenderer();
        Element snippet = new SnippetNode("SimpleSnippet");
        snippet.attr("name", "Dynamic Snippet");
        render.add("div${symbol_pound}snippet", snippet);
        Element embed = new EmbedNode("/templates/embed/embedded.html");
        render.add("div${symbol_pound}embed", embed);
        return render;
    }
View Full Code Here

Examples of com.dotcms.repackage.org.jsoup.nodes.Element.attr()

  private static void getParseContainer(Document templateBody){
    Elements divHiddenParseContainer = templateBody.getElementsByAttributeValue(STYLE_ATTRIBUTE, STYLE_DISPLAY_NONE);
    for(Element singleDiv : divHiddenParseContainer){
      if(!singleDiv.attr(ID_ATTRIBUTE).equals("metatagToAdd")){
        Element parent = singleDiv.parent();
        if(!parent.attr(ID_ATTRIBUTE).equals("metatagToAdd")){
          String html = singleDiv.html();
          singleDiv.remove();
          parent.append(html);
        }
      }
View Full Code Here

Examples of com.google.gwt.query.client.GQuery.attr()

    g.as(Effects).
        animate($$("$width: +=100; $border: +=4"), duration, EasingCurve.linear);

    final Timer timer = new Timer() {
      public void run() {
        assertEquals(540.0, Double.parseDouble(g.attr("width")));
        assertEquals(5.0, Double.parseDouble(g.attr("border")));
        finishTest();
      }
    };
    timer.schedule(duration * 2);
 
View Full Code Here

Examples of com.jamesmurty.utils.XMLBuilder.attr()

         XMLBuilder grantBuilder = grantsBuilder.elem("Grant");
         XMLBuilder granteeBuilder = grantBuilder.elem("Grantee").attr("xmlns:xsi",
               "http://www.w3.org/2001/XMLSchema-instance");

         if (grant.getGrantee() instanceof GroupGrantee) {
            granteeBuilder.attr("xsi:type", "Group").elem("URI").text(grant.getGrantee().getIdentifier());
         } else if (grant.getGrantee() instanceof CanonicalUserGrantee) {
            CanonicalUserGrantee grantee = (CanonicalUserGrantee) grant.getGrantee();
            granteeBuilder.attr("xsi:type", "CanonicalUser").elem("ID").text(grantee.getIdentifier()).up();
            if (grantee.getDisplayName() != null) {
               granteeBuilder.elem("DisplayName").text(grantee.getDisplayName());
View Full Code Here

Examples of com.joshondesign.xml.Elem.attr()

        rect.setStrokeWidth(0);
        page.clear();
        page.add(rect);
        Doc xdoc = saveAndReadback(doc);
        Elem e = xdoc.xpath("/svg/linearGradient/stop").iterator().next();
        assertTrue("0.0".equals(e.attr("offset")));
    }
    @Test public void testLinearGradientRect() throws Exception {
        MultiGradientFill grad = new LinearGradientFill()
                .setStartX(0).setEndX(100)
                .setStartY(0).setEndY(0)
View Full Code Here

Examples of com.joshondesign.xml.Elem.attr()

        page.add(rect);
        Doc xdoc = saveAndReadback(doc);
        Iterator<? extends Elem> it = xdoc.xpath("/svg/linearGradient/stop").iterator();
        it.next();
        Elem e = it.next();
        assertTrue("0.5".equals(e.attr("offset")));
    }

    private Doc saveAndReadback(SketchDocument doc) throws Exception {
        File file = File.createTempFile("amino.test", ".svg");
        u.p("wrote to tempfile: " + file.getAbsolutePath());
View Full Code Here

Examples of com.joshondesign.xml.Elem.attr()

        }
        */
        if("linearGradient".equals(e.attr(attName))) {
            Elem egrad = e.xpath("linearGradient").iterator().next();
            LinearGradientFill fill = new LinearGradientFill()
                    .setStartX(Double.parseDouble(egrad.attr("startX")))
                    .setStartY(Double.parseDouble(egrad.attr("startY")))
                    .setEndX(Double.parseDouble(egrad.attr("endX")))
                    .setEndY(Double.parseDouble(egrad.attr("endY")))
                    ;
            if(egrad.hasAttr("startXSnapped")) fill.setStartXSnapped(LinearGradientFill.Snap.valueOf(egrad.attr("startXSnapped")));
View Full Code Here

Examples of com.joshondesign.xml.Elem.attr()

        */
        if("linearGradient".equals(e.attr(attName))) {
            Elem egrad = e.xpath("linearGradient").iterator().next();
            LinearGradientFill fill = new LinearGradientFill()
                    .setStartX(Double.parseDouble(egrad.attr("startX")))
                    .setStartY(Double.parseDouble(egrad.attr("startY")))
                    .setEndX(Double.parseDouble(egrad.attr("endX")))
                    .setEndY(Double.parseDouble(egrad.attr("endY")))
                    ;
            if(egrad.hasAttr("startXSnapped")) fill.setStartXSnapped(LinearGradientFill.Snap.valueOf(egrad.attr("startXSnapped")));
            if(egrad.hasAttr("startYSnapped"))fill.setStartYSnapped(LinearGradientFill.Snap.valueOf(egrad.attr("startYSnapped")));
View Full Code Here

Examples of com.joshondesign.xml.Elem.attr()

        if("linearGradient".equals(e.attr(attName))) {
            Elem egrad = e.xpath("linearGradient").iterator().next();
            LinearGradientFill fill = new LinearGradientFill()
                    .setStartX(Double.parseDouble(egrad.attr("startX")))
                    .setStartY(Double.parseDouble(egrad.attr("startY")))
                    .setEndX(Double.parseDouble(egrad.attr("endX")))
                    .setEndY(Double.parseDouble(egrad.attr("endY")))
                    ;
            if(egrad.hasAttr("startXSnapped")) fill.setStartXSnapped(LinearGradientFill.Snap.valueOf(egrad.attr("startXSnapped")));
            if(egrad.hasAttr("startYSnapped"))fill.setStartYSnapped(LinearGradientFill.Snap.valueOf(egrad.attr("startYSnapped")));
            if(egrad.hasAttr("endXSnapped"))fill.setEndXSnapped(LinearGradientFill.Snap.valueOf(egrad.attr("endXSnapped")));
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.