com.google.code.validationframework.swing.dataprovider
Class BaseJTextComponentTextProvider<C extends JTextComponent>

java.lang.Object
  extended by com.google.code.validationframework.swing.dataprovider.BaseJTextComponentTextProvider<C>
Type Parameters:
C - Type of text component to retrieve the text from.
All Implemented Interfaces:
com.google.code.validationframework.api.dataprovider.DataProvider<String>
Direct Known Subclasses:
JEditorPaneTextProvider, JFormattedTextFieldTextProvider, JTextAreaTextProvider, JTextComponentTextProvider, JTextFieldTextProvider, JTextPaneTextProvider

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

Data provider retrieving the text from a text component.

See Also:
DataProvider, JTextComponent

Constructor Summary
BaseJTextComponentTextProvider(C textComponent)
          Constructor specifying the text component to retrieve the text from.
 
Method Summary
 C 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

BaseJTextComponentTextProvider

public BaseJTextComponentTextProvider(C textComponent)
Constructor specifying the text component to retrieve the text from.

Parameters:
textComponent - Text component to retrieve the text from.
Method Detail

getComponent

public C 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.