new Row(0, new Object[] { "First row, first column" , "First row, second column" }),
new Row(1, new Object[] { "Second row, first column", "Second row, second column" }),
new Row(2, new Object[] { "Third row, first column" , "Third row, second column" })
};
ColumnLayout layout = new ColumnLayout(columns);
final Table table = new Table(layout);
ContentProvider provider = new ContentProvider() {
public void load(int begin, int end, final int sortId, boolean ascending) {
table.onSuccess(new Rows(rows, 0, -1, false));
}
};
table.setContentProvider(provider);
table.setSize(3);
table.setSize("100%", "100%");
root.add(table);
}