Interface ModifiableRepeaterEntry
- All Superinterfaces:
Composite
,DataHolder
,ModifiableComposite
,ModifiableDataHolder
,RepeaterEntry
- All Known Subinterfaces:
ModifiableIndexableRepeaterEntry
,ModifiableModelAwareRepeaterEntry
- All Known Implementing Classes:
DefaultModifiableModelAwareRepeaterEntry
Interface for modifiable repeater entries
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the holding repeater of this entry.void
setPosition
(int position) Sets the position of the entry in the repeater.Methods inherited from interface org.ametys.plugins.repository.data.holder.group.Composite
copyTo, dataToJSON, dataToSAX, getDataNames, getDefaultDataHolder, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
dataToJSON, dataToSAX
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getComposite, getComposite, getParentDataHolder, getRepositoryData, getRootDataHolder, removeValue
Methods inherited from interface org.ametys.plugins.repository.data.holder.group.RepeaterEntry
getPosition
-
Method Details
-
setPosition
Sets the position of the entry in the repeater. The position starts at index 1. The position can be an integer between 1 and the repeater size to move an entry from the beginning Or the position can an integer between 0 and - the repeater size to move an entry from the end (0 means at the end, -1 means before the last one and so on)- Parameters:
position
- The new position of the entry- Throws:
IllegalArgumentException
- if the position is not between the negative and positive repeater size
-
getHoldingRepeater
Description copied from interface:RepeaterEntry
Retrieves the holding repeater of this entry.- Specified by:
getHoldingRepeater
in interfaceRepeaterEntry
- Returns:
- the holding repeater of this entry
-