Class SpinnerDataBinding<V>
java.lang.Object
com.amalgamasimulation.desktop.binding.widgets.AbstractSpinnerDataBinding<V>
com.amalgamasimulation.desktop.binding.widgets.SpinnerDataBinding<V>
- Type Parameters:
V- The type of the model value being bound
- All Implemented Interfaces:
AbstractDataBinding<V>
Spinner binding that reads the value from a supplier and passes the new value to a handler.
- Author:
- Ionov Ivan
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractSpinnerDataBinding
canBeNull, controlDecoration, digits, fromNumber, maximum, minimum, spinner, toNumber, validation, validationMessage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPerforms an action when the value changes.getValue()Gets the current value from the binding.valueExtractor(Supplier<V> valueExtractor) Methods inherited from class com.amalgamasimulation.desktop.binding.widgets.AbstractSpinnerDataBinding
canBeNull, converter, createBinding, digits, enable, executeToModel, executeToTarget, range, setControl, toSelection, validationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.binding.widgets.AbstractDataBinding
createControlDecoration
-
Field Details
-
valueExtractor
-
handler
-
-
Constructor Details
-
SpinnerDataBinding
public SpinnerDataBinding()
-
-
Method Details
-
getValue
Description copied from interface:AbstractDataBindingGets the current value from the binding.- Returns:
- The current value of type V
-
doAction
Description copied from interface:AbstractDataBindingPerforms an action when the value changes.- Parameters:
newValue- The new value being set
-
valueExtractor
-
handler
-