黑莓如何清空表模型

发布于 2025-01-05 19:44:21 字数 89 浏览 4 评论 0原文

我的应用程序中有一个从 TableModelAdapter 扩展的表适配器实现,出于某种原因,我想将表模型设为空(删除模型内的所有数据)并用新值重新填充它 有可能吗

I have a tableadapter implementation in my application extended from TableModelAdapter and for some reason I want to make tablemodel empty (delete all data inside model) and refill it with new values
is it posible

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

昔日梦未散 2025-01-12 19:44:21

根据需要更新基础数据,然后调用 TableModel.modelReset() 通知 TableView 发生了重大变化。

Update your underlying data as needed and then call TableModel.modelReset() to notify the TableView that a big change has occured.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文