blob: f262f196c6b3f7758b1573056ca59fdb4375e2fd [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.
-->
<Frame title="FlowPane Test" styles="{padding:0}"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns:content="org.apache.pivot.wtk.content"
xmlns:effects="org.apache.pivot.wtk.effects"
xmlns="org.apache.pivot.wtk">
<FlowPane styles="{alignment:'left', padding:4}">
<!--
<PushButton buttonData="0" styles="{minimumAspectRatio:15}"/>
<PushButton buttonData="1" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="2" visible="false" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="3" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="4" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="5" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="6" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="7" preferredHeight="40" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="8" preferredHeight="50" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="9" preferredHeight="60" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="0" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="A" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="B" visible="false" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="C" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="D" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="E" styles="{minimumAspectRatio:1.5}"/>
<PushButton buttonData="F" styles="{minimumAspectRatio:1.5}"/>
-->
<PushButton buttonData="Hello" preferredHeight="80">
<decorators>
<effects:BaselineDecorator/>
</decorators>
<dataRenderer>
<content:ButtonDataRenderer styles="{verticalAlignment:'bottom'}"/>
</dataRenderer>
</PushButton>
<PushButton buttonData="World" preferredHeight="80">
<decorators>
<effects:BaselineDecorator/>
</decorators>
<dataRenderer>
<content:ButtonDataRenderer styles="{verticalAlignment:'top'}"/>
</dataRenderer>
</PushButton>
</FlowPane>
</Frame>