Search in sources :

Example 1 with VirtualRow

use of org.eclipse.scout.rt.server.admin.html.widget.table.VirtualRow in project scout.rt by eclipse.

the class SessionsView method renderSessionTable.

protected void renderSessionTable(HtmlComponent p) {
    HtmlTable table1 = new HtmlTable(p, "table1", m_table1SortInfo);
    table1.startTable(1, 0, 3);
    renderSessionTableHeader(table1);
    SessionInspector validSelection = null;
    SessionInspector[] sorted = getSortedSessions();
    for (int i = sorted.length - 1; i >= 0; i--) {
        if (sorted[i] == m_selectedSession) {
            validSelection = m_selectedSession;
        }
        VirtualRow vrow = table1.addVirtualRow();
        renderSessionRow(vrow, i + 1, sorted[i]);
    }
    table1.appendVirtualRows();
    m_selectedSession = validSelection;
    table1.endTable();
    p.append(table1);
}
Also used : HtmlTable(org.eclipse.scout.rt.server.admin.html.widget.table.HtmlTable) VirtualRow(org.eclipse.scout.rt.server.admin.html.widget.table.VirtualRow) SessionInspector(org.eclipse.scout.rt.server.admin.inspector.SessionInspector)

Aggregations

HtmlTable (org.eclipse.scout.rt.server.admin.html.widget.table.HtmlTable)1 VirtualRow (org.eclipse.scout.rt.server.admin.html.widget.table.VirtualRow)1 SessionInspector (org.eclipse.scout.rt.server.admin.inspector.SessionInspector)1