未定義類參數我有這個功能在我的GWT項目:GWT:包括功能
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;
}
如果想在最後一個參數是CellTable<MyClassB>
再使用此功能,因爲代碼的其餘部分是一模一樣。我怎樣才能做到這一點?
是MyClassA和MyClassB有關嗎? – PermGenError
不是。但是對於這個功能應該是一樣的。正如你所看到的,我們不使用MyClass,僅僅使用cellTable函數。 – Arturo