private void configureComponents() {
   save.setStyleName(ValoTheme.BUTTON_PRIMARY);
   save.setClickShortcut(ShortcutAction.KeyCode.ENTER);
   cancel.setClickShortcut(ShortcutAction.KeyCode.ESCAPE);
   variantField.setNullSelectionAllowed(false);
   variantField.setInvalidAllowed(false);
   variantField.addItems(Variant.values());
   nominal.setNullSelectionAllowed(true);
   nominal.setInvalidAllowed(false);
   nominal.addItems(NominalValue.values());
 }
 private ComboBox buildFieldComboBox(Object[] items) {
   ComboBox cb = new ComboBox();
   cb.addItems(items);
   cb.setValue(items[0]);
   cb.setNullSelectionAllowed(false);
   return cb;
 }