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

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

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

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

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

Constructor Summary
JTableComboBoxEditorSelectedIndexProvider(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.
 Integer getData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTableComboBoxEditorSelectedIndexProvider

public JTableComboBoxEditorSelectedIndexProvider(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 Integer getData()
Specified by:
getData in interface com.google.code.validationframework.api.dataprovider.DataProvider<Integer>
See Also:
DataProvider.getData()


Copyright © 2013. All Rights Reserved.