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