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);
label.viewable = event.getValue();
refreshLabels();
}
});