});
VerticalPanel popupContent = new VerticalPanel();
for (final ColumnMeta<T> columnMeta : columnMetaList) {
final CheckBox checkBox = new CheckBox(columnMeta.getHeader().getValue());
checkBox.setValue(columnMeta.isVisible());
checkBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
public void onValueChange(ValueChangeEvent<Boolean> booleanValueChangeEvent) {
boolean visible = booleanValueChangeEvent.getValue();
if (visible) {
// WORKAROUND because CellTable does not support insertColumn at this time
for (ColumnMeta<T> resettingColumnMeta : columnMetaList) {