Interface ValueRenderer<M,​I extends ValueInput>


  • public interface ValueRenderer<M,​I extends ValueInput>

    Renders the values.

    Implementations must provide new instances of the Node, as there may be different layouts requiring multiple Node instances.

    Author:
    Daniel Sagenschneider
    • Method Detail

      • createInput

        I createInput()
        Creates a new input ValueInput. ValueInput responsible for capturing the configuration via the UI.
        Returns:
        New input ValueInput.
      • getLabel

        java.lang.String getLabel​(I valueInput)
        Obtains the label text.
        Parameters:
        valueInput - ValueInput.
        Returns:
        Label text.
      • createLabel

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

        javafx.scene.Node createErrorFeedback​(I valueInput)
        Creates a new error feedback Node.
        Parameters:
        valueInput - ValueInput.
        Returns:
        Error feedback Node.
      • reloadIf

        boolean reloadIf​(Builder<?,​?,​?> builder)
        Triggers to reload the value if matches the Builder.
        Parameters:
        builder - Builder identifying the value to be reloaded from the model.
        Returns:
        true if the Builder.
      • getError

        java.lang.Throwable getError​(I valueInput)
        Obtains the error with value.
        Parameters:
        valueInput - ValueInput.
        Returns:
        Error with value. null to indicate no error.
        See Also:
        MessageOnlyException