use of cn.cerc.jpage.core.UrlRecord in project summer-mis by cn-cerc.
the class Block118 method addUrl.
public UrlRecord addUrl() {
UrlRecord url = new UrlRecord();
urls.add(url);
return url;
}
use of cn.cerc.jpage.core.UrlRecord in project summer-mis by cn-cerc.
the class Block118 method output.
@Override
public void output(HtmlWriter html) {
html.println("<!-- %s -->", this.getClass().getName());
html.print("<div class='block118' role='row'>");
left.output(html);
if (urls.size() == 0) {
UrlRecord url = addUrl();
url.setName("(Url)");
}
for (UrlRecord url : urls) {
html.print("<span role='right'>");
html.print("<a href=\"%s\"", url.getUrl());
if (url.getTitle() != null) {
html.print(" title=\"%s\"", url.getTitle());
}
html.println(">%s</a>", url.getName());
html.print("</span>");
}
html.println("</div>");
}
Aggregations