DPO - Type of data in the spinner editor.Object.public class JSpinnerEditorValueProvider<DPO> extends Object implements com.google.code.validationframework.api.dataprovider.DataProvider<DPO>
DataProvider,
JSpinner| Constructor and Description |
|---|
JSpinnerEditorValueProvider(JSpinner spinner)
Constructor specifying the spinner to get the value from.
|
JSpinnerEditorValueProvider(JSpinner spinner,
com.google.code.validationframework.base.transform.Transformer<Object,DPO> transformer)
Constructor specifying the spinner to get the value from and the transformer to convert it to the required type.
|
| Modifier and Type | Method and Description |
|---|---|
JSpinner |
getComponent()
Gets the component providing the data to be validated.
|
DPO |
getData() |
protected JFormattedTextField.AbstractFormatter |
getFormatter()
Retrieves the formatter currently in the text component of the spinner, if any.
Note that if editor of the spinner has been customized, this method may need to be adapted in a sub-class. |
protected String |
getText()
Retrieves the text currently in the text component of the spinner, if any.
Note that if editor of the spinner has been customized, this method may need to be adapted in a sub-class. |
public JSpinnerEditorValueProvider(JSpinner spinner)
spinner - Spinner to get the value from.public JSpinnerEditorValueProvider(JSpinner spinner, com.google.code.validationframework.base.transform.Transformer<Object,DPO> transformer)
spinner - Spinner to get the value from.transformer - Transformer used to convert the object parsed from the spinner to the expected type.public JSpinner getComponent()
public DPO getData()
getData in interface com.google.code.validationframework.api.dataprovider.DataProvider<DPO>DataProvider.getData()protected String getText()
protected JFormattedTextField.AbstractFormatter getFormatter()
Copyright © 2013. All Rights Reserved.