<template>要素 |
 |
ネームスペース: |
http://xmlns.oracle.com/uix/ui/laf |
<template>要素は、テンプレートベースのレンダラを定義します。
構文 |
 |
<template></template>
注意:
この要素は
<renderer> 要素内で使用されます。
説明 |
 |
<template>要素は、カスタム・ルック・アンド・フィールにUIX XMLテンプレートベースのレンダラを登録するために使用します。
例 |
 |
次の例では、テンプレートベースのレンダラを登録する方法を示します。
<!-- Replace the pageLayout Renderer with our own
template-based Renderer -->
<renderer name="ui:pageLayout">
<template name="templates/laf/custom/pageLayout.uit"/>
</renderer>
属性 |
 |
|
説明 |
型 |
name |
登録するテンプレート名。UIXでは、テンプレート・ファイルの場所指定およびロードに2つのメカニズムが使用されます。 UIXは、まずServletContext.getResource() をコールし、コンテキスト・ルートを基準としてテンプレートを検索します。テンプレートがサーブレット・コンテキスト・ルートで見つからない場合、UIXは現行コンテキストのClassLoader を使用し、ClassLoader.getResource() をコールしてテンプレートをロードします。 この2番目の方法を使用すると、テンプレートをJARファイルにバンドルできます。 必須。 |
URI |
|
This document was generated on Wed Jul 07 19:22:04 PDT 2004
Copyright © 2001, 2004, Oracle.All rights reserved.