deploymentTable.addColumn(groupColumn, "Server Group");
HorizontalPanel tableOptions = new HorizontalPanel();
tableOptions.getElement().setAttribute("cellpadding", "2px");
groupFilter = new ComboBox();
groupFilter.setValues(Arrays.asList(new String[] {"war", "ear", "rar", "other"}));
groupFilter.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
presenter.onFilterGroup(event.getValue());
}
});
Widget groupFilterWidget = groupFilter.asWidget();
groupFilterWidget.getElement().setAttribute("style", "width:200px;");
tableOptions.add(new Label("Server Group:"));
tableOptions.add(groupFilterWidget);
ComboBox typeFilter = new ComboBox();
typeFilter.setValues(Arrays.asList(new String[]{"", "war", "ear", "rar", "other"}));
typeFilter.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
presenter.onFilterType(event.getValue());
}
});
Widget filterWidget = typeFilter.asWidget();
filterWidget.getElement().setAttribute("style", "width:60px;");
tableOptions.add(new Label("Type:"));
tableOptions.add(filterWidget);