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