You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2011/11/24 16:53:00 UTC

svn commit: r1205893 - /pivot/trunk/tests/src/org/apache/pivot/tests/recursive_disable.bxml

Author: smartini
Date: Thu Nov 24 15:53:00 2011
New Revision: 1205893

URL: http://svn.apache.org/viewvc?rev=1205893&view=rev
Log:
PIVOT-798, test case

Added:
    pivot/trunk/tests/src/org/apache/pivot/tests/recursive_disable.bxml

Added: pivot/trunk/tests/src/org/apache/pivot/tests/recursive_disable.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/recursive_disable.bxml?rev=1205893&view=auto
==============================================================================
--- pivot/trunk/tests/src/org/apache/pivot/tests/recursive_disable.bxml (added)
+++ pivot/trunk/tests/src/org/apache/pivot/tests/recursive_disable.bxml Thu Nov 24 15:53:00 2011
@@ -0,0 +1,59 @@
+<?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.
+-->
+
+<Window maximized="true"
+    xmlns:bxml="http://pivot.apache.org/bxml" 
+    xmlns="org.apache.pivot.wtk"
+>
+	<BoxPane orientation="vertical" styles="{padding:6, spacing:8, fill:true}">
+		<Checkbox buttonData="Enable Magic">
+			<buttonStateListeners>
+				function stateChanged(button, previousState) {
+				    paneMagic.setEnabled(button.isSelected());
+				}
+            </buttonStateListeners>
+		</Checkbox>
+		<TablePane bxml:id="paneMagic" enabled="false"
+		  styles="{verticalSpacing:4, horizontalSpacing:4, padding:{left:20}}">
+		    <columns>
+            <TablePane.Column width="-1" />
+            <TablePane.Column width="1*" />
+            </columns>
+            <TablePane.Row>
+                <Label text="Preferred spell:"/>
+                <ListButton listData="['Accio', 'Expeliarmus', 'Riddikulus']" selectedIndex="0"/>
+            </TablePane.Row>
+            <TablePane.Row>
+                <Label text="Wand supplier:"/>
+                <TextInput bxml:id="textSupplier" />
+            </TablePane.Row>            
+		</TablePane>
+        <Checkbox buttonData="Enable Kindness">
+            <buttonStateListeners>
+                function stateChanged(button, previousState) {
+                    listActs.setEnabled(button.isSelected());
+                }
+            </buttonStateListeners>
+        </Checkbox>
+        <BoxPane styles="{padding:{left:20}}">
+            <Label text="Acts:"/>
+            <ListButton bxml:id="listActs" enabled="false"
+                listData="['Wash dishes', 'Run errands', 'Carry groceries']" selectedIndex="0"/>
+        </BoxPane>
+	</BoxPane>
+</Window>