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

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

public class JSpinnerEditorTextProvider
extends Object
implements com.google.code.validationframework.api.dataprovider.DataProvider<String>

Data provider reading the text from the text editor of a spinner.

See Also:
DataProvider, JSpinner

Constructor Summary
JSpinnerEditorTextProvider(JSpinner spinner)
          Constructor specifying the spinner to get the text from.
 
Method Summary
 JSpinner getComponent()
          Gets the component providing the data to be validated.
 String getData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSpinnerEditorTextProvider

public JSpinnerEditorTextProvider(JSpinner spinner)
Constructor specifying the spinner to get the text from.

Parameters:
spinner - Spinner to get the text from.
Method Detail

getComponent

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

Returns:
Component providing the data to be validated.

getData

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


Copyright © 2013. All Rights Reserved.