use of com.evolveum.midpoint.web.component.input.DisplayableValueChoiceRenderer in project midpoint by Evolveum.
the class WebComponentUtil method createEnumPanel.
public static DropDownChoicePanel createEnumPanel(final PrismPropertyDefinition def, String id, final IModel model) {
final Object o = model.getObject();
final IModel<List<DisplayableValue>> enumModelValues = (IModel<List<DisplayableValue>>) () -> getDisplayableValues(def.getAllowedValues());
return new DropDownChoicePanel(id, model, enumModelValues, new DisplayableValueChoiceRenderer(getDisplayableValues(def.getAllowedValues())), true);
}
Aggregations