CellList 自体をパネルに追加する代わりに、CellList メンバーをフロー パネルに 1 つずつ追加する方法はありますか?
例えば。
private static final CellList<MyNodeInfo> myNodeCellList =
new CellList<MyNodeInfo>(MyNodeInfoCell.getInstance());
static List<MyNodeInfo> myNodeList = new ArrayList<MyNodeInfo>();
private static final FlowPanel flowPanel = new FlowPanel();
...
myNodeCellList.setRowData(myNodeList);
...
// <<<<<<<<<
flowPanel.add(myNodeCellList);
// >>>>>>>>>
for (int i=0; i< myNodeCellList.size(); i++) {
// want to add indivisual member of myNodeCellList
flowPanel.add(...);
}
// **<- want to change like this!!**
FlowPanel の add() メソッドは、入力パラメータとして Widget を取得します。
CellList メンバーは (getElement() を使用して) Element にすることができますが、Widget にすることはできません。
各 CellList メンバーはウィジェットにできますか?