*/
class ThreadFactoryList extends LayoutPanel {
public ThreadFactoryList(final ThreadManagementPresenter presenter) {
DefaultCellTable factoryTable = new DefaultCellTable(10);
TextColumn<ThreadFactoryRecord> nameColumn = new TextColumn<ThreadFactoryRecord>() {
@Override
public String getValue(ThreadFactoryRecord record) {
return record.getName();
}
};
TextColumn<ThreadFactoryRecord> groupColumn = new TextColumn<ThreadFactoryRecord>() {
@Override
public String getValue(ThreadFactoryRecord record) {
return record.getGroup();
}
};
TextColumn<ThreadFactoryRecord> prioColumn = new TextColumn<ThreadFactoryRecord>() {
@Override
public String getValue(ThreadFactoryRecord record) {
return String.valueOf(record.getPriority());
}
};
factoryTable.addColumn(nameColumn, "Factory Name");
factoryTable.addColumn(groupColumn, "Group");
factoryTable.addColumn(prioColumn, "Priority");
factoryTable.setRowData(0, Collections.EMPTY_LIST);
add(factoryTable);
setWidgetTopHeight(factoryTable, 0, Style.Unit.PX, 100, Style.Unit.PCT);
}