Class AbstractDocumentField<T extends Component>
java.lang.Object
ch.tocco.nice2.model.form.api.components.AbstractComponent<T>
ch.tocco.nice2.model.form.api.components.AbstractLabeledComponent<T>
ch.tocco.nice2.model.form.api.components.AbstractDataComponent<T>
ch.tocco.nice2.model.form.api.components.simple.AbstractDocumentField<T>
- All Implemented Interfaces:
Component, InputComponent, LabeledComponent, DocumentField, DataComponent
- Direct Known Subclasses:
DocumentFieldImpl, NamedUploadFieldImpl, UploadFieldImpl
@Deprecated
public abstract class AbstractDocumentField<T extends Component>
extends AbstractDataComponent<T>
implements DocumentField
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 AbstractComponent
attributeProps, extProps, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractDocumentField(boolean acceptChildren, @Nullable Component parent) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.protected voidmapAllAttributesTo(Component comp) Deprecated.Copies the attributes of this component into the passed component.voidsetDownloadButton(Boolean downloadButton) Deprecated.voidsetPreview(Boolean preview) Deprecated.Methods inherited from class AbstractDataComponent
getConstriction, getDataNavigationType, getDataType, getDefaultDataType, getDefaultValue, getLocalizedLanguage, getPath, getReverseRelationName, getValidator, hasNonEmptyValidator, isDefaultLangOnly, isIgnoreCopy, isLocalized, setConstriction, setDataType, setDefaultLangOnly, setDefaultValue, setIgnoreCopy, setLocalizedLanguage, setPath, setReverseRelationName, setValidatorMethods inherited from class AbstractLabeledComponent
getLabel, getUseLabel, setLabel, setUseLabelMethods inherited from class AbstractComponent
addComponent, addComponent, collectDataParts, collectDataParts, createCopy, createCopy, equals, find, findByName, findByType, findFirst, findFirstByName, getAttributeProps, getChild, getChildren, getDisplayType, getEventHandler, getExtProps, getForm, getName, getParent, getParentOrEx, getPosition, getRelativeToPositionName, getScopes, getType, hashCode, hasParent, isForceEditable, isLeaf, isReplace, newInstanceForCopy, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, toStringMethods 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 DataComponent
getConstriction, getDataType, getDefaultDataType, getDefaultValue, getLocalizedLanguage, getPath, getReverseRelationName, getValidator, hasNonEmptyValidator, isDefaultLangOnly, isIgnoreCopy, isLocalized, setConstriction, setDataType, setDefaultLangOnly, setDefaultValue, setIgnoreCopy, setLocalizedLanguage, setPath, setReverseRelationName, setValidatorMethods inherited from interface LabeledComponent
getLabel, getUseLabel, setLabel, setUseLabel
-
Constructor Details
-
AbstractDocumentField
Deprecated.
-
-
Method Details
-
getPreview
-
setPreview
Deprecated.- Specified by:
setPreviewin interfaceDocumentField
-
getDownloadButton
Deprecated.- Specified by:
getDownloadButtonin interfaceDocumentField
-
setDownloadButton
Deprecated.- Specified by:
setDownloadButtonin interfaceDocumentField
-
mapAllAttributesTo
Deprecated.Description copied from class:AbstractComponentCopies the attributes of this component into the passed component.This is used to copy the attributes collected by the xml reading process from "general" field tags into datatype-specific customized fields (mapped by FieldComponentConverter). And also for copying instances, kind of like cloning.
Override this in your subclasses. Also, subclasses are required to let their anchestors do their work using
super.copyOtherFields(cpy).- Overrides:
mapAllAttributesToin classAbstractDataComponent<T extends Component>- Parameters:
comp- The new field into which everything needs to be copied.
-