那么,怎样定义小部件测试呢?
步骤完成小部件保存工作项目。
例如,假设您有两个小部件。
定义小部件应该发布的事件。
步骤完成小部件关闭所有步骤处理器小部件。
The step completion widget closes all step processor widgets.
键入小部件的新标题。
现在小部件已连接。
创建小部件定义。
文本小部件是可编辑的,图像小部件则不能编辑。
这个小部件通常供其他小部件内部使用,生成日期。
This widget is usually used internally by other widgets to generate dates.
如果小部件包含有内部小部件,那么必须调用此方法。
This method must be called if the widget contains inner widgets.
文本窗口小部件和条目窗口小部件都实现了这个接口。
Both the text widget and the entry widget implement this interface.
启动进程启动进程小部件在工具栏小部件中注册操作。
Launch process Launch process widgets register actions in toolbar widgets.
发送小部件发布一个事件,接收小部件接受并处理事件。
A sending widget publishes an event, and the receiving widgets accept and process the event.
小部件连接后,两个小部件之间的通信通道也就建成了。
After the widgets are wired, the communication channel between the two widgets is built up.
小部件属性可以被重新映射到小部件模板的用户定义节点。
Widget properties can be remapped to user-defined nodes of the widget template.
实现者负责管理小部件的整个生命周期,包括小部件的销毁。
Implementers are in charge of managing the whole widget lifecycle, including the widget destruction.
保险审批小部件能够利用ECM步骤完成小部件提供的功能。
The insurance approval widget can leverage the functions that the ECM step completion widget provides.
在小部件中,单击小部件标题栏中的动作菜单,然后单击编辑。
In the widget, click the action menu on the widget title bar, and then click Edit.
本文中描述的HTML表单小部件示例就是一个轻量级小部件。
The sample HTML form widget described in this article is a lightweight widget.
最后,小部件的定义文件还指定了小部件视图和编辑模式的布局。
Lastly, the widget definition file also specifies the widget layout for view and edit modes.
此函数接收json格式的小部件定义并初始化一个新的小部件。
This function receives the widget's definition in JSON format and initializes a new widget.
借助它,可以快速构建较标准HTML小部件更为复杂的小部件。
It allows you to quickly build widgets that can be more complex than standard HTML widgets.
图3展示了自定义步骤完成小部件和这些ECM小部件之间的关系。
Figure 3 shows the relationship between the custom step completion widget and the ECM widgets.
第 3部分将介绍如何使用第三方小部件扩展ECM 小部件。
Part 3 will describe how to expand ECM widgets using third-party widgets.
在应用新的小部件之前,您需要配置收文篮小部件和内容列表小部件。
Before applying the new widget, you need to configure the in-basket widget and the content list widget.
HTML表单小部件示例的一个关键特性是可以将数据捆绑到小部件中。
One key feature of the sample HTML form widget is that you can wire data into the widget.
ECM步骤完成小部件将工作项目信息发送到自定义步骤完成小部件。
The ECM step completion widget sends the work item information to the custom step completion widget.
隐藏步骤完成小部件,以便用户只能使用保险审批小部件来完成工作项目。
Hide the step completion widget so that the user can use only the insurance approval widget to complete the work item.
要移动小部件,单击小部件标题栏并将小部件拖拽到概览页面上的新位置。
To move a widget, click the widget title bar and drag the widget to a new location on the overview page.
应用推荐