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

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.

主站蜘蛛池模板: 百色市| 高雄县| 平舆县| 朝阳县| 和硕县| 峨边| 卢氏县| 镇巴县| 洛阳市| 平塘县| 佛坪县| 安顺市| 广元市| 柯坪县| 垦利县| 靖安县| 铁力市| 无锡市| 湖南省| 祁阳县| 鹰潭市| 怀安县| 额尔古纳市| 岳阳市| 温州市| 霍林郭勒市| 缙云县| 龙游县| 航空| 岳阳市| 佛教| 南投市| 三门县| 四会市| 河西区| 怀集县| 鲁甸县| 三门县| 保康县| 临猗县| 渭南市|