Class DataComponentWrapper
java.lang.Object
ch.tocco.nice2.model.form.api.components.ComponentWrapper
ch.tocco.nice2.model.form.api.components.LabeledComponentWrapper
ch.tocco.nice2.model.form.api.components.DataComponentWrapper
- All Implemented Interfaces:
Component
,LabeledComponent
,DataComponent
- Direct Known Subclasses:
FieldWrapper
,FormWrapper
,InputComponentWrapper
,IteratorComponentWrapper
,TableWrapper
@Deprecated
public class DataComponentWrapper
extends LabeledComponentWrapper
implements DataComponent
Deprecated.
-
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
-
Field Summary
Fields inherited from class ch.tocco.nice2.model.form.api.components.ComponentWrapper
handler
-
Constructor Summary
ConstructorDescriptionDataComponentWrapper
(DataComponent dataComponent, ComponentWrapperHandler handler) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.@Nullable String
Deprecated.Deprecated.Returns the default data type to use for this data component.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 class ch.tocco.nice2.model.form.api.components.LabeledComponentWrapper
getLabel, getUseLabel, setLabel, setUseLabel
Methods inherited from class ch.tocco.nice2.model.form.api.components.ComponentWrapper
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, hideChild, isForceEditable, isLeaf, isReplace, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
Method Details
-
getPath
Deprecated.- Specified by:
getPath
in interfaceDataComponent
-
getDataType
Deprecated.- Specified by:
getDataType
in interfaceDataComponent
- 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.- Specified by:
setDataType
in interfaceDataComponent
-
getReverseRelationName
Deprecated.Description copied from interface:DataComponent
Returns the reverse relation asString
if the data type is an entity. Otherwise NULL will be returned.- Specified by:
getReverseRelationName
in interfaceDataComponent
-
setReverseRelationName
Deprecated.- Specified by:
setReverseRelationName
in interfaceDataComponent
-
getDefaultDataType
Deprecated.Description copied from interface:DataComponent
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".
- Specified by:
getDefaultDataType
in interfaceDataComponent
- Returns:
- The name of the nice2 data type.
-
hasNonEmptyValidator
public boolean hasNonEmptyValidator()Deprecated.- Specified by:
hasNonEmptyValidator
in interfaceDataComponent
- Returns:
- Tells if this data component has a validator, a GroupValidator to be precise, which has at least one entry.
- See Also:
-
getValidator
Deprecated.- Specified by:
getValidator
in interfaceDataComponent
- Returns:
- The outermost group validator which may contain children, or null if none.
- See Also:
-
setValidator
Deprecated.- Specified by:
setValidator
in interfaceDataComponent
-
getDefaultValue
Deprecated.- Specified by:
getDefaultValue
in interfaceDataComponent
- Returns:
- the default value for this form component as specified in the form xml.
-
setDefaultValue
Deprecated.Description copied from interface:DataComponent
Sets the default value for this form component.- Specified by:
setDefaultValue
in interfaceDataComponent
-
setLocalizedLanguage
Deprecated.Description copied from interface:DataComponent
This is called from within the merge process.- Specified by:
setLocalizedLanguage
in interfaceDataComponent
-
isLocalized
public boolean isLocalized()Deprecated.Description copied from interface:DataComponent
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.- Specified by:
isLocalized
in interfaceDataComponent
-
getLocalizedLanguage
Deprecated.Description copied from interface:DataComponent
Returns the language for which this field is if it is localized,null
if not.- Specified by:
getLocalizedLanguage
in interfaceDataComponent
- Returns:
- 2-letter iso code in lower case eg 'fr', or
null
if not localized.
-
getConstriction
Deprecated.- Specified by:
getConstriction
in interfaceDataComponent
-
setConstriction
Deprecated.- Specified by:
setConstriction
in interfaceDataComponent
-
setDefaultLangOnly
public void setDefaultLangOnly(boolean defaultLangOnly) Deprecated.- Specified by:
setDefaultLangOnly
in interfaceDataComponent
-
isDefaultLangOnly
public boolean isDefaultLangOnly()Deprecated.- Specified by:
isDefaultLangOnly
in interfaceDataComponent
-
setIgnoreCopy
public void setIgnoreCopy(boolean ignoreCopy) Deprecated.- Specified by:
setIgnoreCopy
in interfaceDataComponent
-
isIgnoreCopy
public boolean isIgnoreCopy()Deprecated.- Specified by:
isIgnoreCopy
in interfaceDataComponent
-