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 multipleNodeinstances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.scene.NodecreateErrorFeedback(I valueInput)Creates a new error feedbackNode.IcreateInput()Creates a new inputValueInput.javafx.scene.NodecreateLabel(java.lang.String labelText, I valueInput)Creates a new labelNode.java.lang.ThrowablegetError(I valueInput)Obtains the error with value.java.lang.StringgetLabel(I valueInput)Obtains the label text.booleanreloadIf(Builder<?,?,?> builder)Triggers to reload the value if matches theBuilder.
-
-
-
Method Detail
-
createInput
I createInput()
Creates a new inputValueInput.ValueInputresponsible 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 labelNode.- Parameters:
labelText- Label text.valueInput-ValueInput.- Returns:
- New label
Node.
-
createErrorFeedback
javafx.scene.Node createErrorFeedback(I valueInput)
Creates a new error feedbackNode.- Parameters:
valueInput-ValueInput.- Returns:
- Error feedback
Node.
-
reloadIf
boolean reloadIf(Builder<?,?,?> builder)
Triggers to reload the value if matches theBuilder.
-
getError
java.lang.Throwable getError(I valueInput)
Obtains the error with value.- Parameters:
valueInput-ValueInput.- Returns:
- Error with value.
nullto indicate no error. - See Also:
MessageOnlyException
-
-