blob: 36e3f4b1868b9c6d22a22b61ccd29857f0fd9ec6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License,
Version 2.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Form styles="{fill:true, padding:0, leftAlignLabels:true}"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns:effects="org.apache.pivot.wtk.effects"
xmlns="org.apache.pivot.wtk">
<Form.Section heading="Test Section 1">
<TextArea Form.label="Text Area" styles="{margin:0}"
text="Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS...">
<decorators>
<effects:BaselineDecorator/>
</decorators>
</TextArea>
</Form.Section>
<Form.Section heading="Test Section 2">
<BoxPane orientation="vertical" Form.label="Table View" styles="{fill:true}">
<TableViewHeader bxml:id="tableViewHeader">
<decorators>
<effects:BaselineDecorator/>
</decorators>
</TableViewHeader>
<TableView bxml:id="tableView"
tableData="[{a:1, b:2, c:3}, {a:4, b:5, c:6}, {a:7, b:8, c:9}]">
<columns>
<TableView.Column name="a" width="100" headerData="A"/>
<TableView.Column name="b" width="100" headerData="B"/>
<TableView.Column name="c" width="100" headerData="C"/>
</columns>
<decorators>
<effects:BaselineDecorator/>
</decorators>
</TableView>
<bxml:script>
tableViewHeader.setTableView(tableView);
</bxml:script>
</BoxPane>
</Form.Section>
<Form.Section heading="Test Section 3">
<Label Form.label="ABCD" text="Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an AS IS BASIS..."
styles="{wrapText:true}"/>
</Form.Section>
</Form>