清单9展示了这样一个扩展的属性元素的示例。
Listing 9 shows an example of such an extended attribute element.
清单5显示了属性页扩展的片断。
如果包含在XForms的主模式中,清单5中所示代码就可以扩展 XForms 模式,使得日常所用结构(如class和id属性)能够通过验证。
When included by the main schema for XForms, the code in Listing 5 extends the schema for XForms in a way that allows everyday constructs, like class and id attributes, to pass validation.
扩展了FlexUIComponent基类的Flex组件允许作为内联属性设置常见样式—换言之,即在MXML组件声明标签内(参见清单1)。
Flex components that extend the Flex UIComponent base class allow you to set common styles as properties inline-in other words, within the MXML component declaration tag (see Listing 1).
它扩展了清单1所示x ML文档的结构。增加了artist元素,该元素用id属性标识,每张cd至少有一个artist元素嵌套在cd元素中。
This expands on the XML structure shown in Listing 1. It adds artist elements, identified by an id attribute, and related to each CD by at least one artist element nested within each CD element.
清单5报告所有的Atom扩展元素和属性(即不属于Atom名称空间或XML名称空间的元素和属性)。
Listing 5 reports all Atom extension elements and attributes (that is, those that do not belong to the Atom namespace or the XML namespace).
也可以在扩展一个类型时添加一些属性,如 清单11 所示,其中,ParaType复杂类型定义被扩展为为label= 添加一个属性。
You can also add attributes when you extend a type, as in Listing 11, where the ParaType complex type definition is extended to add an attribute for label=.
当完成这些工作,任务定义就被扩展可以使用numSignatures属性(清单5)
When all this is done, a task definition can be extended with numSignatures attribute (Listing 5)
helponfocuscomponent类(参见清单15)扩展了SetupComponent,并实现了setup方法,每个rendered属性为true的嵌套组件都将调用此方法。
The HelpOnFocusComponent class (see Listing 15) extends SetupComponent and implements the setup method, which is called for every nested component whose rendered property is true.
Unique属性实现类扩展了清单6中所示的Validator抽象类。
The Unique attribute implementation class extends the abstract Validator class shown in Listing 6. Its source appears in Listing 10
Unique属性实现类扩展了清单6中所示的Validator抽象类。
The Unique attribute implementation class extends the abstract Validator class shown in Listing 6. Its source appears in Listing 10
应用推荐