Java 如何实例化单元列表<;字符串>;对象使用TextCell对象作为CellList的参数<;字符串>;建造师?

Java 如何实例化单元列表<;字符串>;对象使用TextCell对象作为CellList的参数<;字符串>;建造师?,java,gwt,celllist,Java,Gwt,Celllist,以下是GWT Javadoc迷你教程中的代码: TextCell textCell = new TextCell(); CellList<String> cellList = new CellList<String>(textCell); TextCell TextCell=new TextCell(); CellList CellList=新的CellList(textCell); 我问这个问题是因为我看不到TextCell和它与CellList构造函数要求之间的任

以下是GWT Javadoc迷你教程中的代码:

TextCell textCell = new TextCell();
CellList<String> cellList = new CellList<String>(textCell);
TextCell TextCell=new TextCell();
CellList CellList=新的CellList(textCell);
我问这个问题是因为我看不到TextCell和它与CellList构造函数要求之间的任何关系,因此,我看不到TextCell如何满足CelList要求

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.
单元列表(单元)
构建一个新的单元列表。
CellList(Cell Cell,CellList.Resources)
使用指定的CellList.Resources构建新的CellList。
单元列表(单元单元,单元列表。资源,ProvideKey Provider)
使用指定的CellList.Resources和密钥提供程序构造新的CellList。
单元列表(单元单元,ProvideKey Provider)
使用指定的密钥提供程序构造新的单元列表。
我的问题旨在基本上理解这是如何工作的,如果你们能告诉我哪一个Java或OOP主题或什么可以详细解释这一点


谢谢。

TextCell
只是实现了
Cell

TextCell和
Cell
之间的关系是什么?您对第一个构造函数有什么疑问?TextCell是否扩展了Cell?但它说的是“Cell.Context”,这是什么意思?在
Cell
接口中定义了一个类
Context
。因为
TextCell
实现了
Cell
,所以它继承了嵌套类。您要查看的内容位于页面顶部:“所有实现的接口:
单元