}
@Override
protected Element createElement() {
Element elem = super.createElement();
Container myContainer = new DefaultContainerImpl(elem);
// Now we need to layout the rest of the row details
Table detailsLayout = new Table(myContainer);
detailsLayout.setFixedLayout(true);
detailsLayout.getElement().setClassName(getCss().detailsLayout());
// We have a 1 row, 2 column layout
TableRowElement row = detailsLayout.insertRow(-1);
// Create the first column.
eventTraceContainerCell = row.insertCell(-1);
// Add the piechart and detailsTable to the second column
TableCellElement detailsTableCell = row.insertCell(-1);
detailsTableCell.getStyle().setPropertyPx("paddingRight",
getCss().uiPadding());
// Attach the pie chart.
detailsTableContainer = new DefaultContainerImpl(detailsTableCell);
PieChart pieChart = createPieChart(detailsTableContainer);
int pieChartHeight = pieChart.getElement().getOffsetHeight()
+ getCss().uiPadding();
this.detailsTable = createDetailsTable(detailsTableContainer,
pieChartHeight, getParentRow().getEvent());
// Now we populate the first column.
Container eventTraceContainer = new DefaultContainerImpl(
eventTraceContainerCell);
treeDiv = eventTraceContainer.getDocument().createDivElement();
eventTraceContainerCell.appendChild(treeDiv);
hintletTree = createHintletTree(treeDiv);
createEventTrace(eventTraceContainer, pieChartHeight);