DPO - Type of data in the combobox.Object.public class JComboBoxSelectedValueProvider<DPO> extends Object implements com.google.code.validationframework.api.dataprovider.DataProvider<DPO>
DataProvider,
JComboBoxSelectedIndexProvider,
JComboBox,
JComboBox.getSelectedItem()| Constructor and Description |
|---|
JComboBoxSelectedValueProvider(JComboBox comboBox)
Constructor specifying the combobox to get the selected value from.
|
JComboBoxSelectedValueProvider(JComboBox comboBox,
com.google.code.validationframework.api.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.
|
| Modifier and Type | Method and Description |
|---|---|
JComboBox |
getComponent()
Gets the component providing the data to be validated.
|
DPO |
getData() |
public JComboBoxSelectedValueProvider(JComboBox comboBox)
By default, the combobox value will be cast to DPO.
comboBox - Combobox to get the selected value from.public JComboBoxSelectedValueProvider(JComboBox comboBox, com.google.code.validationframework.api.transform.Transformer<Object,DPO> transformer)
comboBox - Combobox to get the selected value from.transformer - Transformer to convert the combobox value.public JComboBox getComponent()
Copyright © 2020. All rights reserved.