Class AbstractBuilder<M,​V,​I extends ValueInput,​B extends Builder<M,​V,​B>>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractBuilder​(java.lang.String label)
      Instantiate.
    • Constructor Detail

      • AbstractBuilder

        public AbstractBuilder​(java.lang.String label)
        Instantiate.
        Parameters:
        label - Label.
    • Method Detail

      • createLabel

        protected javafx.scene.Node createLabel​(java.lang.String labelText,
                                                I valueInput)
        Creates the label Node.
        Parameters:
        labelText - Label text.
        valueInput - ValueInput.
        Returns:
        Label Node.
      • createErrorFeedback

        protected javafx.scene.Node createErrorFeedback​(I valueInput,
                                                        javafx.beans.property.Property<java.lang.Throwable> errorProperty)
        Creates the error feedback Node.
        Parameters:
        valueInput - ValueInput.
        errorProperty - Error Property.
        Returns:
        Error feedback Node.
      • getError

        protected java.lang.Throwable getError​(I valueInput,
                                               javafx.beans.property.ReadOnlyProperty<java.lang.Throwable> error)
        Obtains the error.
        Parameters:
        valueInput - ValueInput.
        error - Throwable error. May be null if no error.
        Returns:
        Throwable error or null if no error.
      • createCellProperty

        protected javafx.beans.property.Property<V> createCellProperty()
        Creates the Property for the TableCell.
        Returns:
        Property for the TableCell.
      • configureTableColumn

        protected <R> void configureTableColumn​(javafx.scene.control.TableView<R> table,
                                                javafx.scene.control.TableColumn<R,​V> column,
                                                javafx.util.Callback<java.lang.Integer,​javafx.beans.value.ObservableValue<V>> callback)
        Allow overriding to configure the TableColumn.
        Type Parameters:
        R - Row object type.
        Parameters:
        table - TableView that will contain the TableColumn.
        column - TableColumn.
        callback - Callback.
      • getLabel

        protected java.lang.String getLabel()
        Obtains the label.
        Returns:
        Label.
      • init

        public B init​(java.util.function.Function<M,​V> getInitialValue)
        Description copied from interface: Builder
        Configures obtaining the initial value.
        Specified by:
        init in interface Builder<M,​V,​I extends ValueInput>
        Parameters:
        getInitialValue - Obtains the initial value.
        Returns:
        this.
      • createTableColumn

        public <R> javafx.scene.control.TableColumn<R,​V> createTableColumn​(javafx.scene.control.TableView<R> table,
                                                                                 javafx.util.Callback<java.lang.Integer,​javafx.beans.value.ObservableValue<V>> callback)
        Description copied from interface: ColumnRenderer
        Creates the TableColumn.
        Specified by:
        createTableColumn in interface ColumnRenderer<M,​V>
        Type Parameters:
        R - Row object type.
        Parameters:
        table - TableView to contain the TableColumn.
        callback - Callback.
        Returns:
        TableColumn.
      • isEditable

        public boolean isEditable()
        Description copied from interface: ColumnRenderer
        Indicates if the column is editable.
        Specified by:
        isEditable in interface ColumnRenderer<M,​V>
        Returns:
        true if column is editable.