Package org.ametys.plugins.forms.content
Class Field
java.lang.Object
org.ametys.plugins.forms.content.Field
Class representing a form field.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with parameters.Field(Field.FieldType type) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get the id.getLabel()Get the label.getName()Get the name.Get the properties.getType()Get the type.voidSet the id.voidSet the label.voidSet the name.voidsetProperties(Map<String, String> properties) Set the properties.voidsetType(Field.FieldType type) Set the type.
-
Field Details
-
_id
The field ID. -
_type
The field type. -
_name
The field name. -
_label
The field label. -
_properties
The field properties.
-
-
Constructor Details
-
Field
Default constructor.- Parameters:
type- the field type.
-
Field
public Field(String id, Field.FieldType type, String name, String label, Map<String, String> properties) Constructor with parameters.- Parameters:
id- the field ID.type- the field type.name- the field name.label- the field label.properties- the field properties.
-
-
Method Details
-
getId
Get the id.- Returns:
- the id
-
setId
Set the id.- Parameters:
id- the id to set
-
getType
Get the type.- Returns:
- the type
-
setType
Set the type.- Parameters:
type- the type to set
-
getName
Get the name.- Returns:
- the name
-
setName
Set the name.- Parameters:
name- the name to set
-
getLabel
Get the label.- Returns:
- the label
-
setLabel
Set the label.- Parameters:
label- the label to set
-
getProperties
Get the properties.- Returns:
- the properties
-
setProperties
Set the properties.- Parameters:
properties- the properties to set
-