<resource-image>要素 |
![]() |
ネームスペース: | http://xmlns.oracle.com/uix/ui/laf |
構文 |
![]() |
<resource-image
uri="anyURI"
[ height="positiveInteger" ]
[ rtl-uri="anyURI" ]
[ styleClass="string" ]
[ width="positiveInteger" ] > <!-- The following child can be anything derived from the given element --> <inlineStyle></inlineStyle> </resource-image>
説明 |
![]() |
<resource-image>要素は、ClassLoader.getResource()を使用してクラスパスからロードされるアイコンを登録します。 その他のアイコン・タイプ(context-imageやuri-imageなど)とは異なり、リソース・イメージ・アイコンはWebアプリケーションにインストールする必要がありません。 かわりに、リソース・イメージ・アイコンは、JARファイル内にパッケージしてクラスパスから直接ロードできます。 uri属性は、クラスパス上に存在するイメージ・ファイルへのパスである必要があります。
例 |
![]() |
次の例では、リソース・イメージ・アイコンを登録する方法を示します。
<!-- Replace the error icon with a resource image icon. -->
<icon name="ui:error">
<resource-image uri="org/example/laf/custom/images/error.gif"/>
</icon>
属性 |
![]() |
子要素 |
![]() |
|