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 multipleNode
instances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javafx.scene.Node
createErrorFeedback(I valueInput)
Creates a new error feedbackNode
.I
createInput()
Creates a new inputValueInput
.javafx.scene.Node
createLabel(java.lang.String labelText, I valueInput)
Creates a new labelNode
.java.lang.Throwable
getError(I valueInput)
Obtains the error with value.java.lang.String
getLabel(I valueInput)
Obtains the label text.boolean
reloadIf(Builder<?,?,?> builder)
Triggers to reload the value if matches theBuilder
.
-
-
-
Method Detail
-
createInput
I createInput()
Creates a new inputValueInput
.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 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.
null
to indicate no error. - See Also:
MessageOnlyException
-
-