官术网_书友最值得收藏!

Why JFace?

While SWT provides generic implementations for basic widgets (such as trees, buttons, labels, and so on), these often work at a level that deals with strings and responds to selection by integer index. To make it easier to display structured content, JFace provides several viewers that provide combinations of SWT widgets and event managers to provide a UI for structured content.

There are many types of viewer—which are all subclasses of Viewer—but the most common ones are ContentViewer subclasses such as TreeViewer and TableViewer. There are also text-based viewers such as TextViewer and SourceViewer, as well as operational views such as DetailedProgressViewer for the Progress view. In this chapter, we will create views based on TreeViewer and TableViewer. Since JFace is based on SWT (described in Chapter 2, Creating Views with SWT), knowing how SWT works is essential to understand how JFace is used.

主站蜘蛛池模板: 渑池县| 南投市| 宁阳县| 龙江县| 松原市| 洞头县| 大名县| 东乡县| 淮南市| 镇赉县| 荣成市| 聂荣县| 祥云县| 天门市| 文安县| 平江县| 东兰县| 武乡县| 深圳市| 湟源县| 江陵县| 泗水县| 望都县| 饶河县| 铜鼓县| 星子县| 咸丰县| 罗平县| 吉安县| 济宁市| 合肥市| 大英县| 上犹县| 吴堡县| 公主岭市| 万宁市| 虎林市| 广东省| 都兰县| 朝阳区| 南宁市|