@@ -0,0 +1,1754 @@
+package br.com.rcmoutinho.javatohtml.core.tag;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Map;%0A%0Aimport br.com.rcmoutinho.javatohtml.core.Element;%0A%0A/**%0A * Implementa%C3%A7%C3%A3o da tag HTML &lt;img&gt;. %3Cbr%3E%0A * %3Cbr%3E%0A * Ref.: http://www.w3schools.com/tags/tag_img.asp%0A * %0A * @rcmoutinho%0A * @author rodrigo.moutinho%0A * @date 11 de jan de 2017%0A * @email rcm1989@gmail.com%0A */%0Apublic class Img extends Element%3CImg%3E %7B%0A%0A%09private String alt;%0A%09private String height;%0A%09private String src;%0A%09private String width;%0A%0A%09@Override%0A%09protected String getName() %7B%0A%09%09return %22img%22;%0A%09%7D%0A%0A%09@Override%0A%09protected Map%3CString, String%3E getSpecificAttributesMap() %7B%0A%09%09Map%3CString, String%3E map = new LinkedHashMap%3CString, String%3E();%0A%0A%09%09if (this.alt != null)%0A%09%09%09map.put(%22alt%22, this.alt);%0A%0A%09%09if (this.height != null)%0A%09%09%09map.put(%22height%22, this.height);%0A%0A%09%09if (this.src != null)%0A%09%09%09map.put(%22src%22, this.src);%0A%0A%09%09if (this.width != null)%0A%09%09%09map.put(%22width%22, this.width);%0A%0A%09%09return map;%0A%09%7D%0A%0A%09@Override%0A%09protected Img getType() %7B%0A%09%09return this;%0A%09%7D%0A%0A%09/**%0A%09 * Specifies an alternate text for an image.%0A%09 * %0A%09 * @param alt%0A%09 *            text%0A%09 * @return %7B@link Img%7D%0A%09 */%0A%09public Img alt(String alt) %7B%0A%09%09this.alt = alt;%0A%09%09return this;%0A%09%7D%0A%0A%09/**%0A%09 * Specifies the height of an image.%0A%09 * %0A%09 * @param height%0A%09 *            pixels%0A%09 * @return %7B@link Img%7D%0A%09 */%0A%09public Img height(String height) %7B%0A%09%09this.height = height;%0A%09%09return this;%0A%09%7D%0A%0A%09/**%0A%09 * Specifies the URL of an image.%0A%09 * %0A%09 * @param src%0A%09 *            URL%0A%09 * @return %7B@link Img%7D%0A%09 */%0A%09public Img src(String src) %7B%0A%09%09this.src = src;%0A%09%09return this;%0A%09%7D%0A%0A%09/**%0A%09 * Specifies the width of an image.%0A%09 * %0A%09 * @param width%0A%09 *            pixels%0A%09 * @return %7B@link Img%7D%0A%09 */%0A%09public Img width(String width) %7B%0A%09%09this.width = width;%0A%09%09return this;%0A%09%7D%0A%7D%0A

Suporte para a tag <img>.