T
- Type of the root objectpublic class RepeaterDefinitionAndValue<T> extends DefinitionAndValue<T>
Modifier and Type | Field and Description |
---|---|
private List<RepeaterEntryDefinitionAndValue> |
_entries |
private RepeaterDefinition |
_repeaterDefinition |
Constructor and Description |
---|
RepeaterDefinitionAndValue(T root,
ModelItem definition,
Object value,
DefinitionAndValue<T> parent,
RepeaterEntryDefinitionAndValue... entries)
Creates a repeater definition and value pair
|
RepeaterDefinitionAndValue(T root,
ModelItem definition,
Object value,
RepeaterEntryDefinitionAndValue... entries)
Creates a repeater definition and value pair
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(RepeaterEntryDefinitionAndValue entryDefinitionAndValue)
Add an entry definition and value pair to the repeater
|
RepeaterDefinition |
getDefinition()
Retrieves the definition
|
List<RepeaterEntryDefinitionAndValue> |
getEntries()
Retrieves the entries definition and value pairs of this repeater
|
extractValues, getParent, getRoot, getValue
private RepeaterDefinition _repeaterDefinition
private List<RepeaterEntryDefinitionAndValue> _entries
public RepeaterDefinitionAndValue(T root, ModelItem definition, Object value, RepeaterEntryDefinitionAndValue... entries)
root
- the root object of this definition and value pairdefinition
- the definitionvalue
- the valueentries
- the entries of the repeater definition and value pairpublic RepeaterDefinitionAndValue(T root, ModelItem definition, Object value, DefinitionAndValue<T> parent, RepeaterEntryDefinitionAndValue... entries)
root
- the root object of this definition and value pairdefinition
- the definitionvalue
- the valueparent
- the parent of the definition and value pairentries
- the entries of the repeater definition and value pairpublic RepeaterDefinition getDefinition()
DefinitionAndValue
getDefinition
in class DefinitionAndValue<T>
public List<RepeaterEntryDefinitionAndValue> getEntries()
public void addEntry(RepeaterEntryDefinitionAndValue entryDefinitionAndValue)
entryDefinitionAndValue
- the definition and value pair to add as entry