Examples of attribute()


Examples of org.apache.tapestry.IMarkupWriter.attribute()

    protected void writeHiddenFields()
    {
        IMarkupWriter writer = getHiddenFieldWriter();
       
        writer.begin("div");
        writer.attribute("style", "display:none;");
        writer.attribute("id", _form.getName() + "hidden");
       
        writeHiddenFieldList(writer);
       
        writer.end();
View Full Code Here

Examples of org.apache.tapestry.NestedMarkupWriter.attribute()

        writer.printRaw("<ajax-response>");

        expect(writer.getNestedWriter()).andReturn(nested);

        nested.begin("response");
        nested.attribute("id", "id1");
        nested.attribute("type", ResponseBuilder.ELEMENT_TYPE);

        comp1.render(nested, cycle);

        replay();
View Full Code Here

Examples of org.apache.tapestry.dom.Element.attribute()

        assertSame(w.end(), root);

        w.write("after child");

        root.attribute("gnip", "gnop");

        assertEquals(
                w.toString(),
                "<root foo=\"bar\" gnip=\"gnop\">before child<nested>inner text</nested>after child</root>");
    }
View Full Code Here

Examples of org.apache.tapestry5.dom.Element.attribute()

        assertSame(w.end(), root);

        w.write("after child");

        root.attribute("gnip", "gnop");

        assertEquals(w.toString(),
                     "<root foo=\"bar\" gnip=\"gnop\">before child<nested>inner text</nested>after child</root>");
    }
View Full Code Here

Examples of org.asciidoctor.AttributesBuilder.attribute()

        if (config.getBoolean(Keys.ASCIIDOCTOR_ATTRIBUTES_EXPORT, false)) {
            final String prefix = config.getStringKeys.ASCIIDOCTOR_ATTRIBUTES_EXPORT_PREFIX, "");
            for (final Iterator<String> it = config.getKeys(); it.hasNext();) {
                final String key = it.next();
                if (!key.startsWith("asciidoctor")) {
                    attributes.attribute(prefix + key.replace(".", "_"), config.getProperty(key));
                }
            }
        }
        final Configuration optionsSubset = config.subset(Keys.ASCIIDOCTOR_OPTION);
        final Options options = options().attributes(attributes.get()).get();
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.AlternateOrderingAttribute.attribute()

        {
          // Il campo ha una annotazione @AlternateOrderingAttribute

          AlternateOrderingAttribute annotation = fields[j].getAnnotation(AlternateOrderingAttribute.class);

          attr.setAlternateOrderingAttribute(annotation.attribute());
        }

        tmp.add(attr);
      }
    }
View Full Code Here

Examples of org.boco.seamwebappgen.annotations.ShowInForm.attribute()

        {
          // Il campo ha una annotazione @AlternateOrderingAttribute

          AlternateOrderingAttribute annotation = fields[j].getAnnotation(AlternateOrderingAttribute.class);

          attr.setAlternateOrderingAttribute(annotation.attribute());
        }

        tmp.add(attr);
      }
    }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.util.xml.Element.attribute()

  public void parseSequenceFlowConditionExpression(Element seqFlowElement, TransitionImpl seqFlow) {
    Element conditionExprElement = seqFlowElement.element("conditionExpression");
    if (conditionExprElement != null) {
      String expression = conditionExprElement.getText().trim();
      String type = conditionExprElement.attributeNS(BpmnParser.XSI_NS, "type");
      String language = conditionExprElement.attribute("language");
      String resource = conditionExprElement.attributeNS(BpmnParser.ACTIVITI_BPMN_EXTENSIONS_NS, "resource");

      if (type != null) {
        String value = type.contains(":") ? resolveName(type) : BpmnParser.BPMN20_NS + ":" + type;
        if (!value.equals(ATTRIBUTEVALUE_T_FORMAL_EXPRESSION)) {
View Full Code Here

Examples of org.dom4j.Element.attribute()

            Element e = (Element)node;
            if(localName == null) {
                result.addAll(e.attributes());
            }
            else {
                Attribute attr = e.attribute(e.getQName().getDocumentFactory().createQName(localName, "", namespaceUri));
                if(attr != null) {
                    result.add(attr);
                }
            }
        }
View Full Code Here

Examples of org.dom4j.Element.attribute()

      Element response_lid = presentationXML.element("response_lid");
      if (response_lid == null && flow != null) {
        response_lid = flow.element("response_lid");
      }
      String identQuestion = response_lid.attribute("ident").getText();
      instance.setIdent(identQuestion);
      String shuffle = response_lid.element("render_choice").attributeValue("shuffle");
      if (shuffle == null) shuffle = "Yes";
      instance.setShuffle(shuffle.equals("Yes"));
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.