public class ModelAwareRepeater extends AbstractRepeater
Modifier and Type | Field and Description |
---|---|
protected RepeaterDefinition |
_definition
Definition of this repeater
|
_repositoryData
Constructor and Description |
---|
ModelAwareRepeater(RepositoryData repositoryData,
RepeaterDefinition definition)
Creates a model aware repeater
|
Modifier and Type | Method and Description |
---|---|
List<? extends ModelAwareRepeaterEntry> |
getEntries()
Retrieves the repeater entries, sorted by position
|
ModelAwareRepeaterEntry |
getEntry(int position)
Retrieves the repeater entry at the given position.
|
copyTo, getSize, hasEntry, moveEntries, removeEntry
protected RepeaterDefinition _definition
public ModelAwareRepeater(RepositoryData repositoryData, RepeaterDefinition definition)
repositoryData
- the repository data of the repeaterdefinition
- the definition of the repeaterpublic List<? extends ModelAwareRepeaterEntry> getEntries()
Repeater
getEntries
in interface Repeater
getEntries
in class AbstractRepeater
public ModelAwareRepeaterEntry getEntry(int position)
Repeater
position
- the position of the entry to retrievenull
if there is no entry at this position