下面这个示例展示了定制类的灵活性。
This examples illustrates the flexibility of custom classes.
创建一个定制类,使其名称与枚举名称相同。
Create a custom class with the same name as the enumeration name.
另一方面,可以把定制类添加到对您有意义的任何HTML标记中。
You can add custom classes, on the other hand, to any HTML tag that makes sense to you.
然后,就可以灵活地把这个定制类应用于任何可用的HTML元素。
You then flexibly apply the custom class to any available HTML element.
用于生成页面的HTML示例(注意,这里对链接使用定制类样式)。
HTML sample to generate a page (note the use of the custom class styles for the links).
转换的逻辑经常交给帮助方法和其他执行实际的转换工作的定制类来处理。
The logic of the transformation is most often delegated to helper methods and other custom classes that perform the real work of the transformation.
您可以缓存任何类型的数据,包括完整的对象图形、定制类、地图和数组。
You can cache any kind of data, including full object graphs, custom classes, maps, and arrays.
另一个原因是我有定制类和将需要复制两次,如果我有两个不同的口味。
Another reason is I have customized classes and will need to replicate twice if I have two separate flavors.
在数据库示例中,使用GMan帮助操作或从任何视图按f 1就可以查看定制类的全部文档。
In the sample database, use the GMan help action or press F1 from any view to see full documentation of the custom classes.
Sprite和FlexSprite是不需要时间线的基类,您可以通过扩展它们编写定制类。
Sprite and FlexSprite are the base classes that don't require a time line, and you can extend these to write your own custom classes.
它解释开发人员提供的标签,基于与JSF 定制类库匹配的预定义呈现逻辑,评估所需的最终结果。
It interprets developer-supplied markup, evaluating the desired end-result based on predefined rendering logic mapped to the JSF custom-class libraries.
在这一节,将讨论一些高级问题,当您开始pickle复杂对象时,会遇到这些问题,其中包括定制类的实例。
In this section, we'll cover some advanced issues that arise when you start to pickle complex objects, including instances of custom classes.
Assertion类型是DbUnit定义的定制类,可以进行特定于数据库结果集的额外断言。
The Assertion type is a custom class defined by DbUnit to facilitate additional assertions specific to database result sets.
objectify将子元素节点直接作为节点的属性进行连接(每个节点都是一个根据标记名命名的定制类)。
Gnosis.xml.objectify attaches subelement nodes directly as attributes of nodes (every node is of a custom class named after the tag name).
这个特性与新的对象创建语法关系密切,新的语法可以用类似数组的语法很容易地在Groovy 中创建 非定制类。
This feature goes hand-in-hand with a new syntax for object creation, which makes it easy to create non-custom classes in Groovy with an array-like syntax.
例如,使用 <pclass="12pointsans">和 <h1 class="12pointsans"> 就可以对这两种不同的元素应用同一个定制类。
For example, use < p class="12pointsans"> and < h1 class="12pointsans"> to apply the custom class to different elements.
为了区分这两种使用类的方法,本文把应用于任何地方的任何元素的类称为 “定制类(customclass)”,把与单一标记相关联的类称为 “标记类(tag class)”。
This article distinguishes the two ways to use classes by calling the "anywhere" type custom classes and the type associated with a single tag tag classes.
比如,用户可以跟踪一个XML文档,看到所有的节点和数值,或者跟踪某个定制的类,以看到它的结构和属性。
For instance a user can trace an XML document to see all the nodes and attributes, or trace a custom class to see its structure and properties.
您已经添加的定制代码类已被列出来了。
通过使用类,可以轻松地定制每个链接的外观。
Using class, you can easily customize the way each link looks.
有两类事件:标准和定制的事件。
完成上述步骤后,就可以在希望使用枚举的任何位置使用第5步中编写的定制枚举类了。
When you are done, you can use the custom enumeration class that you wrote in step 5 anywhere that you want the enumeration to be used.
定制的类所要做的只是定义一个映射ns TO HANDLER MAPPING,它为每个名称空间定义另一个从SOAP主体元素名到处理程序函数的映射。
All the customized class has to do is define a mapping, NS_TO_HANDLER_MAPPING, which for each namespace defines another mapping from SOAP body element name to a handler function.
正如上面注释中提到的那样,定制代码类的标准运行机制是exec (itestexecutionservices,String)方法。
As mentioned in the comment, the standard run mechanism for custom code classes is the exec (ITestExecutionServices, String ) method.
任何定制事件类必须实现XMLEvent接口。
Any custom event class must implement the XMLEvent interface.
我们还提供了两个定制的lotusscript类,它们支持更大范围的组操作。
We also present two custom LotusScript classes that support a wider set of group operations.
该定制服务工厂类应该实现OSGiServiceFactory接口。
The custom service factory class should implement the OSGi ServiceFactory interface.
到目前为止,您已经了解了如何定义定制事件类,但是还不清楚如何让StAX在解析过程中使用它们。
Thus far, you have learned how to define custom event classes, but nothing has been said about how to make StAX use them during the parsing process.
应用程序使用了一些Tomahawk验证器及一个定制validator类。
The application USES a few of the Tomahawk validators and a custom validator class.
WebView是一个相当复杂的类,可高度定制。
The WebView is a fairly complex class that can be highly customized.
应用推荐