|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.validationframework.swing.dataprovider.JFormattedTextFieldValueProvider<DPO>
public class JFormattedTextFieldValueProvider<DPO>
Data provider reading the value from a formatted textfield.
Note that the value is not read from the model, but
instead corresponds to the current text.
DataProvider,
JFormattedTextField,
JTextComponent.getText()| Constructor Summary | |
|---|---|
JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField)
Constructor specifying the formatted textfield to get the value from. |
|
JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField,
com.google.code.validationframework.base.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. |
|
| Method Summary | |
|---|---|
JFormattedTextField |
getComponent()
Gets the component providing the data to be validated. |
DPO |
getData()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField)
formattedTextField - Formatted textfield to get the value from.
public JFormattedTextFieldValueProvider(JFormattedTextField formattedTextField,
com.google.code.validationframework.base.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.| Method Detail |
|---|
public JFormattedTextField getComponent()
public DPO getData()
getData in interface com.google.code.validationframework.api.dataprovider.DataProvider<DPO>DataProvider.getData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||