Class AbstractDocumentField<T extends Component>

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.
  • Constructor Details

    • AbstractDocumentField

      protected AbstractDocumentField(boolean acceptChildren, @Nullable @Nullable Component parent)
      Deprecated.
  • Method Details

    • getPreview

      public Boolean getPreview()
      Deprecated.
      Specified by:
      getPreview in interface DocumentField
    • setPreview

      public void setPreview(Boolean preview)
      Deprecated.
      Specified by:
      setPreview in interface DocumentField
    • getDownloadButton

      public Boolean getDownloadButton()
      Deprecated.
      Specified by:
      getDownloadButton in interface DocumentField
    • setDownloadButton

      public void setDownloadButton(Boolean downloadButton)
      Deprecated.
      Specified by:
      setDownloadButton in interface DocumentField
    • mapAllAttributesTo

      protected void mapAllAttributesTo(Component comp)
      Deprecated.
      Description copied from class: AbstractComponent
      Copies 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:
      mapAllAttributesTo in class AbstractDataComponent<T extends Component>
      Parameters:
      comp - The new field into which everything needs to be copied.