Interface HasDatatype<V>

All Known Subinterfaces:
Calendar<V>, CurrencyField<V>, DateField<V>, DatePicker<V>, MaskedField<V>, ResizableTextArea<V>, Slider<V>, TextArea<V>, TextField<V>, TimeField<V>
All Known Implementing Classes:
AbstractTextArea, CalendarImpl, CurrencyFieldImpl, DateFieldImpl, DatePickerImpl, MaskedFieldImpl, ResizableTextAreaImpl, SliderImpl, TextAreaImpl, TextFieldImpl, TimeFieldImpl

public interface HasDatatype<V>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    setDatatype(Datatype<V> datatype)
    Sets the given datatype to the component.
  • Method Details

    • setDatatype

      @StudioProperty(type=DATATYPE_ID, typeParameter="V") void setDatatype(@Nullable Datatype<V> datatype)
      Sets the given datatype to the component. Its value will be formatted according to this datatype.
      Parameters:
      datatype - Datatype instance
    • getDatatype

      @Nullable Datatype<V> getDatatype()
      Returns:
      a datatype that is used by this component