HtmlPanelGroup toolbar = (HtmlPanelGroup) Components.createChildComponent(context, panelGrid, HtmlPanelGroup.COMPONENT_TYPE, "consoleToolbar");
addButton(context, toolbar, "clearLog", "Clear");
addButton(context, toolbar, "pauseLog", "Pause");
DataTable logTable = (DataTable) Components.createChildComponent(
context, panelGrid, DataTable.COMPONENT_TYPE, "log");
Scrolling scrolling = new Scrolling();
logTable.getChildren().add(scrolling);
logTable.getChildren().add(new ColumnResizing());
if (Environment.isExplorer())
logTable.setStyle("width: 100%");
else
logTable.setStyle("width: 100%; height: 100%;");
logTable.setVerticalGridLines("1px solid gray");
Column col1 = new Column();
col1.setStyle("width: 150px");
col1.setHeader(Components.createOutputText(context, "Time"));
logTable.getChildren().add(col1);
Column col2 = new Column();
col2.setHeader(Components.createOutputText(context, "Message"));
logTable.getChildren().add(col2);
return panelGrid;
}