com.google.code.validationframework.swing.dataprovider
Class JListSelectedIndicesProvider

java.lang.Object
  extended by com.google.code.validationframework.swing.dataprovider.JListSelectedIndicesProvider
All Implemented Interfaces:
com.google.code.validationframework.api.dataprovider.DataProvider<Collection<Integer>>

public class JListSelectedIndicesProvider
extends Object
implements com.google.code.validationframework.api.dataprovider.DataProvider<Collection<Integer>>

Data provider retrieving the selected indices of a list.

See Also:
DataProvider, JList, JList.getSelectedIndices(), JListSelectedIndexProvider, JListSelectedValueProvider, JListSelectedValuesProvider

Constructor Summary
JListSelectedIndicesProvider(JList list)
          Constructor specifying the list to get the selected indices from.
 
Method Summary
 JList getComponent()
          Gets the component providing the data to be validated.
 Collection<Integer> getData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JListSelectedIndicesProvider

public JListSelectedIndicesProvider(JList list)
Constructor specifying the list to get the selected indices from.

Parameters:
list - List to get the selected index from.
Method Detail

getComponent

public JList getComponent()
Gets the component providing the data to be validated.

Returns:
Component providing the data to be validated.

getData

public Collection<Integer> getData()
Specified by:
getData in interface com.google.code.validationframework.api.dataprovider.DataProvider<Collection<Integer>>
See Also:
DataProvider.getData()


Copyright © 2013. All Rights Reserved.