Interface UiInput<V>

    • Method Detail

      • hasNameWidget

        boolean hasNameWidget()
        Returns:
        true if the name widget has already been created, false otherwise. Helpful to avoid unintended lazy initialization.
      • getNameWidget

        UiLabel getNameWidget()
        Returns:
        the UiLabel of this input. May be lazily created on the first call of this method to avoid unnecessary overhead (e.g. if a UiInput is used for inline editing).
      • hasContainerWidget

        boolean hasContainerWidget()
        Returns:
        true if the container widget has already been created, false otherwise. Helpful to avoid unintended lazy initialization.
      • getContainerWidget

        UiRegularWidget getContainerWidget()
        Returns:
        the UiRegularWidget containing both the name widget and the actual input widget. Will be lazily created on the first call of this method.
      • of

        static <V> UiInput<V> of​(Class<V> datatype)
        Type Parameters:
        V - type of the datatype.
        Parameters:
        datatype - the Class reflecting the datatype.
        Returns:
        the UiInput for the given datatype.
      • of

        static <V> UiInput<V> of​(Class<V> datatype,
                                 boolean required)
        Type Parameters:
        V - type of the datatype.
        Parameters:
        datatype - the Class reflecting the datatype.
        required - true if a UiSingleWidgetFactoryDatatype has to be registered for the given datatype, false otherwise.
        Returns:
        the UiInput for the given datatype. May be null if required is false.