だから私はフレックステーブルを持っていて、行を追加しようとしています。セルに入力したいデータはツリー内にあります。データを方程式に持ち込む方法が見つからないようです。何か助けはありますか?
サンプル情報を保持するツリーを次に示します。
private Node root = buildTree();
private Node buildTree()
{
Node root = new Node();
root.id = "Main Component";
root.data = new String[]{ "example", "example", "example", "example", "example", "example", "example"};
Node child1 = new Node();
child1.id = "Part 1";
child1.data = new String[]{ "example", "example", "example", "example", "example", "example", "example"};
root.children.add(child1);
Node child11 = new Node();
child11.id = "Part 1-1";
child11.data = new String[]{ "example", "example", "example", "example", "example", "example", "example"};
child1.children.add(child11);
addRow() を呼び出してテーブルに行を追加できるようにしたいのですが、ノードの配列内の情報を取得する方法に固執しています。
private void addRow(Node nde)
{
//add first row of data, pull information from the tree
}
どんな助けでも大歓迎です