Package org.ametys.cms.form
Class RichTextField
- java.lang.Object
-
- org.ametys.cms.form.AbstractField
-
- org.ametys.cms.form.RichTextField
-
public class RichTextField extends AbstractField
A rich text field for managingRichText
metadata.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.form.AbstractField
AbstractField.MODE
-
-
Constructor Summary
Constructors Constructor Description RichTextField(String content)
Creates aRichTextField
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Resource>
getAdditionalData()
Get the additional data.String
getContent()
Retrieves the content.String
getFormat()
Retrieves the content format.void
setAdditionalData(Map<String,Resource> addData)
Set the additional data.void
setFormat(String format)
Set the content format.String
toString()
-
Methods inherited from class org.ametys.cms.form.AbstractField
getMode, setMode, setMode
-
-
-
-
Constructor Detail
-
RichTextField
public RichTextField(String content)
Creates aRichTextField
.- Parameters:
content
- the content.
-
-
Method Detail
-
getContent
public String getContent()
Retrieves the content.- Returns:
- the content.
-
setFormat
public void setFormat(String format)
Set the content format.- Parameters:
format
- the content format.
-
getAdditionalData
public Map<String,Resource> getAdditionalData()
Get the additional data.- Returns:
- the additional data.
-
setAdditionalData
public void setAdditionalData(Map<String,Resource> addData)
Set the additional data.- Parameters:
addData
- the additional data to set.
-
-