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/04/23 17:16:01 UTC

svn commit: r767941 - /incubator/pivot/trunk/demos/src/pivot/demos/roweditor/demo.wtkx

Author: tvolkert
Date: Thu Apr 23 15:15:58 2009
New Revision: 767941

URL: http://svn.apache.org/viewvc?rev=767941&view=rev
Log:
Touched up layout of row editor demo

Modified:
    incubator/pivot/trunk/demos/src/pivot/demos/roweditor/demo.wtkx

Modified: incubator/pivot/trunk/demos/src/pivot/demos/roweditor/demo.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/roweditor/demo.wtkx?rev=767941&r1=767940&r2=767941&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/roweditor/demo.wtkx (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/roweditor/demo.wtkx Thu Apr 23 15:15:58 2009
@@ -24,7 +24,7 @@
     xmlns:demo="pivot.demos.roweditor"
     xmlns="pivot.wtk">
     <content>
-        <TablePane styles="{verticalSpacing:1, showHorizontalGridLines:true}">
+        <TablePane>
             <columns>
                 <TablePane.Column width="1*"/>
             </columns>
@@ -35,40 +35,44 @@
                     </FlowPane>
                 </TablePane.Row>
                 <TablePane.Row height="1*">
-                    <ScrollPane wtkx:id="scrollPane" horizontalScrollBarPolicy="fillToCapacity" styles="{backgroundColor:4}">
-                        <view>
-                            <TableView wtkx:id="tableView" selectMode="single">
-                                <columns>
-                                    <TableView.Column name="date" width="87" headerData="Date"/>
-                                    <TableView.Column name="type" width="125" headerData="Type"/>
-                                    <TableView.Column name="amount" width="75" headerData="Amount">
-                                        <cellRenderer>
-                                            <content:TableViewNumberCellRenderer numberFormat="¤#,##0.00"/>
-                                        </cellRenderer>
-                                    </TableView.Column>
-                                    <TableView.Column name="description" width="1*" headerData="Description"/>
-                                </columns>
-                                <rowEditor>
-                                    <demo:TableViewRowEditor tableViewScrollPane="$scrollPane"/>
-                                </rowEditor>
-                                <tableData>
-                                    <collections:ArrayList>
-                                        <demo:CustomTableRow date="2009-03-28" type="Travel" amount="1286.90" description="Ticket #145-XX-71903-09"/>
-                                        <demo:CustomTableRow date="2009-03-28" type="Meals" amount="34.12" description="Took client out"/>
-                                        <demo:CustomTableRow date="2009-03-31" type="Meals" amount="27.00" description=" "/>
-                                        <demo:CustomTableRow date="2009-04-01" type="Meals" amount="12.55" description=" "/>
-                                        <demo:CustomTableRow date="2009-04-02" type="Meals" amount="18.86" description=" "/>
-                                        <demo:CustomTableRow date="2009-04-02" type="Parking" amount="30.00" description="Cambridge Center parking"/>
-                                        <demo:CustomTableRow date="2009-04-03" type="Meals" amount="20.72" description=" "/>
-                                        <demo:CustomTableRow date="2009-04-06" type="Hotel" amount="529.90" description="Marriott reservation #DF-9982-BRN"/>
-                                    </collections:ArrayList>
-                                </tableData>
-                            </TableView>
-                        </view>
-                        <columnHeader>
-                            <TableViewHeader wtkx:id="tableViewHeader" tableView="$tableView" styles="{headersPressable:false}"/>
-                        </columnHeader>
-                    </ScrollPane>
+                    <Border styles="{padding:0}">
+                        <content>
+                            <ScrollPane wtkx:id="scrollPane" horizontalScrollBarPolicy="fillToCapacity" styles="{backgroundColor:4}">
+                                <view>
+                                    <TableView wtkx:id="tableView" selectMode="single">
+                                        <columns>
+                                            <TableView.Column name="date" width="87" headerData="Date"/>
+                                            <TableView.Column name="type" width="125" headerData="Type"/>
+                                            <TableView.Column name="amount" width="75" headerData="Amount">
+                                                <cellRenderer>
+                                                    <content:TableViewNumberCellRenderer numberFormat="¤#,##0.00"/>
+                                                </cellRenderer>
+                                            </TableView.Column>
+                                            <TableView.Column name="description" width="1*" headerData="Description"/>
+                                        </columns>
+                                        <rowEditor>
+                                            <demo:TableViewRowEditor tableViewScrollPane="$scrollPane"/>
+                                        </rowEditor>
+                                        <tableData>
+                                            <collections:ArrayList>
+                                                <demo:CustomTableRow date="2009-03-28" type="Travel" amount="1286.90" description="Ticket #145-XX-71903-09"/>
+                                                <demo:CustomTableRow date="2009-03-28" type="Meals" amount="34.12" description="Took client out"/>
+                                                <demo:CustomTableRow date="2009-03-31" type="Meals" amount="27.00" description=" "/>
+                                                <demo:CustomTableRow date="2009-04-01" type="Meals" amount="12.55" description=" "/>
+                                                <demo:CustomTableRow date="2009-04-02" type="Meals" amount="18.86" description=" "/>
+                                                <demo:CustomTableRow date="2009-04-02" type="Parking" amount="30.00" description="Cambridge Center parking"/>
+                                                <demo:CustomTableRow date="2009-04-03" type="Meals" amount="20.72" description=" "/>
+                                                <demo:CustomTableRow date="2009-04-06" type="Hotel" amount="529.90" description="Marriott reservation #DF-9982-BRN"/>
+                                            </collections:ArrayList>
+                                        </tableData>
+                                    </TableView>
+                                </view>
+                                <columnHeader>
+                                    <TableViewHeader wtkx:id="tableViewHeader" tableView="$tableView" styles="{headersPressable:false}"/>
+                                </columnHeader>
+                            </ScrollPane>
+                        </content>
+                    </Border>
                 </TablePane.Row>
             </rows>
         </TablePane>