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

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

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

Data provider reading the value from a slider.

See Also:
DataProvider, JSlider

Constructor Summary
JSliderValueProvider(JSlider slider)
          Constructor specifying the slider to get the value from.
 
Method Summary
 JSlider getComponent()
          Gets the component providing the data to be validated.
 Integer getData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSliderValueProvider

public JSliderValueProvider(JSlider slider)
Constructor specifying the slider to get the value from.

Parameters:
slider - Slider to get the value from.
Method Detail

getComponent

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

Returns:
Component providing the data to be validated.

getData

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


Copyright © 2013. All Rights Reserved.