Example usage for org.springframework.util AutoPopulatingList AutoPopulatingList

List of usage examples for org.springframework.util AutoPopulatingList AutoPopulatingList

Introduction

In this page you can find the example usage for org.springframework.util AutoPopulatingList AutoPopulatingList.

Prototype

public AutoPopulatingList(List<E> backingList, ElementFactory<E> elementFactory) 

Source Link

Document

Creates a new AutoPopulatingList that is backed by the supplied List and creates new elements on demand using the supplied ElementFactory .

Usage

From source file:org.orcid.frontend.web.forms.CurrentWork.java

public void setCurrentWorkContributors(List<CurrentWorkContributor> currentWorkContributors) {
    this.currentWorkContributors = new AutoPopulatingList<CurrentWorkContributor>(currentWorkContributors,
            CurrentWorkContributor.class);
}

From source file:org.orcid.frontend.web.forms.PublicationsTaskForm.java

public void setPublications(List<Publication> publications) {
    this.publications = new AutoPopulatingList<Publication>(publications, Publication.class);
}