Package org.ametys.cms.form
Class AbstractField
- java.lang.Object
-
- org.ametys.cms.form.AbstractField
-
- Direct Known Subclasses:
ExternalizableField
,ReferenceField
,RepeaterField
,RichTextField
,SimpleField
,SubContentField
public abstract class AbstractField extends Object
Abstract parent class for all fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractField.MODE
The field mode
-
Field Summary
Fields Modifier and Type Field Description private AbstractField.MODE
_mode
-
Constructor Summary
Constructors Constructor Description AbstractField()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractField.MODE
getMode()
Is the repeater field in replace mode?void
setMode(String mode)
Set the field in replace mode : the values are replacing the current values.void
setMode(AbstractField.MODE mode)
Set the field in replace mode : the values are replacing the current values.
-
-
-
Field Detail
-
_mode
private AbstractField.MODE _mode
-
-
Constructor Detail
-
AbstractField
public AbstractField()
-
-
Method Detail
-
setMode
public void setMode(AbstractField.MODE mode)
Set the field in replace mode : the values are replacing the current values.- Parameters:
mode
- The mode
-
setMode
public void setMode(String mode)
Set the field in replace mode : the values are replacing the current values.- Parameters:
mode
- The mode "insert", "remove" or "replace" (default)
-
getMode
public AbstractField.MODE getMode()
Is the repeater field in replace mode?- Returns:
- true if in replace mode
-
-