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, FormatFieldImpl, FulltextSearchImpl, GeosearchFieldImpl, HtmlFieldImpl, LocationFieldImpl, RangeFieldImpl, RelationFieldImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface Component
Component.Configuration -
Constructor Summary
Constructors -
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 DefaultValueDescriptorgetPath()The path from the base entity to the field or relation.booleanbooleanvoidsetAutoCompleteEndpoint(String autoCompleteEndpoint) voidsetDataType(String dataType) voidsetDefaultValue(DefaultValueDescriptor defaultValue) voidvoidsetSimpleSearch(boolean simpleSearch) voidsetValidator(AndGroupValidator validator) toString()Methods inherited from class AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPositionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
FieldImpl
public FieldImpl()
-
-
Method Details
-
getPath
-
setPath
-
getDataType
Description copied from interface:FieldThe data type of the field (e.g. date, datetime, string, ...).- Specified by:
getDataTypein interfaceField
-
setDataType
-
getDefaultValue
- Specified by:
getDefaultValuein 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:
getDefaultLabelin interfaceDataComponent
-
clone
- Overrides:
clonein classAbstractComponent- Throws:
CloneNotSupportedException
-
getValidator
- Specified by:
getValidatorin interfaceField
-
setValidator
-
setAutoCompleteEndpoint
-
getAutoCompleteEndpoint
- Specified by:
getAutoCompleteEndpointin interfaceField
-
getSimpleSearch
public boolean getSimpleSearch()- Specified by:
getSimpleSearchin interfaceField
-
setSimpleSearch
public void setSimpleSearch(boolean simpleSearch) -
isParentContainerReadonly
public boolean isParentContainerReadonly()- Specified by:
isParentContainerReadonlyin interfaceField
-