final SelectableLabel label = new SelectableLabel(caption.getCaption());
final PCheckBox checkBox = new PCheckBox();
label.checkBox = checkBox;
label.viewable = caption.isViewable();
label.custom = caption.isCustom();
checkBox.addValueChangeHandler(new PValueChangeHandler<Boolean>() {
@Override
public void onValueChange(final PValueChangeEvent<Boolean> event) {
final ShowColumnDescriptorEvent refreshListEvent = new ShowColumnDescriptorEvent(PreferenceForm.this, caption.getCaption(), event.getValue(), tableName);
eventBus.fireEvent(refreshListEvent);