matlab 表格控件,treeTable-创建可排序的表格控件

treeTable - create a sortable table control with collapsible row groups

Syntax:

htable = treeTable (pnContainer, headers, data, 'PropName',PropValue, ...)

Input parameters:

pnContainer - optional handle to container uipanel or figure (default: gcf)

headers - optional cell array of column header strings

data - optional numeric or cell array of data values

'PropName',PropValue - optional list of property-value pairs: Container, Headers, Data, IconFilenames, ColumnTypes, ColumnEditable, Groupable, InteractiveGrouping

(see internal help section for details)

Output parameters:

htable - handle to Java tree-table object

Important features:

* Table is fully sortable (multiple columns via ctrl-click on header)

* Table can be flat or hierarchical (grouping)

* Interactive grouping (like in Outlook)

* Editable drop-down (selector) option

* Table columns are automatically resized to fit the available width

* Table columns are rearrangeable by dragging the headers right/left

* Table columns can be resized by dragging their divider gridlines (not just the header)

* User-defined icons for leaf rows and grouping rows (expanded/collapsed)

* Sample data update and row selection callbacks included; user can attach custom callbacks

Warning:

This code heavily relies on undocumented and unsupported Matlab functionality. It works on Matlab 7+, but use at your own risk!

Bugs and suggestions:

Please send to Yair Altman (altmany at gmail dot com)

Technical details of the implementation can be found at http://UndocumentedMatlab.com/blog/treeTable

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值