Class FieldImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
ch.tocco.nice2.model.form.impl.form2.components.FieldImpl
- All Implemented Interfaces:
Component
,DataComponent
,Field
,Cloneable
- Direct Known Subclasses:
CodeFieldImpl
,DocumentFieldImpl
,FulltextSearchImpl
,GeosearchFieldImpl
,HtmlFieldImpl
,LocationFieldImpl
,RangeFieldImpl
,RelationFieldImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
Component.Configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
The data type of the field (e.g.getDefaultLabel
(Form form, TextResources textResources) Text resources are searched in the following order: Form: User_detail Path: relAddress.relAddress_type 1) 'forms.User_detail.relAddress.relAddress_type / 'forms.User_list.table.relAddress_type' 2) Label of FieldModel or RelationModel 3) 'entities.relAddress.relAddress_type'@Nullable DefaultValueDescriptor
getPath()
The path from the base entity to the field or relation.boolean
void
setAutoCompleteEndpoint
(String autoCompleteEndpoint) void
setDataType
(String dataType) void
setDefaultValue
(DefaultValueDescriptor defaultValue) void
void
setSimpleSearch
(boolean simpleSearch) void
setValidator
(AndGroupValidator validator) toString()
Methods inherited from class ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPosition
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
FieldImpl
public FieldImpl()
-
-
Method Details
-
getPath
Description copied from interface:Field
The path from the base entity to the field or relation. The base entity is defined in the containingForm
component. -
setPath
-
getDataType
Description copied from interface:Field
The data type of the field (e.g. date, datetime, string, ...).- Specified by:
getDataType
in interfaceField
-
setDataType
-
getDefaultValue
- Specified by:
getDefaultValue
in interfaceField
- Returns:
- the default value for this form component as specified in the form xml.
-
setDefaultValue
-
toString
-
getDefaultLabel
Text resources are searched in the following order: Form: User_detail Path: relAddress.relAddress_type 1) 'forms.User_detail.relAddress.relAddress_type / 'forms.User_list.table.relAddress_type' 2) Label of FieldModel or RelationModel 3) 'entities.relAddress.relAddress_type'- Specified by:
getDefaultLabel
in interfaceDataComponent
-
clone
- Overrides:
clone
in classAbstractComponent
- Throws:
CloneNotSupportedException
-
getValidator
- Specified by:
getValidator
in interfaceField
-
setValidator
-
setAutoCompleteEndpoint
-
getAutoCompleteEndpoint
- Specified by:
getAutoCompleteEndpoint
in interfaceField
-
getSimpleSearch
public boolean getSimpleSearch()- Specified by:
getSimpleSearch
in interfaceField
-
setSimpleSearch
public void setSimpleSearch(boolean simpleSearch)
-