table.setStylePrimaryName("inline");
table.getFlexCellFormatter().setColSpan(0, 0, 2);
table.getFlexCellFormatter().setAlignment(0, 0,
HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE);
table.setWidget(0, 0, new Label("MMI attribute"));
table.getFlexCellFormatter().setAlignment(0, 1,
HasHorizontalAlignment.ALIGN_CENTER, HasVerticalAlignment.ALIGN_MIDDLE);
table.setWidget(0, 1, new Label("Note"));
for ( int lin = 0; lin < lines.length; lin++ ) {
String[] vals = lines[lin].split("\\|");
for ( int col = 0; col < vals.length; col++ ) {
table.setWidget(lin+1, col, new Label(vals[col]));
}
}
VerticalPanel vp = new VerticalPanel();
vp.setWidth("400");