Interface DataComponent
- All Superinterfaces:
Component
,LabeledComponent
- All Known Subinterfaces:
AmountField
,BirthDateField
,Checkbox
,CodeField
,ComboBox
,CreatePasswordField
,CustomDataField
,DateField
,DatetimeField
,DisplayExpressionField
,DisplayField
,DocumentField
,DurationField
,EmailField
,Field
,Form
,HtmlField
,ImageField
,InputComponent
,IteratorComponent
,LatitudeField
,LoginField
,LongitudeField
,MoneyAmountField
,MultiRemoteField
,MultiSelectBox
,NamedUploadField
,NumberField
,PasswordField
,PathField
,PercentField
,PhoneField
,PositionSearchField
,PulldownDateField
,RangeField
,RemoteField
,SingleSelectBox
,Table
,TextArea
,TextField
,TimeField
,UploadField
,UrlField
,UuidField
- All Known Implementing Classes:
AbstractDataComponent
,AbstractDocumentField
,AmountFieldImpl
,AmountFieldWrapper
,BirthDateFieldImpl
,BirthDateFieldWrapper
,CheckboxImpl
,CheckboxWrapper
,CodeFieldImpl
,CodeFieldWrapper
,ComboBoxImpl
,ComboBoxWrapper
,CreatePasswordFieldImpl
,CreatePasswordFieldWrapper
,CustomDataFieldImpl
,CustomDataFieldWrapper
,DataComponentWrapper
,DateFieldImpl
,DateFieldWrapper
,DatetimeFieldImpl
,DatetimeFieldWrapper
,DefaultIteratorComponent
,DefaultTable
,DisplayExpressionFieldImpl
,DisplayExpressionFieldWrapper
,DisplayFieldImpl
,DisplayFieldWrapper
,DocumentFieldImpl
,DocumentFieldWrapper
,DurationFieldImpl
,DurationFieldWrapper
,EmailFieldImpl
,EmailFieldWrapper
,FieldImpl
,FieldWrapper
,FormWrapper
,HtmlFieldImpl
,HtmlFieldWrapper
,ImageFieldImpl
,ImageFieldWrapper
,InputComponentWrapper
,IteratorComponentWrapper
,LatitudeFieldImpl
,LatitudeFieldImpl.LatitudeFieldWrapper
,LoginFieldImpl
,LoginFieldWrapper
,LongitudeFieldImpl
,LongitudeFieldImpl.LongitudeFieldWrapper
,MoneyAmountFieldImpl
,MoneyAmountFieldImpl.MoneyAmountFieldWrapper
,MultiRemoteFieldImpl
,MultiRemoteFieldWrapper
,MultiSelectBoxImpl
,MultiSelectBoxWrapper
,NamedUploadFieldImpl
,NamedUploadFieldWrapper
,NumberFieldImpl
,NumberFieldWrapper
,PasswordFieldImpl
,PasswordFieldWrapper
,PathFieldImpl
,PathFieldWrapper
,PercentFieldImpl
,PercentFieldWrapper
,PhoneFieldImpl
,PhoneFieldWrapper
,PositionSearchFieldImpl
,PositionSearchFieldImpl.PositionSearchFieldWrapper
,PulldownDateFieldImpl
,PulldownDateFieldWrapper
,RangeFieldImpl
,RangeFieldWrapper
,RemoteFieldImpl
,RemoteFieldWrapper
,SimpleForm
,SingleSelectBoxImpl
,SingleSelectBoxWrapper
,TableWrapper
,TextAreaImpl
,TextAreaWrapper
,TextFieldImpl
,TextFieldWrapper
,TimeFieldImpl
,TimeFieldWrapper
,UploadFieldImpl
,UploadFieldWrapper
,UrlFieldImpl
,UrlFieldWrapper
,UuidFieldImpl
,UuidFieldWrapper
Deprecated.
A data component is a component that contains data.
Most often it is also an editable component.
See InputComponent
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.components.Component
Component.ComponentFilter, Component.DataNavigationType, Component.DisplayType, Component.Position
Nested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.components.LabeledComponent
LabeledComponent.UseLabel
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Deprecated.@Nullable String
Deprecated.Deprecated.Returns the default data type to use for this data component.@Nullable DefaultValueDescriptor
Deprecated.@Nullable String
Deprecated.Returns the language for which this field is if it is localized,null
if not.getPath()
Deprecated.@Nullable String
Deprecated.Returns the reverse relation asString
if the data type is an entity.Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.Tells if this field is multilingual.void
setConstriction
(@Nullable String constriction) Deprecated.void
setDataType
(String dataType) Deprecated.void
setDefaultLangOnly
(boolean defaultLangOnly) Deprecated.void
Deprecated.Sets the default value for this form component.void
setIgnoreCopy
(boolean ignoreCopy) Deprecated.void
setLocalizedLanguage
(String language) Deprecated.This is called from within the merge process.void
Deprecated.void
setReverseRelationName
(String reverseRelationName) Deprecated.void
setValidator
(AndGroupValidator validator) Deprecated.Methods inherited from interface ch.tocco.nice2.model.form.api.components.Component
addComponent, addComponent, collectDataParts, collectDataParts, createCopy, createCopy, find, findByName, findByType, findFirst, findFirstByName, getAttributeProps, getChild, getChildren, getDataNavigationType, getDisplayType, getEventHandler, getExtProps, getForm, getName, getParent, getParentOrEx, getPosition, getRelativeToPositionName, getScopes, getType, hasParent, isForceEditable, isLeaf, isReplace, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, wrap
Methods inherited from interface ch.tocco.nice2.model.form.api.components.LabeledComponent
getLabel, getUseLabel, setLabel, setUseLabel
-
Method Details
-
getPath
DataPath getPath()Deprecated. -
getDataType
Deprecated.- Returns:
- The 'datatype' attribute. This can be hardcoded in xml (nulldatasource) or come from the entity field in the entity system, or be null.
-
setDataType
Deprecated. -
getDefaultDataType
String getDefaultDataType()Deprecated.Returns the default data type to use for this data component.For example a text-field uses the "string" while the email-field uses the virtual type "email".
- Returns:
- The name of the nice2 data type.
-
getReverseRelationName
Deprecated.Returns the reverse relation asString
if the data type is an entity. Otherwise NULL will be returned. -
setReverseRelationName
Deprecated. -
hasNonEmptyValidator
boolean hasNonEmptyValidator()Deprecated.- Returns:
- Tells if this data component has a validator, a GroupValidator to be precise, which has at least one entry.
- See Also:
-
getValidator
GroupValidator getValidator()Deprecated.- Returns:
- The outermost group validator which may contain children, or null if none.
- See Also:
-
setValidator
Deprecated. -
getDefaultValue
Deprecated.- Returns:
- the default value for this form component as specified in the form xml.
-
setDefaultValue
Deprecated.Sets the default value for this form component. -
setLocalizedLanguage
Deprecated.This is called from within the merge process. -
isLocalized
boolean isLocalized()Deprecated.Tells if this field is multilingual. If it is then this field model most likely has siblings; for every system language there is such a field model for the same field. -
getLocalizedLanguage
Deprecated.Returns the language for which this field is if it is localized,null
if not.- Returns:
- 2-letter iso code in lower case eg 'fr', or
null
if not localized.
-
getConstriction
Deprecated. -
setConstriction
Deprecated. -
setDefaultLangOnly
void setDefaultLangOnly(boolean defaultLangOnly) Deprecated. -
isDefaultLangOnly
boolean isDefaultLangOnly()Deprecated. -
setIgnoreCopy
void setIgnoreCopy(boolean ignoreCopy) Deprecated. -
isIgnoreCopy
boolean isIgnoreCopy()Deprecated.
-