<icons>要素
ネームスペース: http://xmlns.oracle.com/uix/ui/laf

<icons>要素は、カスタム・ルック・アンド・フィールのアイコンを定義します。

構文
<icons>
   <icon></icon>
</icons>

注意:
  • この要素は<lookAndFeel>要素内で使用されます。

  • 説明

    デフォルトでは、カスタム・ルック・アンド・フィールは親ルック・アンド・フィールから提供されるアイコンを継承します。 カスタム・ルック・アンド・フィールは、<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つのカスタム・アイコンを定義します。
    いいえ 無限