黑莓如何清空表模型
我的应用程序中有一个从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据需要更新基础数据,然后调用
TableModel.modelReset()
通知TableView
发生了重大变化。Update your underlying data as needed and then call
TableModel.modelReset()
to notify theTableView
that a big change has occured.