table.setSelectionModel(new SingleSelectionModel<DataSource>());
dataProvider = new ListDataProvider<DataSource>();
dataProvider.addDataDisplay(table);
com.google.gwt.user.cellview.client.Column<DataSource, String> nameColumn = new com.google.gwt.user.cellview.client.Column<DataSource, String>(new TextCell()) {
@Override
public String getValue(DataSource object) {
return object.getName();
}
};
com.google.gwt.user.cellview.client.Column<DataSource, String> protocolColumn = new com.google.gwt.user.cellview.client.Column<DataSource, String>(new TextCell()) {
@Override
public String getValue(DataSource object) {
return object.getJndiName();
}
};
com.google.gwt.user.cellview.client.Column<DataSource, String> status = new com.google.gwt.user.cellview.client.Column<DataSource, String>(new TextCell()) {
@Override
public String getValue(DataSource object) {
return String.valueOf(object.isEnabled());
}
};