Package org.ametys.cms.form
Class RepeaterField.RepeaterEntry
- java.lang.Object
-
- org.ametys.cms.form.Form
-
- org.ametys.cms.form.RepeaterField.RepeaterEntry
-
- Enclosing class:
- RepeaterField
public static class RepeaterField.RepeaterEntry extends Form
A repeater entry is aForm
with new position and old position.
-
-
Field Summary
Fields Modifier and Type Field Description private int
_position
private int
_previousPosition
-
Constructor Summary
Constructors Constructor Description RepeaterEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPosition()
Retrieves the new position.int
getPreviousPosition()
Retrieves the previous position.void
setPosition(int position)
Set the new position.void
setPreviousPosition(int position)
Set the previous position.-
Methods inherited from class org.ametys.cms.form.Form
getBinaryField, getBooleanArray, getCommentArray, getCompositeField, getContentArray, getDateArray, getDoubleArray, getExternalizableField, getField, getFieldNames, getLongArray, getMultilingualStringArray, getReferenceField, getRepeaterField, getRichTextField, getStringArray, getSubContentField, getUserArray, setCommentsField, setCompositeField, setField, toString
-
-
-
-
Field Detail
-
_position
private int _position
-
_previousPosition
private int _previousPosition
-
-
Constructor Detail
-
RepeaterEntry
public RepeaterEntry()
-
-
Method Detail
-
setPosition
public void setPosition(int position)
Set the new position.- Parameters:
position
- the new position.
-
getPosition
public int getPosition()
Retrieves the new position.- Returns:
- the new position.
-
setPreviousPosition
public void setPreviousPosition(int position)
Set the previous position.- Parameters:
position
- the previous position.
-
getPreviousPosition
public int getPreviousPosition()
Retrieves the previous position.- Returns:
- the previous position or
-1
if this is a new entry.
-
-