Interface SupportsDatatype<V>

Type Parameters:
V - the type of value the datatype describes
All Known Implementing Classes:
JmixComboBox, JmixRadioButtonGroup, JmixSelect, TypedDatePicker, TypedDateTimePicker, TypedTextField, TypedTimePicker

public interface SupportsDatatype<V>
Represents a contract for components or classes that support specifying a datatype.
  • Method Summary

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

    • getDatatype

      @Nullable Datatype<V> getDatatype()
      Returns the datatype of this component.
      Returns:
      the datatype, or null if no datatype is set
    • setDatatype

      void setDatatype(@Nullable Datatype<V> datatype)
      Sets the datatype of this component.
      Parameters:
      datatype - the datatype to be set, or null to unset the current datatype