I have this function in my GWT project:
private InputElement getInputElement(int rowIndex, int columnIndex,
CellTable<MyClassA> cellTable) {
InputElement input = null;
if (isColumnEditable(columnIndex)) {
input = (InputElement) cellTable.getRowElement(rowIndex).getCells().getItem(columnIndex).getFirstChild().getFirstChild();
}
return input;
}
If would like to re-use this function when the last parameter is CellTable<MyClassB>, because the rest of the code is exactly the same. How can I do that?