Class MultipleBuilderImpl<M,​V>

    • Constructor Detail

      • MultipleBuilderImpl

        public MultipleBuilderImpl​(java.lang.String label,
                                   EnvironmentBridge envBridge)
        Instantiate.
        Parameters:
        label - Label.
        envBridge - EnvironmentBridge.
    • Method Detail

      • itemLabel

        public void itemLabel​(java.util.function.Function<V,​java.lang.String> getItemLabel)
        Description copied from interface: MultipleBuilder
        Configures obtaining the label for the particular item.
        Specified by:
        itemLabel in interface MultipleBuilder<M,​V>
        Parameters:
        getItemLabel - Function to obtain the label for a particular item.
      • list

        public <I> ListBuilder<V,​I> list​(java.lang.String label,
                                               java.lang.Class<I> itemType)
        Description copied from interface: InputBuilder
        Configures creating a list of items.
        Specified by:
        list in interface InputBuilder<M>
        Type Parameters:
        I - Item type.
        Parameters:
        label - Label for the items.
        itemType - Item type.
        Returns:
        ListBuilder.
      • select

        public <I> SelectBuilder<V,​I> select​(java.lang.String label,
                                                   java.util.function.Function<V,​javafx.collections.ObservableList<I>> getItems)
        Description copied from interface: InputBuilder
        Configures selecting from a list of items.
        Specified by:
        select in interface InputBuilder<M>
        Type Parameters:
        I - Item type.
        Parameters:
        label - Label for the selection.
        getItems - Function to extract the items.
        Returns:
        SelectBuilder.
      • optional

        public OptionalBuilder<V> optional​(java.util.function.Predicate<V> isShow)
        Description copied from interface: InputBuilder
        Configures optional configuration.
        Specified by:
        optional in interface InputBuilder<M>
        Parameters:
        isShow - Predicate on whether to show the optional configuration.
        Returns:
        OptionalBuilder.
      • multiple

        public <I> MultipleBuilder<V,​I> multiple​(java.lang.String label,
                                                       java.lang.Class<I> itemType)
        Description copied from interface: InputBuilder
        Configures multiple items.
        Specified by:
        multiple in interface InputBuilder<M>
        Type Parameters:
        I - Item type.
        Parameters:
        label - Label for the items.
        itemType - Item type.
        Returns:
        MultipleBuilder.
      • map

        public MappingBuilder<V> map​(java.lang.String label,
                                     java.util.function.Function<V,​javafx.collections.ObservableList<java.lang.String>> getSources,
                                     java.util.function.Function<V,​javafx.collections.ObservableList<java.lang.String>> getTargets)
        Description copied from interface: InputBuilder
        Configures a mapping of name to name.
        Specified by:
        map in interface InputBuilder<M>
        Parameters:
        label - Label for the mapping.
        getSources - Function to extract the sources.
        getTargets - Function to extract the targets.
        Returns:
        MappingBuilder.