VLayout listLayout = new VLayout(0);
listLayout.setWidth100();
listLayout.setHeight100();
ListGrid listGrid = new ListGrid() {
@Override
protected Canvas getExpansionComponent(ListGridRecord record) {
Canvas canvas = super.getExpansionComponent(record);
canvas.setPadding(5);
return canvas;
}
};
listGrid.setWidth100();
listGrid.setHeight100();
listGrid.setCanExpandRecords(true);
listGrid.setExpansionMode(ExpansionMode.DETAIL_FIELD);
listGrid.setDetailField("result");
ListGridField step = new ListGridField("description", MSG.view_remoteAgentInstall_step());
ListGridField result = new ListGridField("result", MSG.view_remoteAgentInstall_result());
ListGridField resultCode = new ListGridField("resultCode", MSG.view_remoteAgentInstall_resultCode(), 90);
ListGridField duration = new ListGridField("duration", MSG.common_title_duration(), 90);
listGrid.setFields(step, result, resultCode, duration);
listGrid.setData(getStepRecords(info));
listGrid.setAutoFitData(Autofit.BOTH);
listGrid.setLeaveScrollbarGap(false);
listGrid.setShowAllRecords(true);
listGrid.setBodyOverflow(Overflow.CLIP_H);
listGrid.setOverflow(Overflow.SCROLL);
listLayout.setLeaveScrollbarGap(true);
listLayout.addMember(listGrid);
listCanvas.setCanvas(listLayout);
listCanvas.setOverflow(Overflow.AUTO);
listLayout.setOverflow(Overflow.AUTO);