use of org.gwtbootstrap3.extras.select.client.ui.OptGroup in project kie-wb-common by kiegroup.
the class DataTypePickerWidget method addBuiltInTypes.
void addBuiltInTypes() {
final OptGroup group = GWT.create(OptGroup.class);
group.setLabel(translationService.getTranslation(DMNEditorConstants.DataTypeSelectView_DefaultTitle));
Stream.of(BuiltInType.values()).sorted(BUILT_IN_TYPE_COMPARATOR).map(this::makeTypeSelector).filter(Optional::isPresent).forEach(o -> group.add(o.get()));
typeSelector.add(group);
}
use of org.gwtbootstrap3.extras.select.client.ui.OptGroup in project kie-wb-common by kiegroup.
the class DataTypePickerWidget method addItemDefinitions.
void addItemDefinitions() {
final Definitions definitions = dmnGraphUtils.getModelDefinitions();
final List<ItemDefinition> itemDefinitions = definitions != null ? definitions.getItemDefinition() : Collections.emptyList();
final OptGroup group = GWT.create(OptGroup.class);
group.setLabel(translationService.getTranslation(DMNEditorConstants.DataTypeSelectView_CustomTitle));
itemDefinitions.stream().sorted(ITEM_DEFINITION_COMPARATOR).map(this::makeTypeSelector).filter(Optional::isPresent).forEach(o -> group.add(o.get()));
typeSelector.add(group);
}
Aggregations