0

GWT Javadoc ミニ チュートリアルのコードは次のようになります。

TextCell textCell = new TextCell();
CellList<String> cellList = new CellList<String>(textCell);

TextCell と CellList コンストラクターの要件との関係との関係がわからないため、これを尋ねます。

CellList コンストラクターは次のとおりです。

CellList(Cell<T> cell)
Construct a new CellList.
CellList(Cell<T> cell, CellList.Resources resources)
Construct a new CellList with the specified CellList.Resources.
CellList(Cell<T> cell, CellList.Resources resources, ProvidesKey<T> keyProvider)
Construct a new CellList with the specified CellList.Resources and key provider.
CellList(Cell<T> cell, ProvidesKey<T> keyProvider)
Construct a new CellList with the specified key provider.

私の質問は、基本的にこれがどのように機能するかを理解することを目的としています.JavaまたはOOPのトピックまたは何かがこれを詳細に説明できるか教えていただければ幸いです。

ありがとうございました。

4

1 に答える 1

1

TextCell単純に実装しますCell<String>: http://www.gwtproject.org/javadoc/latest/com/google/gwt/cell/client/TextCell.html

于 2014-03-18T17:17:13.420 に答える