<icons>要素 |
 |
ネームスペース: |
http://xmlns.oracle.com/uix/ui/laf |
<icons>要素は、カスタム・ルック・アンド・フィールのアイコンを定義します。
説明 |
 |
デフォルトでは、カスタム・ルック・アンド・フィールは親ルック・アンド・フィールから提供されるアイコンを継承します。カスタム・ルック・アンド・フィールは、<icon>エントリをルック・アンド・フィール構成ファイルの<icons>セクションに追加することによって、親ルック・アンド・フィールが定義したカスタマイズ可能なアイコンをオーバーライドできます。
例 |
 |
次の例では、カスタム・ルック・アンド・フィールによって、<context-image>要素と<uri-image>要素の2つのアイコンをオーバーライドする方法を示します。
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- A custom look and feel that extends the Simple
Desktop Look And Feel -->
<look-and-feel xmlns="http://xmlns.oracle.com/uix/ui/laf"
id="custom.desktop"
family="custom"
extends="simple.desktop">
<!-- Define some custom icons -->
<icons>
<!-- Replace the error icon with a context-relative
icon. -->
<icon namespace="http://xmlns.oracle.com/uix/ui"
name="error">
<context-image uri="images/laf/custom/error.gif"/>
</icon>
<!-- Replace the warning icon with a fully
specified URI icon -->
<icon namespace="http://xmlns.oracle.com/uix/ui"
name="warning">
<uri-image uri="/webapp/laf/custom/warning.gif"/>
</icon>
</icons>
</look-and-feel>
子要素 |
 |
|
説明 |
必須 |
最大値 |
<icon> |
<icon>要素は、1つのカスタム・アイコンを定義します。 |
いいえ |
無限 |
|
This document was generated on Wed Jul 07 19:22:04 PDT 2004
Copyright © 2001, 2004, Oracle.All rights reserved.