Search in sources :

Example 6 with UIImage

use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.

the class Block303 method output.

@Override
public void output(HtmlWriter html) {
    if (items.size() == 0) {
        for (int i = 0; i < 4; i++) {
            UrlRecord url = new UrlRecord();
            url.setName("(名称)");
            url.setSite("#");
            UIImage img = new UIImage();
            img.setSrc("jui/phone/block301-leftIcon.png");
            this.addItem(url, img);
        }
    }
    html.println("<!-- %s -->", this.getClass().getName());
    html.println("<div class='block303'>");
    for (UrlRecord url : items.keySet()) {
        html.println("<div role='item'>");
        html.println("<div role='image'>");
        html.println("<a href='%s'>", url.getUrl());
        items.get(url).output(html);
        html.println("</a>", url.getUrl());
        html.println("</div>");
        html.println("<div role='title'>");
        html.println("<a href='%s'>%s</a>", url.getUrl(), url.getName());
        html.println("</div>");
        html.println("</div>");
    }
    html.println("</div>");
}
Also used : UrlRecord(cn.cerc.jpage.core.UrlRecord) UIImage(cn.cerc.jui.vcl.UIImage)

Example 7 with UIImage

use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.

the class Block602 method output.

@Override
public void output(HtmlWriter html) {
    html.println("<!-- %s -->", this.getClass().getName());
    html.println("<div class=\"block602\">");
    for (UIImage button : items) button.output(html);
    html.println("</div>");
}
Also used : UIImage(cn.cerc.jui.vcl.UIImage)

Example 8 with UIImage

use of cn.cerc.jui.vcl.UIImage in project summer-mis by cn-cerc.

the class Block602 method addImage.

public UIImage addImage(String imgUrl) {
    UIImage image = new UIImage();
    image.setSrc(imgUrl);
    items.add(image);
    return image;
}
Also used : UIImage(cn.cerc.jui.vcl.UIImage)

Aggregations

UIImage (cn.cerc.jui.vcl.UIImage)8 UrlRecord (cn.cerc.jpage.core.UrlRecord)1