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 Component
Component.ComponentFilter, Component.DataNavigationType, Component.DisplayType, Component.PositionNested classes/interfaces inherited from interface LabeledComponent
LabeledComponent.UseLabel -
Field Summary
Fields inherited from class ComponentWrapper
handler -
Constructor Summary
ConstructorsConstructorDescriptionDataComponentWrapper(DataComponent dataComponent, ComponentWrapperHandler handler) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.@Nullable StringDeprecated.Deprecated.Returns the default data type to use for this data component.Deprecated.@Nullable StringDeprecated.Returns the language for which this field is if it is localized,nullif not.getPath()Deprecated.@Nullable StringDeprecated.Returns the reverse relation asStringif the data type is an entity.Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Tells if this field is multilingual.voidsetConstriction(@Nullable String constriction) Deprecated.voidsetDataType(String dataType) Deprecated.voidsetDefaultLangOnly(boolean defaultLangOnly) Deprecated.voidDeprecated.Sets the default value for this form component.voidsetIgnoreCopy(boolean ignoreCopy) Deprecated.voidsetLocalizedLanguage(String language) Deprecated.This is called from within the merge process.voidDeprecated.voidsetReverseRelationName(String reverseRelationName) Deprecated.voidsetValidator(AndGroupValidator validator) Deprecated.Methods inherited from class LabeledComponentWrapper
getLabel, getUseLabel, setLabel, setUseLabelMethods inherited from class 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, wrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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, wrapMethods inherited from interface LabeledComponent
getLabel, getUseLabel, setLabel, setUseLabel
-
Constructor Details
-
Method Details
-
getPath
-
getDataType
Deprecated.- Specified by:
getDataTypein 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:
setDataTypein interfaceDataComponent
-
getReverseRelationName
Deprecated.Description copied from interface:DataComponentReturns the reverse relation asStringif the data type is an entity. Otherwise NULL will be returned.- Specified by:
getReverseRelationNamein interfaceDataComponent
-
setReverseRelationName
Deprecated.- Specified by:
setReverseRelationNamein interfaceDataComponent
-
getDefaultDataType
Deprecated.Description copied from interface:DataComponentReturns 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:
getDefaultDataTypein interfaceDataComponent- Returns:
- The name of the nice2 data type.
-
hasNonEmptyValidator
public boolean hasNonEmptyValidator()Deprecated.- Specified by:
hasNonEmptyValidatorin 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:
getValidatorin interfaceDataComponent- Returns:
- The outermost group validator which may contain children, or null if none.
- See Also:
-
setValidator
Deprecated.- Specified by:
setValidatorin interfaceDataComponent
-
getDefaultValue
Deprecated.- Specified by:
getDefaultValuein interfaceDataComponent- Returns:
- the default value for this form component as specified in the form xml.
-
setDefaultValue
Deprecated.Description copied from interface:DataComponentSets the default value for this form component.- Specified by:
setDefaultValuein interfaceDataComponent
-
setLocalizedLanguage
Deprecated.Description copied from interface:DataComponentThis is called from within the merge process.- Specified by:
setLocalizedLanguagein interfaceDataComponent
-
isLocalized
public boolean isLocalized()Deprecated.Description copied from interface:DataComponentTells 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:
isLocalizedin interfaceDataComponent
-
getLocalizedLanguage
Deprecated.Description copied from interface:DataComponentReturns the language for which this field is if it is localized,nullif not.- Specified by:
getLocalizedLanguagein interfaceDataComponent- Returns:
- 2-letter iso code in lower case eg 'fr', or
nullif not localized.
-
getConstriction
Deprecated.- Specified by:
getConstrictionin interfaceDataComponent
-
setConstriction
Deprecated.- Specified by:
setConstrictionin interfaceDataComponent
-
setDefaultLangOnly
public void setDefaultLangOnly(boolean defaultLangOnly) Deprecated.- Specified by:
setDefaultLangOnlyin interfaceDataComponent
-
isDefaultLangOnly
public boolean isDefaultLangOnly()Deprecated.- Specified by:
isDefaultLangOnlyin interfaceDataComponent
-
setIgnoreCopy
public void setIgnoreCopy(boolean ignoreCopy) Deprecated.- Specified by:
setIgnoreCopyin interfaceDataComponent
-
isIgnoreCopy
-