Examples of writeAttribute()


Examples of org.geomajas.rendering.GraphicsDocument.writeAttribute()

    StringWriter writer = new StringWriter();
    GraphicsDocument document = new DefaultVmlDocument(writer);
    document.writeElement("g", true);
    document.writeId("featureId");
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    document.closeElement();
    document.closeElement();
    Assert.assertEquals("<g id=\"featureId\"><g style=\"my-super-style:true;\" id=\"featureId.styleId\"/></g>",
        writer.getBuffer().toString());
View Full Code Here

Examples of org.geomajas.rendering.GraphicsDocument.writeAttribute()

    StringWriter writer = new StringWriter();
    GraphicsDocument document = new DefaultVmlDocument(writer);
    document.writeElement("g", true);
    document.writeId("featureId");
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    Assert.assertEquals("featureId.styleId", document.getCurrentId());
    document.flush();
    Assert.assertEquals("<g id=\"featureId\"><g style=\"my-super-style:true;\" id=\"featureId.styleId\"/></g>", writer.getBuffer().toString());
  }
View Full Code Here

Examples of org.geomajas.rendering.GraphicsDocument.writeAttribute()

    document.setRootId("bla");
    document.writeElement("g", true);
    document.writeId("featureId");
    Assert.assertEquals("bla.featureId", document.getCurrentId());
    document.writeElement("g", true);
    document.writeAttribute("style", "my-super-style:true;");
    document.writeId("styleId");
    Assert.assertEquals("bla.featureId.styleId", document.getCurrentId());
    document.closeElement();
    document.closeElement();
    Assert.assertEquals("<g id=\"bla.featureId\"><g style=\"my-super-style:true;\" id=\"bla.featureId.styleId\"/></g>", writer.getBuffer().toString());
View Full Code Here

Examples of org.tinyradius.attribute.RadiusAttribute.writeAttribute()

  protected byte[] getAttributeBytes()
  throws IOException {
    ByteArrayOutputStream bos = new ByteArrayOutputStream(MAX_PACKET_LENGTH);
    for (Iterator i = attributes.iterator(); i.hasNext();) {
      RadiusAttribute a = (RadiusAttribute)i.next();
      bos.write(a.writeAttribute());
    }
    bos.flush();
    return bos.toByteArray();
  }
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.