最后,小部件的定义文件还指定了小部件视图和编辑模式的布局。
Lastly, the widget definition file also specifies the widget layout for view and edit modes.
清单8显示了资源处理程序的内容,该处理程序显示我们创建的小部件视图。
Listing 8 shows the contents of the resource handler that exposes the widget view we created.
在随后进行更改时,将视图部件实例的引用存储到一个类变量中。
In the change that follows, it stores a reference to the view part instance in a class variable.
为小部件支持的一个或多个视图定义标记(HTML代码)的方法。
A way to define the markup (HTML code) of one or more views supported by the widget.
部署视图不仅体现了硬件基础架构,而且解释了部件如何打包到一起并部署的。
Deployment views show the hardware infrastructure but also explain how deployment artifacts are packaged together and deployed.
这个标识符通常与为选项卡式属性视图提供属性的惟一工作平台部件id相一致。
This identifier usually matches the unique workbench part id that contributes to the tabbed properties view.
为此,我们对插件进行必要的扩展以创建视图部件和类别,视图即显示在该类别下。
To do this, we make the necessary extensions in our plug-in to create the view part and the category under which the view will appear.
显示视图联系末端与部件的图形。
BuddyNote是一个视图部件。
现在已经准备好了消息处理程序和适配器,将向 BuddyNoteView添加在视图部件中响应事件的方法。
Now that the message handler and adapter are finished, you add the methods to BuddyNoteView that respond to these events in the view part.
当第一次连接LotusSametime 时,在用户显示如图1 所示的联系人之前,BuddyNote视图部件将显示默认用户的信息。
When Lotus Sametime first connects, the BuddyNote view part displays information about the user by default until the user selects a contact as shown in figure 1.
在第2部分中,您创建了视图部件及其对象(如按钮、文本框和表示视图)。
In part 2, you created the view parts and its objects (such as button, text box, and table view).
本文引导您逐步创建了一个LotusSametime视图部件扩展。
This article guided you through the creation of a Lotus Sametime view part extension.
这一次,可以使用 org.eclipse.ui.viewActions 扩展点将某些动作与特定视图部件相关联。
This time it is the org.eclipse.ui.viewActions point that allows you to associate some actions with a particular view part.
在模式中添加的第一个可扩展节点部件(图6所示的模式编辑器视图中最右边的部件)上需要这个脚本包。
This script package is required on the first Extendable nodes part added to the pattern (the part to the far right in the pattern editor view in Figure 6).
注意此处假设视图部件只有一个实例。
Note that this assumes there is only one instance of the BuddyNote view part. Replace or modify the existing constructor to match the one shown here.
图6是InstallConfiguration视图中显示的被禁用的功能部件。
Figure 6 shows the Install Configuration view showing which features are disabled.
用FadingTooltip部件定义的工具提示会直接弹入和弹出视图,而不是淡入和淡出。
Tooltips defined with the FadingTooltip widget pop into and out of view, rather than fading in and out.
这样就能将 wrapper部件添加到Outline视图中,且该部件已打开并使它可供编辑。
The wrapper part is added to the Outline view, and the part opens ready for editing.
Viewer或者说MVC的视图部分,也充当部件容器;这是表示组件。
Viewer, or the View part of MVC, also ACTS as a widget container; this is the presentation component.
在自定义步骤完成小部件和ECM步骤完成小部件之间连接发送工作项目事件,以便自定义小部件能够获取工作项目并在其视图模式中呈现。
Wire the send work item event between the custom step completion widget and the ECM step completion widget so that the custom widget can obtain the work item to render in its view mode.
找到群组小部件,然后选择我的群组视图。
还可以将“我的小部件”视图布置为一个两列或三列的布局。
You can arrange the My widgets view in a two-column or three-column layout.
接下来,清单11显示了一个视图,该视图构建包含我们的小部件的页面。
Next, Listing 11 shows the view that builds the page that contains our widget.
本文的最后小节主要关注向该包装器添加功能,比如用户可以通过它修改小部件首选项值的编辑视图。
The final section of this article focuses on adding capabilities to this wrapper, such as an edit view where users can modify the values of the gadget preferences.
声明扩展,从而添加作为视图部件的应用程序,该视图部件位于用户界面中,将使用可折叠的框架显示与LotusSametime交互的应用程序。
Declare an extension to add an application as a view part, which is an area of the user interface where applications that interact with Lotus Sametime can be displayed using collapsible frames.
intdebug被添加到Outline视图中,并且该部件已被打开并准备被编辑。
Intdebug is added to the Outline view, and the part opens ready for editing.
当鼠标光标停留在一个HTML元素上之后,这个FadingTooltip部件会淡入视图,工具提示显示一段时间之后就淡出视图。
This FadingTooltip widget fades into view after the cursor hesitates over an HTML element, and then fades from view after the tooltip has displayed for a while.
这个例子中的小部件仅有一个模式view(视图),它是默认的模式。
In this example, the widget has only one mode, view, which is the default mode.
除Design视图外,使用这个视图可以选择任何一个小部件来更改这个小部件的属性。
You can use this view, in addition to the Design view, to select any of the widgets in order to change the widget properties.
应用推荐