限定されたHTMLマークアップのセットを含む書式設定されたテキストを出力するには、formattedTextコンポーネントを使用します。formattedTextコンポーネントは、次のHTMLマークアップのみをサポートしています。
<br>
<hr>
<li>,<ol>,<ul>
<p>
<b>
<i>
<tt>
<big>
<small>
<pre>
<span>
<a>
また、次の文字参照をサポートしています。
<
>
&
®
©
"
ADF UIXでは、入力されたHTMLが出力の際に修正される場合があります。たとえば、段落の要素およびリスト項目の要素は、入力テキストでは開始タグのみであっても、常に閉じタグが付きます。その他のHTMLマークアップは、現行のルックフィールまたはユーザー・エージェントに適した出力に置き換えられます。
ヒント: さらに強力なHTMLマークアップ機能が必要なときは、rawTextコンポーネントを使用します。HTML表またはHTMLリンクの場合、rawTextコンポーネントを使用することも、tableLayoutコンポーネントまたはlinkコンポーネントを使用することもできます。
formattedTextコンポーネントはstyleClass属性とstyleUsage属性の両方をサポートします。両方の属性を設定する場合は、styleClass属性がstyleUsage属性より優先されます。
次のUIX XMLコードSnippetは次のように出力されます。
Example:
...
<stackLayout>
<separator>
<separator/>
</separator>
<contents>
<formattedText text="This is the formattedText using instruction styleUsage."
styleUsage="instruction" />
<formattedText text="This is some text.<br> A new line of <p><big><i>text</i></big>
that is <b>bold</b> and <span class="OraHeader"> styled </span>"/>
<formattedText text="Below is text that can be used in a pageStamp area.
It uses styleUsage=pageStamp:"
styleUsage="instruction" />
<formattedText text="Logged in as <b>Scott</b>"
styleUsage="pageStamp" />
<formattedText text="some text">
<inlineStyle>
<property name="color">red</property>
</inlineStyle>
</formattedText>
</contents>
</stackLayout>
...
formattedTextの挿入
単純なコンポーネントおよびその他のコンポーネントの使用
Copyright © 1997, 2004, Oracle. All rights reserved.