ツリーグリッド
オープンソース - Curl External Library
作者 Curl   
2011年5月31日(火曜日) 00:00

TreeGridを紹介します。

1番目のカラムにツリーを持つRecordGrid です。

sample-treegrid.jpg

使い方

TreeGridは、RecordGridを継承して作成されたクラスです。

{TreeGrid
  {RecordSetTreeModel.from-Url
    {url http://developers.curlap.com/curl/curl-ext/hp/t-treegrid_sample.csv},
    {RecordField "title", domain = String},
    {RecordField "notes", domain = String}
  },
  {RecordGridColumn
     "title"
  },
  {RecordGridColumn
    "notes"
  }
}

RecordGridと似たような使い方なのですが、特徴は、引数に model:RecordSetTreeModelを指定することです。
この例ではCSVファイルを指定していますが、ツリーモデルのデータが格納されています。

サンプル

以下のリンクにて、サンプルを確認することができます。

http://developers.curlap.com/curl/curl-ext/hp/curlext-overview_treegrid_v1.curl

http://developers.curlap.com/curl/curl-ext/hp/curlext-overview_treegrid_v2.curl 

最終更新 ( 2011年5月30日(月曜日) 14:30 )
 
Copyright 2010 - SCSK Corporation. All rights reserved.    免責事項