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

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.

主站蜘蛛池模板: 北川| 阳高县| 荥阳市| 建平县| 蓬溪县| 读书| 张家界市| 遵化市| 固镇县| 凤凰县| 博兴县| 德江县| 大同县| 辽阳县| 遂平县| 子长县| 称多县| 龙井市| 临猗县| 江华| 花莲县| 三河市| 娱乐| 措勤县| 马尔康县| 临桂县| 社旗县| 嘉善县| 清涧县| 肇源县| 宜良县| 安陆市| 中阳县| 延安市| 茌平县| 延庆县| 宜宾市| 博兴县| 宝兴县| 沙河市| 咸丰县|