com.netgrif.application.engine.workflow.web.responsebodies.LocalisedMultichoiceField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.workflow.web.responsebodies;
import com.netgrif.application.engine.petrinet.domain.I18nString;
import com.netgrif.application.engine.petrinet.domain.dataset.MultichoiceField;
import lombok.Data;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.Locale;
@Data
public class LocalisedMultichoiceField extends LocalisedChoiceField {
public LocalisedMultichoiceField(MultichoiceField field, Locale locale) {
super(field, locale);
this.setValue(new LinkedList<>());
Collection values = field.getValue();
if (values != null) {
for (I18nString value : values) {
((List) this.getValue()).add(value.getTranslation(locale));
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy