All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.model.form.MultiSelection Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.model.form;

import lombok.Data;
import lombok.EqualsAndHashCode;
import net.nemerosa.ontrack.model.support.Selectable;

import java.util.ArrayList;
import java.util.List;

/**
 * This field allows a user to select several items into a list.
 * 

* The {@link #items items} property contains the {@link net.nemerosa.ontrack.model.support.Selectable selectable} * items. *

* The value returned by this field will be a list of {@link net.nemerosa.ontrack.model.support.Selectable#getId() id}s. */ @EqualsAndHashCode(callSuper = false) @Data public class MultiSelection extends AbstractField { public static MultiSelection of(String name) { return new MultiSelection(name); } private List items = new ArrayList<>(); protected MultiSelection(String name) { super("multi-selection", name); } public MultiSelection items(List values) { this.items = values; return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy