Search in sources :

Example 16 with UrlRecord

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;
}
Also used : UrlRecord(cn.cerc.jpage.core.UrlRecord)

Example 17 with UrlRecord

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>");
}
Also used : UrlRecord(cn.cerc.jpage.core.UrlRecord)

Aggregations

UrlRecord (cn.cerc.jpage.core.UrlRecord)17 IForm (cn.cerc.jbean.form.IForm)7 CustomHandle (cn.cerc.jbean.core.CustomHandle)6 AbstractForm (cn.cerc.jmis.form.AbstractForm)6 IMenuBar (cn.cerc.jmis.page.IMenuBar)6 Component (cn.cerc.jpage.core.Component)6 RightMenus (cn.cerc.jui.parts.RightMenus)6 HttpServletRequest (javax.servlet.http.HttpServletRequest)6 PrintWriter (java.io.PrintWriter)5 Record (cn.cerc.jdb.core.Record)3 HtmlWriter (cn.cerc.jpage.core.HtmlWriter)2 AbstractGridLine (cn.cerc.jpage.grid.lines.AbstractGridLine)2 OperaPages (cn.cerc.jpage.other.OperaPages)2 AbstractJspPage (cn.cerc.jmis.page.AbstractJspPage)1 BuildUrl (cn.cerc.jpage.other.BuildUrl)1 UIComponent (cn.cerc.jui.parts.UIComponent)1 UIImage (cn.cerc.jui.vcl.UIImage)1