You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/11/13 21:54:46 UTC

svn commit: r835984 - in /incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer: component_explorer.wtkx layout/grid_pane.wtkx

Author: tvolkert
Date: Fri Nov 13 20:54:45 2009
New Revision: 835984

URL: http://svn.apache.org/viewvc?rev=835984&view=rev
Log:
Added GridPane to component explorer

Added:
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/grid_pane.wtkx
Modified:
    incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx

Modified: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx?rev=835984&r1=835983&r2=835984&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx (original)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/component_explorer.wtkx Fri Nov 13 20:54:45 2009
@@ -147,6 +147,12 @@
                                                                 horizontalScrollBarPolicy="fill"
                                                                 verticalScrollBarPolicy="fill"/>
                                                             <explorer:ComponentNode
+                                                                text="GridPane"
+                                                                icon="@page_white.png"
+                                                                src="@layout/grid_pane.wtkx"
+                                                                horizontalScrollBarPolicy="fill"
+                                                                verticalScrollBarPolicy="fill"/>
+                                                            <explorer:ComponentNode
                                                                 text="Border"
                                                                 icon="@page_white.png"
                                                                 src="@layout/border.wtkx"

Added: incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/grid_pane.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/grid_pane.wtkx?rev=835984&view=auto
==============================================================================
--- incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/grid_pane.wtkx (added)
+++ incubator/pivot/trunk/demos/src/org/apache/pivot/demos/explorer/layout/grid_pane.wtkx Fri Nov 13 20:54:45 2009
@@ -0,0 +1,47 @@
+<?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.
+-->
+
+<GridPane styles="{verticalSpacing:1, showHorizontalGridLines:true,
+    horizontalSpacing:1, showVerticalGridLines:true}"
+    xmlns:wtkx="http://pivot.apache.org/wtkx"
+    xmlns="org.apache.pivot.wtk">
+    <columns>
+        <GridPane.Column/>
+        <GridPane.Column/>
+        <GridPane.Column/>
+    </columns>
+
+    <rows>
+        <GridPane.Row>
+            <GridPane.Filler/>
+            <GridPane.Filler/>
+            <GridPane.Filler/>
+        </GridPane.Row>
+        <GridPane.Row>
+            <GridPane.Filler/>
+            <Label text="Hello World!" styles="{horizontalAlignment:'center',
+                verticalAlignment:'center', wrapText:true}"/>
+            <GridPane.Filler/>
+        </GridPane.Row>
+        <GridPane.Row>
+            <GridPane.Filler/>
+            <GridPane.Filler/>
+            <GridPane.Filler/>
+        </GridPane.Row>
+    </rows>
+</GridPane>