public interface SwingListValidatorDataLocator<O>
SwingListValidatorMessage,
the cell of this data in a table editor.| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptType(Class<?> beanType)
Tests if the given type can be managed by this locator.
|
O |
locateBean(TableModel tableModel,
int rowIndex)
Locate the bean given his row index in the table.
|
int |
locateBeanRowIndex(TableModel tableModel,
O bean)
Locate the index of the row of the given bean.
|
org.apache.commons.lang3.tuple.Pair<Integer,Integer> |
locateDataCell(TableModel tableModel,
O bean,
String fieldName)
Locate the cell of the given data.
|
boolean acceptType(Class<?> beanType)
beanType - the type of bean to testtrue if this locator can manage this bean type.org.apache.commons.lang3.tuple.Pair<Integer,Integer> locateDataCell(TableModel tableModel, O bean, String fieldName)
tableModel - the table model where data are editedbean - the bean to locatefieldName - the field to locateint locateBeanRowIndex(TableModel tableModel, O bean)
tableModel - the table model where data are editedbean - the bean to findO locateBean(TableModel tableModel, int rowIndex)
tableModel - the table model where data are editedrowIndex - the row index of the bean to find in the editorCopyright © 2008–2019 Ultreia.io. All rights reserved.