Here are some techniques for avoiding long-running actions in the UI thread, using a common example: a table or tree that is filled from some sort of database query, network call, or disk.
有一些技术用来避免UI线程中的长时间运行动作,举一个常见的例子:使用某种数据库查询、网络调用或磁盘进行填充的表或树。
The UI visible in Figures 1, 2, and 3 is a canvas container that holds three user interface components: the table and two menu buttons.
在图1、2和3中可见的UI是一个画布容器,它们包含3 个用户界面元素:表和两个菜单按钮。
Do not assume you can populate the table on the UI thread.
不要指望您能在UI线程中填充该表。
There are two UI searches and one backend daemon search on a table called iso_deals.
有两个UI搜索器和一个后端守护进程搜索器来搜索名为iso_deals的表。
You can see that Dojo provides tree, table, and many other widgets that help you create a desktop-like UI.
可以看到,Dojo提供了树、表和很多其它小部件,以帮助创建类似桌面的UI。
In the UI thread, populate your tree or table with placeholder values and, in a background Job, retrieve the real values and update the tree as you fetch them.
在UI线程里,用占位符填充树或表,在后台的Job中,检索真实数据并在获得数据后更新树。
Initially they wanted to show most table columns. The application took as much as 30 minutes due to loading up to 1 million rows to the front UI, even though the DB responded within about 1 minute.
最开始他们想要显示大多数字段,尽管数据库能在1分钟内做出响应,应用程序也要花30分钟将1百万行数据加载到前端ui。
Table 1 shows some techniques for finding long-running operations in a UI thread, along with the advantages and disadvantages.
表1介绍了一些用于发现UI线程上长时间运行的操作的技术,以及它们的优缺点。
The UI update method asks the table view for the array of visible cells. It compares these to the data model (with proper locks) and then updates cell content as needed.
用户界面更新方法询问可见细胞阵列的表观。比较这些数据模型(用适当的锁),然后更新单元格的内容需要。
Filter templates are user controls that render the UI for data filtering, which lets the user display the table rows based on a selected column value.
筛选器范本即是使用者控制项,可以呈现资料筛选的UI,让使用者可以依据选取的资料行值显示资料表资料列。
Gets a collection of UI Automation providers that represents all the column headers in a table.
获取一个表示表格中所有列标题的UI自动化提供程序的集合。
Retrieves a collection of UI Automation providers that represents all row headers in the table.
检索表示表格中所有行标题的UI自动化提供程序的集合。
Retrieves a collection of UI Automation providers representing all the column headers associated with a table item or cell.
撷取表示与资料表项目或储存格关联之所有资料行行首的UI自动化提供者集合。
Retrieves a collection of UI Automation providers representing all the row headers associated with a table item or cell.
撷取表示与资料表项目或储存格关联之所有资料列行首的UI自动化提供者集合。
The UI update method asks the table view for the array of visible cells.
用户界面更新方法询问可见细胞阵列的表观。
The UI update method asks the table view for the array of visible cells.
用户界面更新方法询问可见细胞阵列的表观。
应用推荐