Package com.bbn.openmap.layer.util.html

Examples of com.bbn.openmap.layer.util.html.Element


        list.generate(out);

        out.println("<H3 CLASS=TableSubheadingColor>Thematic Index Data</H3>");
        Object[] values = ti.getValueIndexes();
        ListElement rows = null;
        Element table = null;
        TableRowElement th = new TableRowElement();
        th.addElement(new TableHeaderElement("CLASS=NavBarCell2", "Index Value"));
        th.addElement(new TableHeaderElement("Count"));
        th.addElement(new TableHeaderElement("Rows..."));
        String valStr = "<A HREF=\"" + request.getContextPath()
                + request.getServletPath() + getPathInfo(request)
                + "?valIndex=";
        for (int i = 0; i < values.length; i++) {
            if ((i % 50) == 0) {
                if (table != null) {
                    table.generate(out);
                }
                rows = new ListElement();
                table = new WrapElement("table", "BORDER=1", rows);
                rows.addElement(th);
            }
            TableRowElement tr = new TableRowElement();
            rows.addElement(tr);
            tr.addElement(valStr + values[i] + "\">" + values[i] + "</A>");
            try {
                int[] intvals = ti.get(values[i]);
                tr.addElement(Integer.toString(intvals.length));
                StringBuffer sb = new StringBuffer();
                sb.append(intvals[0]);
                for (int j = 1; j < intvals.length; j++) {
                    sb.append(", ").append(intvals[j]);
                }
                tr.addElement(sb.toString());
            } catch (FormatException fe) {
                tr.addElement(fe.toString());
            }
        }
        table.generate(out);
    }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.layer.util.html.Element

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.