Package org.rendersnake

Source Code of org.rendersnake.Canvas

package org.rendersnake;

import java.io.IOException;
import java.io.StringWriter;

import org.rendersnake.tag.ImageTag;

public class Canvas {

  public StringWriter out = new StringWriter();
 
  public ImageTag img() {
    return new ImageTag(out);
  }
  public ImageTag open_img() {
    return new ImageTag(out);
  }
  public ImageTag div() {
    return new ImageTag(out);
  }
 
  public ImageAttributes imgAttributes() {
      return new ImageAttributes();
  }
  public HtmlAttributes variable(String formVariable, String currentValue) throws IOException {
      return new HtmlAttributes().name("_rs_"+formVariable).value(currentValue);
  }
}
TOP

Related Classes of org.rendersnake.Canvas

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.