DPO - Type of data in the list.Object.public class JListSelectedValueProvider<DPO> extends Object implements com.google.code.validationframework.api.dataprovider.DataProvider<DPO>
DataProvider,
JList,
JList.getSelectedValue(),
JListSelectedIndexProvider,
JListSelectedIndicesProvider,
JListSelectedValuesProvider| Constructor and Description |
|---|
JListSelectedValueProvider(JList list)
Constructor specifying the list to get the selected value from.
|
JListSelectedValueProvider(JList list,
com.google.code.validationframework.api.transform.Transformer<Object,DPO> transformer)
Constructor specifying the list to get the selected value from, and the transformer to convert the list value to
DPO.
|
| Modifier and Type | Method and Description |
|---|---|
JList |
getComponent()
Gets the component providing the data to be validated.
|
DPO |
getData() |
public JListSelectedValueProvider(JList list)
By default, the list value will be cast to DPO.
list - List to get the selected value from.public JListSelectedValueProvider(JList list, com.google.code.validationframework.api.transform.Transformer<Object,DPO> transformer)
list - List to get the selected value from.transformer - Transformer to convert the list value.public JList getComponent()
Copyright © 2020. All rights reserved.