use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.
the class Block401 method output.
@Override
public void output(HtmlWriter html) {
html.println("<!-- %s -->", this.getClass().getName());
html.print("<section class='block401'>");
html.print("<div class='up_con'>");
product.output(html);
html.print("<div role='title'>%s</div>", this.title);
html.print("<div role='operation'>");
for (UIImage image : images) {
html.print("<span role='image'>");
image.output(html);
html.print("</span>");
}
describe.output(html);
html.print("</div>");
html.print("<div class='info'>");
remark.output(html);
button.output(html);
html.print("</div>");
html.print("</div>");
html.println("</section>");
}
use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.
the class Block401 method addImage.
public void addImage(String imgUrl) {
UIImage image = new UIImage();
image.setSrc(imgUrl);
images.add(image);
}
use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.
the class Block601 method addImage.
public UIImage addImage(String imgUrl) {
UIImage image = new UIImage();
image.setSrc(imgUrl);
items.add(image);
return image;
}
use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.
the class Block601 method output.
@Override
public void output(HtmlWriter html) {
if (items.size() == 0) {
UIImage image = new UIImage();
image.setAlt("(image)");
image.setWidth("100%").setHeight("192px");
image.setSrc("");
items.add(image);
}
html.println("<!-- %s -->", this.getClass().getName());
html.println("<div class=\"block601\">");
html.println("<div class=\"swiper-wrapper\">");
for (UIImage image : items) {
html.println("<div class=\"swiper-slide\">");
image.output(html);
html.println("</div>");
}
html.println("</div>");
html.println("<div class=\"swiper-pagination\"></div>");
html.println("</div>");
}
use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.
the class Block301 method output.
@Override
public void output(HtmlWriter html) {
html.println("<!-- %s -->", this.getClass().getName());
html.print("<div class='block301'>");
leftIcon.output(html);
html.print("<a href='%s'>", operator.getUrl());
html.print("<div>");
html.print("<div role='title'>");
html.print("<span role='title'>");
for (UIImage image : list) {
html.print(image.toString());
}
html.print("%s</span>", title);
rightIcon.output(html);
html.print("</div>");
html.print("<div role='describe'>");
int i = 0;
for (String key : items.keySet()) {
html.println("<span>%s:%s</span>", key, items.get(key));
i++;
if (i % 2 == 0) {
html.println("<br />");
}
}
html.print("</div>");
html.print("</div>");
html.print("</a>");
html.print("<div style='clear: both'></div>");
html.println("</div>");
}