Package org.ametys.cms.form
Class RepeaterField
- java.lang.Object
-
- org.ametys.cms.form.AbstractField
-
- org.ametys.cms.form.RepeaterField
-
public class RepeaterField extends AbstractField
A repeater field for managing a ordered collection ofCompositeMetadata
metadata.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RepeaterField.RepeaterEntry
A repeater entry is aForm
with new position and old position.-
Nested classes/interfaces inherited from class org.ametys.cms.form.AbstractField
AbstractField.MODE
-
-
Field Summary
Fields Modifier and Type Field Description private List<RepeaterField.RepeaterEntry>
_entries
-
Constructor Summary
Constructors Constructor Description RepeaterField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEntry(RepeaterField.RepeaterEntry entry)
Add an entry.List<RepeaterField.RepeaterEntry>
getEntries()
Retrieves all the entries.String
toString()
-
Methods inherited from class org.ametys.cms.form.AbstractField
getMode, setMode, setMode
-
-
-
-
Field Detail
-
_entries
private final List<RepeaterField.RepeaterEntry> _entries
-
-
Constructor Detail
-
RepeaterField
public RepeaterField()
-
-
Method Detail
-
addEntry
public void addEntry(RepeaterField.RepeaterEntry entry)
Add an entry.- Parameters:
entry
- the entry
-
getEntries
public List<RepeaterField.RepeaterEntry> getEntries()
Retrieves all the entries.- Returns:
- the entries.
-
-