8.3.1機能説明
GroupDisplayタグに含まれる項目をグループ化し、グループ内での項目表示/非表示を制御します。
8.3.3記述例
GroupDisplayサンプル1
<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="GroupDisplaySample1" Width="100" Height="50" X="10" Y="10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0">
<!-- (1)Group1 -->
<Square Width="15" Height="10" LineColor="14,0,176" LineStyle="Solid"/>
<GroupDisplay Name="group1" Target="label1" Horizon="left" Vertical="bottom" Vector="vertical" Narrow="horizon">
<Label Name="label1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">KEY項目</Label>
<Label Name="label2" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">サンプル</Label>
</GroupDisplay>
<!-- (2)group2 -->
<Square Width="15" Height="10" X="20" LineColor="14,0,176" LineStyle="Solid"/>
<GroupDisplay Name="group2" Target="label1" X="20" Horizon="left" Vertical="bottom" Vector="vertical" Narrow="horizon">
<Label Name="label1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
<Label Name="label2" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">サンプル</Label>
</GroupDisplay>
<!-- (3)Group3 -->
<Square Width="15" Height="10" X="40" LineColor="14,0,176" LineStyle="Solid"/>
<GroupDisplay Name="group3" Target="label1" X="40" Horizon="left" Vertical="bottom" Vector="vertical" Narrow="horizon">
<Label Name="label1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">KEY項目</Label>
<Label Name="label2" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
</GroupDisplay>
<!-- (4)Group4 -->
<Square Width="15" Height="10" X="60" LineColor="14,0,176" LineStyle="Solid"/>
<GroupDisplay Name="group4" Target="label1" X="60" Horizon="left" Vertical="bottom" Vector="vertical" Narrow="horizon">
<Label Name="label1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
<Label Name="label2" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon"/>
</GroupDisplay>
</Layout>
- ※KEYとして指定された項目にデータが無い場合は、<GroupDisplay>内全ての項目が非表示になります。
- ①group1:KEY項目データあり・その他項目データあり
⇒ group内の項目が全て表示
- ②group2:KEY項目データなし・その他項目データあり
⇒ group内の項目が全て非表示
- ③group3:KEY項目データあり・その他項目データなし
⇒ group内でKEY項目のみ表示
- ④group4:KEY項目データなし・その他項目データなし
⇒ group内の項目が全て非表示
GroupDisplayサンプル2
GroupDisplayの背景/枠線など書式設定に関するサンプルです。
設定内容として、GroupAlignmentと同様の指定が可能です。
<?xml version="1.0" encoding="UTF-8"?>
<!-- XML file created by biz-Stream Designer -->
<!-- biz-Stream Copyright BrainSellers.com Corp. -->
<Layout Name="GroupDisplaySample2" Width="110" Height="40" X="10" Y="10" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:bs="http://www.brainsellers.com/schema" xmlns:svg="http://www.brainsellers.com/schema" xmlns:form="http://www.brainsellers.com/schema" xmlns:pdf="http://www.brainsellers.com/schema" version="5.0.0">
<!-- (1)Group1 -->
<GroupDisplay Name="group1" Target="label1" Width="30" Height="10" Horizon="left" Vertical="center" Vector="vertical" FillColor="204,204,204" Radius="2" Corners="true;true;true;true" Narrow="horizon">
<Label Name="label1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">KEY項目</Label>
<Label Name="label2" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">テキストテキストテキストテキスト</Label>
</GroupDisplay>
<!-- (2)Group2 -->
<GroupDisplay Name="group2" Target="label1" X="35" Horizon="left" Vertical="bottom" Vector="vertical" LineColor="153,153,153" Margin="start:5;end:5;top:10;bottom:5" Narrow="horizon">
<Label Name="label1" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">KEY項目</Label>
<Label Name="label2" Horizon="left" Vertical="bottom" Vector="horizon" Font="MSGothic" FontStyle="PLAIN" Narrow="horizon">テキストテキストテキストテキスト</Label>
</GroupDisplay>
</Layout>
- ①group1:Corner="true;true;true;true"、Radius="2"、FillColor="80"
- ②group2:LineColor="80"、Margin="start:5;end:5;top:10;bottom:20"
- ※GroupAlignmentと同内容の書式設定が可能です。
- GroupDisplayと他要素(ex.Square、Round)を重ねることなく、背景/枠線/余白などを指定できます。