com.vaadin.ui.

Interface ComboBox.NewItemHandler

  • All Superinterfaces:

    Consumer<String>, Serializable, SerializableConsumer<String>

    Enclosing class:

    ComboBox<T>

    Functional Interface:

    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Deprecated
    @FunctionalInterface
    public static interface ComboBox.NewItemHandler
    extends SerializableConsumer<String>
    Deprecated.
    Since 8.4 replaced by ComboBox.NewItemProvider.

    Handler that adds a new item based on user input when the new items allowed mode is active.

    NOTE 1: If the new item is rejected the client must be notified of the fact via ComboBoxClientRpc or selection handling won't complete.

    NOTE 2: Selection handling must be completed separately if filtering the data source with the same value won't include the new item in the initial list of suggestions. Failing to do so will lead to selection handling never completing and previous selection remaining on the server.

    Since:

    8.0