DPO - Type of data in the spinner.Object.public class JSpinnerModelValueProvider<DPO> extends Object implements com.google.code.validationframework.api.dataprovider.DataProvider<DPO>
DataProvider,
JSpinner| Constructor and Description |
|---|
JSpinnerModelValueProvider(JSpinner spinner)
Constructor specifying the spinner to get the value from.
|
JSpinnerModelValueProvider(JSpinner spinner,
com.google.code.validationframework.api.transform.Transformer<Object,DPO> transformer)
Constructor specifying the spinner to get the value from, and the transformer to convert the spinner value to
DPO.
|
| Modifier and Type | Method and Description |
|---|---|
JSpinner |
getComponent()
Gets the component providing the data to be validated.
|
DPO |
getData() |
public JSpinnerModelValueProvider(JSpinner spinner)
By default, the spinner value will be cast to DPO.
spinner - Spinner to get the value from.public JSpinnerModelValueProvider(JSpinner spinner, com.google.code.validationframework.api.transform.Transformer<Object,DPO> transformer)
spinner - Spinner to get the value from.transformer - Transformer to convert the spinner value.public JSpinner getComponent()
Copyright © 2020. All rights reserved.