简体   繁体   English

如何动态设置输入到Nattable?

[英]How to set input to a Nattable dynamically?

I have a NatTable which will populate default data when a View is opened. 我有一个NatTable,它将在打开视图时填充默认数据。 I have to change the contents of NatTable and add more columns or remove columns to the NatTable based upon the selection of items from a combobox widget present in the same view. 我必须更改NatTable的内容,并根据同一视图中存在的组合框小部件中的项目选择,来添加更多列或将列删除到NatTable中。 How will I able to dynamically set the input to a NatTable and further add more columns or remove some of the columns? 如何动态地将输入设置为NatTable并进一步添加更多列或删除某些列? Please help me how to achieve this. 请帮助我如何实现这一目标。

Please download the NatTable Examples application from here: https://www.eclipse.org/nattable/documentation.php?page=examples_application 请从此处下载NatTable示例应用程序: https ://www.eclipse.org/nattable/documentation.php?page=examples_application

Then open Tutorial Examples -> Data -> ChangeDataProviderExample 然后打开教程示例->数据-> ChangeDataProviderExample

That example should show in detail how your requirement can be achieved. 该示例应详细显示如何实现您的要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM