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

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

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

Provider of the text of the current text editor component from a given table.
Note that if the table is not in editing state, no text can be provided.

See Also:
DataProvider, JTable, JTable.getCellEditor()

Constructor Summary
JTableTextEditorTextProvider(JTable table)
          Constructor specifying the table holding the editor component to get the text from.
 
Method Summary
 JTable 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

JTableTextEditorTextProvider

public JTableTextEditorTextProvider(JTable table)
Constructor specifying the table holding the editor component to get the text from.

Parameters:
table - Editable table.
Method Detail

getComponent

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