|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.code.validationframework.swing.dataprovider.JSpinnerModelValueProvider<DPO>
DPO - Type of data in the spinner.Object.public class JSpinnerModelValueProvider<DPO>
Data provider reading the value from the model of a spinner.
DataProvider,
JSpinner| Constructor Summary | |
|---|---|
JSpinnerModelValueProvider(JSpinner spinner)
Constructor specifying the spinner to get the value from. By default, the spinner value will be cast to DPO. |
|
JSpinnerModelValueProvider(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 the spinner value to DPO. |
|
| Method Summary | |
|---|---|
JSpinner |
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 JSpinnerModelValueProvider(JSpinner spinner)
spinner - Spinner to get the value from.
public JSpinnerModelValueProvider(JSpinner spinner,
com.google.code.validationframework.base.transform.Transformer<Object,DPO> transformer)
spinner - Spinner to get the value from.transformer - Transformer to convert the spinner value.| Method Detail |
|---|
public JSpinner 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 | |||||||||