Define the renderer or implement inline.
定义渲染器或者内联地实现它。
Listing 14 shows the cell renderer for a JList.
清单14显示了JList的单元呈现程序。
The next thing to do is define the renderer functionality inline.
下面要做的是内联地定义渲染器的功能。
The renderer converts the values of the component to appropriate markup.
渲染器把组件的值转换成适当的标记。
Instead, they delegate that task to a component created by a renderer.
而是将此任务委托给由呈现程序创建的组件。
Thus, JSF components consist of two parts: the component and the renderer.
因此,JSF组件由两部分构成:组件和渲染器。
We modify the current row data object after it gets passed to the item renderer.
我们在当前的行数据对象传递到项呈现器之后修改它。
Formatter: : Template provides a simple templating system for renderer options.
Template提供了一个简单的包含各种显示选项的模板系统。
The renderer can then stretch the image in a certain way to fit the allotted space.
然后呈现程序可以通过一定的方式拉伸图像,以适合指定的空间。
We created our own item renderer to customize our data before showing it to the user.
在向用户显示数据之前,我们通过创建自己的项呈现器来定制数据。
The custom tag has two methods that return the component type and the renderer type.
定制标记有两个方法,分别返回组件类型和渲染器类型。
Autocad models, X3D, and other three-dimensional objects still need a custom renderer.
Autocad模型、X3D和其他三维对象仍然需要专门的呈现工具。
The family property shown below is used to associate the Label component with a renderer.
下面显示的family属性用来把Label组件与渲染器关联。
Each instance of the renderer program fetches a partial scene and builds a finished frame.
渲染程序的每一个实例都取得一部分场景并构建出一个完成的帧。
As previously mentioned, the main thing this renderer does is decode input and encode output.
正如前面提到的,渲染器做的主要工作就是解码输入和编码输出。
If you're wondering how the component is associated with the renderer, simply take a look at Figure 6.
如果想知道如何把组件和渲染器关联,那么只要看看图6即可。
Let's first consider the following code snippet in Listing 16 that shows how such a dynamic renderer can be built.
我们先考虑清单16中的代码片段,它说明如何构建这样的动态呈现器。
Otherwise, nothing would be shown on the screen because the SVG renderer does not zoom-in on the area in question.
否则,屏幕上不显示任何东西,因为SVG呈现器不能在当前区域放大。
With a delegated implementation approach, the component delegates to a renderer that does the encoding and decoding.
使用委托实现方式,组件委托渲染器进行编码和解码。
At runtime, the renderer converts the panel definition into the actual user interface, producing the necessary HTML code.
在运行时,此呈现器将面板定义转变为实际的用户界面,生成所需的HTML代码。
The only constraints are renderer performance and the desire to maintain a clean, easy-to-navigate interface for the end-user.
惟一的限制是呈现程序的性能和要求为终端用户维护一个干净、易导航的界面。
The type binding alone provides cues to the renderer, as seen in the markup in Listing 5, which results in the rendering in Figure 5.
类型绑定单独向呈现程序(renderer)提供提示,如清单5中的标记所示,这导致了图5中的呈现。
This method outputs the component family, the renderer type, the unique id, and the validated value of each component (see Listing 13).
此方法会输出组件成员、呈现程序类型、惟一id及每个组件验证后的值(见清单13)。
The AUIML renderer also takes care of handling the necessary data transfers between the client (browser) and the server (Web application).
AUIML呈现器还能负责处理客户端(浏览器)和服务器(Web应用程序)间的数据传输。
As you will see below in Listing 16, we use a renderer to customize the data and to color individual items in cells before displaying them.
如您即将在清单16中见到的一样,我们在显示数据之前使用呈现器定制它,并为单元格中的各个项着色。
As you can see, from an accessibility standpoint, working with renderer-provided components is very similar to working with normal components.
如您所见,从可访问性的观点看,使用呈现程序提供的组件非常类似于使用普通的组件。
Render Options in Rails 3 - Yehuda Katz looks at how Rails 3's rendering pipeline works and demonstrates how to add a custom PDF renderer to it.
——YehudaKatz关于Rails3的渲染通道工作,并演示了如何添加自定义的PDF格式渲染器(render)。
It can be rendered as a list of radio buttons, a scrollable selection area, or a menu, and you can use the appearance attribute to provide a hint for the renderer.
它可以呈现为一组单选按钮、可滚动的选择区域或者菜单,使用appearance属性告诉呈现引擎应该呈现为什么。
Still, with licensing costs around US$5,000 per server (though limited workstation licenses can be as low as US$79), not every project can afford its own XSL-FO renderer.
但是,获得许可证的费用大约是每台服务器US$5,000(尽管受限的工作站许可证可能只要 US$79),所以并不是每个项目都有能力购买自己的 XSL-FO 渲染器。
There is no distinction between inner and outer rings because the SVG attribute fill-rule="evenodd" tells the SVG renderer to determine the interior or exterior of areas again.
内环与外环之间没有区别,因为SVG属性fill-rule="evenodd" 会再次告诉 SVG呈现器去判别内部区域和外部区域。
应用推荐