public class JFormattedTextFieldValueProvider<DPO> extends Object implements com.google.code.validationframework.api.dataprovider.DataProvider<DPO>
DataProvider,
JFormattedTextField,
JTextComponent.getText()| Constructor and Description |
|---|
JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField)
Constructor specifying the formatted textfield to get the value from.
|
JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField,
com.google.code.validationframework.api.transform.Transformer<Object,DPO> transformer)
Constructor specifying the formatted textfield to get the value from and the transformer to convert it to the
required type.
|
| Modifier and Type | Method and Description |
|---|---|
JFormattedTextField |
getComponent()
Gets the component providing the data to be validated.
|
DPO |
getData() |
public JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField)
formattedTextField - Formatted textfield to get the value from.public JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField, com.google.code.validationframework.api.transform.Transformer<Object,DPO> transformer)
formattedTextField - Formatted textfield to get the value from.transformer - Transformer used to convert the object parsed from the spinner to the expected type.public JFormattedTextField getComponent()
Copyright © 2015. All Rights Reserved.