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 public interface DataComponent extends LabeledComponent
Deprecated.
A data component is a component that contains data.

Most often it is also an editable component. See InputComponent.

  • Method Details

    • getPath

      DataPath getPath()
      Deprecated.
    • setPath

      void setPath(DataPath dataPath)
      Deprecated.
      Parameters:
      dataPath - For example the entity field name.
      Throws:
      IllegalStateException - when trying to change the model after finished model-reading
    • getDataType

      @Nullable @Nullable String 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

      void setDataType(String dataType)
      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

      @Nullable @Nullable String getReverseRelationName()
      Deprecated.
      Returns the reverse relation as String if the data type is an entity. Otherwise NULL will be returned.
    • setReverseRelationName

      void setReverseRelationName(String reverseRelationName)
      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

      void setValidator(AndGroupValidator validator)
      Deprecated.
    • getDefaultValue

      @Nullable @Nullable DefaultValueDescriptor getDefaultValue()
      Deprecated.
      Returns:
      the default value for this form component as specified in the form xml.
    • setDefaultValue

      void setDefaultValue(DefaultValueDescriptor value)
      Deprecated.
      Sets the default value for this form component.
    • setLocalizedLanguage

      void setLocalizedLanguage(String language)
      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

      @Nullable @Nullable String 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

      @Nullable @Nullable String getConstriction()
      Deprecated.
    • setConstriction

      void setConstriction(@Nullable @Nullable String constriction)
      Deprecated.
    • setDefaultLangOnly

      void setDefaultLangOnly(boolean defaultLangOnly)
      Deprecated.
    • isDefaultLangOnly

      boolean isDefaultLangOnly()
      Deprecated.
    • setIgnoreCopy

      void setIgnoreCopy(boolean ignoreCopy)
      Deprecated.
    • isIgnoreCopy

      boolean isIgnoreCopy()
      Deprecated.