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 2012/01/19 01:51:42 UTC

svn commit: r1233143 [42/47] - in /pivot/site/trunk/deploy: ./ 2.0.1/ 2.0.1/docs/ 2.0.1/docs/api/ demos/ tutorials/

Modified: pivot/site/trunk/deploy/tutorials/table-panes.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/table-panes.html?rev=1233143&r1=1233142&r2=1233143&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/table-panes.html (original)
+++ pivot/site/trunk/deploy/tutorials/table-panes.html Thu Jan 19 00:51:39 2012
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
@@ -14,291 +14,293 @@ distributed under the License is distrib
 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.
---><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /><title>Table Panes | Apache Pivot</title><link xmlns="" type="text/css" rel="stylesheet" href="/styles/pivot.css"><script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript">
-                var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-                document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-                </script><script type="text/javascript">
-                try {
-                var pageTracker = _gat._getTracker("UA-7977275-3");
-                pageTracker._trackPageview();
-                } catch(err) {}</script></head><body><div xmlns="" id="wrapper"><div id="main"><div id="header"><div class="logo"><a href="/index.html"><img title="Apache Pivot Homepage" alt="Apache Pivot" src="/images/logo.png"></a></div><div class="tagline"><img style="visibility:hidden" alt="Rich Internet Applications in Java" src="/images/tagline.png"></div><ul class="navi"><li><a href="/demos/">Demos</a></li><li><a href="/download.cgi#2.0">Download</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/get-involved.html">Get Involved</a></li><li><a href="/about.html">About</a></li></ul></div><div class="group" id="contentBase"><h1>Table Panes</h1><ul class="naviLeft"><li><a href="/tutorials/sample-application.html">Sample Application</a></li><li><a href="/tutorials/platform-overview.html">Platform Overview</a></li><li><a href="/tutorials/hello-world.html">Hello, World!</a></li><li><a href="/tutorials/hello-bxml.html">Hello, BXML!</a></li><li><a href="/tutorial
 s/component-and-container.html">Component &amp; Container</a></li><li><a href="/tutorials/labels-and-image-views.html">Labels &amp; Image Views</a></li><li><a href="/tutorials/svg-images.html">SVG Images</a></li><li><a href="/tutorials/buttons.html">Buttons</a></li><li><a href="/tutorials/push-buttons.html">Push Buttons</a></li><li><a href="/tutorials/toggle-buttons.html">Toggle Buttons</a></li><li><a href="/tutorials/radio-buttons.html">Radio Buttons</a></li><li><a href="/tutorials/checkboxes.html">Checkboxes</a></li><li><a href="/tutorials/link-buttons.html">Link Buttons</a></li><li><a href="/tutorials/lists.html">Lists</a></li><li><a href="/tutorials/list-buttons.html">List Buttons</a></li><li><a href="/tutorials/repeatable-list-buttons.html">Repeatable List Buttons</a></li><li><a href="/tutorials/text.html">Text</a></li><li><a href="/tutorials/suggestion-popups.html">Suggestion Popups</a></li><li><a href="/tutorials/text-areas.html">Text Areas</a></li><li><a href="/tutor
 ials/separators.html">Separators</a></li><li><a href="/tutorials/layout-containers.html">Layout Containers</a></li><li><a href="/tutorials/flow-panes.html">Flow Panes</a></li><li><a href="/tutorials/box-panes.html">Box Panes</a></li><li><a href="/tutorials/grid-panes.html">Grid Panes</a></li><li><a href="/tutorials/table-panes.html">Table Panes</a></li><li><a href="/tutorials/borders.html">Borders</a></li><li><a href="/tutorials/stack-panes.html">Stack Panes</a></li><li><a href="/tutorials/split-panes.html">Split Panes</a></li><li><a href="/tutorials/forms.html">Forms</a></li><li><a href="/tutorials/panels.html">Panels</a></li><li><a href="/tutorials/navigation-containers.html">Navigation Containers</a></li><li><a href="/tutorials/card-panes.html">Card Panes</a></li><li><a href="/tutorials/tab-panes.html">Tab Panes</a></li><li><a href="/tutorials/accordions.html">Accordions</a></li><li><a href="/tutorials/expanders.html">Expanders</a></li><li><a href="/tutorials/rollups.html
 ">Rollups</a></li><li><a href="/tutorials/viewports.html">Viewports</a></li><li><a href="/tutorials/scroll-panes.html">Scroll Panes</a></li><li><a href="/tutorials/panoramas.html">Panoramas</a></li><li><a href="/tutorials/progress-indicators.html">Progress Indicators</a></li><li><a href="/tutorials/meters.html">Meters</a></li><li><a href="/tutorials/activity-indicators.html">Activity Indicators</a></li><li><a href="/tutorials/bounded-range-components.html">Bounded Range Components</a></li><li><a href="/tutorials/sliders.html">Sliders</a></li><li><a href="/tutorials/scroll-bars.html">Scroll Bars</a></li><li><a href="/tutorials/spinners.html">Spinners</a></li><li><a href="/tutorials/calendars.html">Calendars</a></li><li><a href="/tutorials/menus.html">Menus</a></li><li><a href="/tutorials/context-menus.html">Context Menus</a></li><li><a href="/tutorials/menu-bars.html">Menu Bars</a></li><li><a href="/tutorials/menu-buttons.html">Menu Buttons</a></li><li><a href="/tutorials/col
 or-choosers.html">Color Choosers</a></li><li><a href="/tutorials/table-views.html">Table Views</a></li><li><a href="/tutorials/table-views.json.html">JSON-based TableView</a></li><li><a href="/tutorials/table-views.custom.html">Custom TableView</a></li><li><a href="/tutorials/tree-views.html">Tree Views</a></li><li><a href="/tutorials/file-browsing.html">File Browsing</a></li><li><a href="/tutorials/windows.html">Windows</a></li><li><a href="/tutorials/clipboard.html">Clipboard</a></li><li><a href="/tutorials/drag-and-drop.html">Drag and Drop</a></li><li><a href="/tutorials/effects.html">Effects</a></li><li><a href="/tutorials/effects.transitions.html">Transitions</a></li><li><a href="/tutorials/data-binding.html">Data Binding</a></li><li><a href="/tutorials/property-binding.html">Property Binding</a></li><li><a href="/tutorials/localization.html">Localization</a></li><li><a href="/tutorials/background-tasks.html">Background Tasks</a></li><li><a href="/tutorials/web-queries.
 html">Web Queries</a></li><li><a href="/tutorials/query-servlet.html">QueryServlet</a></li><li><a href="/tutorials/scripting.html">Scripting</a></li><li><a href="/tutorials/summary.html">Summary</a></li><li><a href="/tutorials/stock-tracker.html">The "Stock Tracker" Application</a></li><li><a href="/tutorials/stock-tracker.ui.html">UI Markup Using BXML</a></li><li><a href="/tutorials/stock-tracker.events.html">Event Handling</a></li><li><a href="/tutorials/stock-tracker.web-queries.html">Web Queries</a></li><li><a href="/tutorials/stock-tracker.data-binding.html">Data Binding</a></li><li><a href="/tutorials/stock-tracker.localization.html">Localization</a></li><li><a href="/tutorials/bxml-primer.html">BXML Primer</a></li></ul><div class="content"><style type="text/css">
-            applet {
-                border: 1px solid #999999;
-            }
-        </style><!--NOTE: Syntax highlighting script is LGPL--><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js" type="text/javascript"></script><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js" type="text/javascript"></script><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js" type="text/javascript"></script><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js" type="text/javascript"></script><link href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" rel="stylesheet" type="text/css"><link href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" rel="stylesheet" type="text/css"><script type="text/javascript">
-            SyntaxHighlighter.all();
-        </script><div class="section">
-        <p>
-            Table panes are used to arrange components in a variable 2-dimensional grid, much like
-            an HTML table. Table panes have a "columns" collection that defines the column
-            structure of the table and a "rows" collection that defines both the row structure of
-            the table and the contents of each row.
-        </p>
-
-        <p>
-            Table panes support a number of styles that allow a caller to customize the arrangement
-            of child components:
-        </p>
-
-        <ul>
-            <li>
-                "padding" - the amount of space the table pane reserves around the perimeter of the
-                container.
-            </li>
-            <li>
-                "horizontalSpacing" - the amount of space the table pane inserts between columns.
-            </li>
-            <li>
-                "verticalSpacing" - the amount of space the table pane inserts between rows.
-            </li>
-            <li>
-                "showHorizontalGridLines" - whether horizontal grid lines will be painted in the
-                space between rows. Note that this will be ignored if "verticalSpacing" is zero, as
-                there would be no space in which to paint the grid lines.
-            </li>
-            <li>
-                "showVerticalGridLines" - whether vertical grid lines will be painted in the space
-                between columns. Note that this will be ignored if "horizontalSpacing" is zero, as
-                there would be no space in which to paint the grid lines.
-            </li>
-            <li>
-                "horizontalGridColor" - the color of the horizontal grid lines.
-            </li>
-            <li>
-                "verticalGridColor" - the color of the vertical grid lines.
-            </li>
-            <li>
-                "highlightBackgroundColor" - the background color of rows and columns whose
-                "highlighted" flag is set to <tt>true</tt>.
-            </li>
-        </ul>
-
-        <p>
-            Below is a sample application that demonstrates a basic table pane structure and
-            responds to mouse clicks with information about where the user clicked:
-        </p>
-
-        <script src="http://java.com/js/deployJava.js" type="text/javascript"></script><script type="text/javascript">
-
-            var attributes = {
-                code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
-                width:"560",
-                height:"340"
-            };
-
-
-
-
-
-            var libraries = [];
-            libraries.push("/lib/pivot-core-2.0.jar");
-                libraries.push("/lib/pivot-wtk-2.0.jar");
-                libraries.push("/lib/pivot-wtk-terra-2.0.jar");
-                libraries.push("/lib/pivot-tutorials-2.0.jar");
-
-                    libraries.push("/lib/svgSalamander-tiny.jar");
-
-
-            attributes.archive = libraries.join(",");
-
-
-            var parameters = {
-                codebase_lookup:false,
-                application_class_name:'org.apache.pivot.wtk.ScriptApplication'
-            };
-
-
-            var javaArguments = ["-Dsun.awt.noerasebackground=true",
-                "-Dsun.awt.erasebackgroundonresize=true"];
-
-
-
-            parameters.java_arguments = javaArguments.join(" ");
-
-
-
-                var startupProperties = [];
-
-                    startupProperties.push("src=/org/apache/pivot/tutorials/layout/simple_table_panes.bxml");
-
-                parameters.startup_properties = startupProperties.join("&");
-
-
-            deployJava.runApplet(attributes, parameters, "1.6");
-        </script>
-
-        <p>The BXML source for the application is shown below:</p>
-
-        <pre class="brush:xml">
-
-            &lt;layout:SimpleTablePanes bxml:id="window" title="Table Panes" maximized="true"
-                xmlns:bxml="http://pivot.apache.org/bxml"
-                xmlns:layout="org.apache.pivot.tutorials.layout"
-                xmlns="org.apache.pivot.wtk"&gt;
-                &lt;Border&gt;
-                    &lt;TablePane bxml:id="tablePane" styles="{verticalSpacing:1, showHorizontalGridLines:true,
-                        horizontalSpacing:1, showVerticalGridLines:true}"&gt;
-                        &lt;columns&gt;
-                            &lt;TablePane.Column width="-1"/&gt;
-                            &lt;TablePane.Column width="50"/&gt;
-                            &lt;TablePane.Column width="-1"/&gt;
-                            &lt;TablePane.Column width="1*"/&gt;
-                            &lt;TablePane.Column width="2*"/&gt;
-                        &lt;/columns&gt;
-
-                        &lt;TablePane.Row height="-1"&gt;
-                            &lt;TablePane.Filler/&gt;
-                            &lt;Label text="50" styles="{horizontalAlignment:'center'}"/&gt;
-                            &lt;Label text="-1" styles="{horizontalAlignment:'center'}"/&gt;
-                            &lt;Label text="1*" styles="{horizontalAlignment:'center'}"/&gt;
-                            &lt;Label text="2*" styles="{horizontalAlignment:'center'}"/&gt;
-                        &lt;/TablePane.Row&gt;
-
-                        &lt;TablePane.Row height="50"&gt;
-                            &lt;Label text="50" styles="{verticalAlignment:'center'}"/&gt;
-                        &lt;/TablePane.Row&gt;
-
-                        &lt;TablePane.Row height="-1"&gt;
-                            &lt;Label text="-1" styles="{verticalAlignment:'center'}"/&gt;
-                        &lt;/TablePane.Row&gt;
-
-                        &lt;TablePane.Row height="1*"&gt;
-                            &lt;Label text="1*" styles="{verticalAlignment:'center'}"/&gt;
-                        &lt;/TablePane.Row&gt;
-
-                        &lt;TablePane.Row height="2*"&gt;
-                            &lt;Label text="2*" styles="{verticalAlignment:'center'}"/&gt;
-                        &lt;/TablePane.Row&gt;
-                    &lt;/TablePane&gt;
-                &lt;/Border&gt;
-            &lt;/layout:SimpleTablePanes&gt;
-
-        </pre>
-
-        <p>
-            The Java source is as follows. Most of the code is simply event handling logic that
-            responds to mouse clicks:
-        </p>
-
-        <pre class="brush:java">
-
-            package org.apache.pivot.tutorials.layout;
-
-            import java.net.URL;
-
-            import org.apache.pivot.beans.Bindable;
-            import org.apache.pivot.collections.Map;
-            import org.apache.pivot.util.Resources;
-            import org.apache.pivot.wtk.BoxPane;
-            import org.apache.pivot.wtk.Component;
-            import org.apache.pivot.wtk.ComponentMouseButtonListener;
-            import org.apache.pivot.wtk.Label;
-            import org.apache.pivot.wtk.MessageType;
-            import org.apache.pivot.wtk.Mouse;
-            import org.apache.pivot.wtk.Orientation;
-            import org.apache.pivot.wtk.Prompt;
-            import org.apache.pivot.wtk.TablePane;
-            import org.apache.pivot.wtk.Window;
-
-            public class SimpleTablePanes extends Window implements Bindable {
-                private TablePane tablePane = null;
-
-                @Override
-                public void initialize(Map&lt;String, Object&gt; namespace, URL location, Resources resources) {
-                    tablePane = (TablePane)namespace.get("tablePane");
-
-                    tablePane.getComponentMouseButtonListeners().add(new ComponentMouseButtonListener.Adapter() {
-                        @Override
-                        public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
-                            int rowIndex = tablePane.getRowAt(y);
-                            int columnIndex = tablePane.getColumnAt(x);
-
-                            if (rowIndex &gt;= 0
-                                &amp;&amp; columnIndex &gt;= 0) {
-                                TablePane.Row row = tablePane.getRows().get(rowIndex);
-                                TablePane.Column column = tablePane.getColumns().get(columnIndex);
-
-                                int rowHeight = row.getHeight();
-                                int columnWidth = column.getWidth();
-
-                                String message = "Registered Click At " + rowIndex + "," + columnIndex;
-
-                                Label heightLabel = new Label(String.format("The row's height is %d (%s)",
-                                    rowHeight,
-                                    rowHeight == -1 ? "default" : (row.isRelative() ? "relative" : "absolute")));
-                                Label widthLabel = new Label(String.format("The column's width is %d (%s)",
-                                    columnWidth,
-                                    columnWidth == -1 ? "default" : (column.isRelative() ? "relative" : "absolute")));
-
-                                BoxPane body = new BoxPane(Orientation.VERTICAL);
-                                body.add(heightLabel);
-                                body.add(widthLabel);
-
-                                Prompt.prompt(MessageType.INFO, message, body, SimpleTablePanes.this);
-                            }
-
-                            return false;
-                        }
-                    });
-                }
-            }
-
-        </pre>
-
-        <p>
-            The following is a more involved application that allows the user to interact with the
-            table pane and get a feel for how the different settings affect layout. The
-            application manages the table pane's styles via the controls on the left and responds
-            to right-clicks over the table pane itself. The user can also drag the splitter to see
-            the effect it has on the relative columns in the grid pane.
-        </p>
-
-        <script src="http://java.com/js/deployJava.js" type="text/javascript"></script><script type="text/javascript">
-
-            var attributes = {
-                code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
-                width:"560",
-                height:"340"
-            };
-
-
-
-
-
-            var libraries = [];
-            libraries.push("/lib/pivot-core-2.0.jar");
-                libraries.push("/lib/pivot-wtk-2.0.jar");
-                libraries.push("/lib/pivot-wtk-terra-2.0.jar");
-                libraries.push("/lib/pivot-tutorials-2.0.jar");
-
-                    libraries.push("/lib/svgSalamander-tiny.jar");
-
-
-            attributes.archive = libraries.join(",");
-
-
-            var parameters = {
-                codebase_lookup:false,
-                application_class_name:'org.apache.pivot.wtk.ScriptApplication'
-            };
-
-
-            var javaArguments = ["-Dsun.awt.noerasebackground=true",
-                "-Dsun.awt.erasebackgroundonresize=true"];
-
-
-
-            parameters.java_arguments = javaArguments.join(" ");
-
-
-
-                var startupProperties = [];
-
-                    startupProperties.push("src=/org/apache/pivot/tutorials/layout/table_panes.bxml");
-
-                parameters.startup_properties = startupProperties.join("&");
-
-
-            deployJava.runApplet(attributes, parameters, "1.6");
-        </script>
-    </div><p>Next: <a href="borders.html">Borders</a></p></div></div></div><div class="group" id="footer"><div class="footerLogo">Copyright (c) 1999-2011<br>The Apache Software Foundation.</div><div class="footerLinks"><ul class="footerMenuGr"><li><strong>Demos</strong><ul><li><a href="/demos/kitchen-sink.html" target="_new">"Kitchen Sink"</a></li><li><a href="/demos/component-explorer.html" target="_new">Component Explorer</a></li><li><a href="http://ixnay.biz/pivot-jfree-demos/charts_demo.html" target="_new">Charting</a></li><li><a href="/demos/">More Demos</a></li></ul></li><li><strong>Documentation</strong><ul><li><a href="/getting-started.html">Getting Started</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/faq.html">FAQ</a></li><li><a href="/2.0/docs/api/">Javadoc (2.0)</a></li></ul></li><li><strong>Get Involved</strong><ul><li><a href="/svn.html">SVN Repositories</a></li><li><a href="/lists.html">Mailing Lists</a></li><li><a href="http://issues.apache
 .org/jira/browse/PIVOT">Bug Database</a></li><li><a href="http://cwiki.apache.org/PIVOT/">Wiki</a></li></ul></li><li><strong>Related</strong><ul><li><a href="http://code.google.com/p/pivot-jfree/">JFreeChart Provider</a></li></ul></li><li><strong>About</strong><ul><li><a href="/who-we-are.html">Who We Are</a></li><li><a href="/contact.html">Contact</a></li><li><a href="/news.html">News</a></li><li><a href="/legal.html">Legal/License</a></li></ul></li></ul></div></div></div></body></html>
\ No newline at end of file
+--><html xmlns="http://www.w3.org/1999/xhtml"><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Table Panes | Apache Pivot</title><link href="/styles/pivot.css" rel="stylesheet" type="text/css"><script type="text/javascript">
+                var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+                document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+                </script><script type="text/javascript">
+                try {
+                var pageTracker = _gat._getTracker("UA-7977275-3");
+                pageTracker._trackPageview();
+                } catch(err) {}</script></head><body><div id="wrapper"><div id="main"><div id="header"><div xmlns="" class="logo"><a href="/index.html"><img src="/images/logo.png" alt="Apache Pivot" title="Apache Pivot Homepage"></a></div><div class="tagline"><img src="/images/tagline.png" alt="Rich Internet Applications in Java" style="visibility:hidden"></div><ul class="navi"><li><a href="/demos/">Demos</a></li><li><a href="/download.cgi#2.0.1">Download</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/get-involved.html">Get Involved</a></li><li><a href="/about.html">About</a></li></ul></div><div id="contentBase" class="group"><h1>Table Panes</h1><ul class="naviLeft"><li><a href="/tutorials/sample-application.html">Sample Application</a></li><li><a href="/tutorials/platform-overview.html">Platform Overview</a></li><li><a href="/tutorials/hello-world.html">Hello, World!</a></li><li><a href="/tutorials/hello-bxml.html">Hello, BXML!</a></li><li><a href="/tutori
 als/component-and-container.html">Component &amp; Container</a></li><li><a href="/tutorials/labels-and-image-views.html">Labels &amp; Image Views</a></li><li><a href="/tutorials/svg-images.html">SVG Images</a></li><li><a href="/tutorials/buttons.html">Buttons</a></li><li><a href="/tutorials/push-buttons.html">Push Buttons</a></li><li><a href="/tutorials/toggle-buttons.html">Toggle Buttons</a></li><li><a href="/tutorials/radio-buttons.html">Radio Buttons</a></li><li><a href="/tutorials/checkboxes.html">Checkboxes</a></li><li><a href="/tutorials/link-buttons.html">Link Buttons</a></li><li><a href="/tutorials/lists.html">Lists</a></li><li><a href="/tutorials/list-buttons.html">List Buttons</a></li><li><a href="/tutorials/repeatable-list-buttons.html">Repeatable List Buttons</a></li><li><a href="/tutorials/text.html">Text</a></li><li><a href="/tutorials/suggestion-popups.html">Suggestion Popups</a></li><li><a href="/tutorials/text-areas.html">Text Areas</a></li><li><a href="/tut
 orials/separators.html">Separators</a></li><li><a href="/tutorials/layout-containers.html">Layout Containers</a></li><li><a href="/tutorials/flow-panes.html">Flow Panes</a></li><li><a href="/tutorials/box-panes.html">Box Panes</a></li><li><a href="/tutorials/fill-panes.html">Fill Panes</a></li><li><a href="/tutorials/grid-panes.html">Grid Panes</a></li><li><a href="/tutorials/table-panes.html">Table Panes</a></li><li><a href="/tutorials/borders.html">Borders</a></li><li><a href="/tutorials/stack-panes.html">Stack Panes</a></li><li><a href="/tutorials/split-panes.html">Split Panes</a></li><li><a href="/tutorials/forms.html">Forms</a></li><li><a href="/tutorials/panels.html">Panels</a></li><li><a href="/tutorials/navigation-containers.html">Navigation Containers</a></li><li><a href="/tutorials/card-panes.html">Card Panes</a></li><li><a href="/tutorials/tab-panes.html">Tab Panes</a></li><li><a href="/tutorials/accordions.html">Accordions</a></li><li><a href="/tutorials/expander
 s.html">Expanders</a></li><li><a href="/tutorials/rollups.html">Rollups</a></li><li><a href="/tutorials/viewports.html">Viewports</a></li><li><a href="/tutorials/scroll-panes.html">Scroll Panes</a></li><li><a href="/tutorials/panoramas.html">Panoramas</a></li><li><a href="/tutorials/progress-indicators.html">Progress Indicators</a></li><li><a href="/tutorials/meters.html">Meters</a></li><li><a href="/tutorials/activity-indicators.html">Activity Indicators</a></li><li><a href="/tutorials/bounded-range-components.html">Bounded Range Components</a></li><li><a href="/tutorials/sliders.html">Sliders</a></li><li><a href="/tutorials/scroll-bars.html">Scroll Bars</a></li><li><a href="/tutorials/spinners.html">Spinners</a></li><li><a href="/tutorials/calendars.html">Calendars</a></li><li><a href="/tutorials/menus.html">Menus</a></li><li><a href="/tutorials/context-menus.html">Context Menus</a></li><li><a href="/tutorials/menu-bars.html">Menu Bars</a></li><li><a href="/tutorials/menu-
 buttons.html">Menu Buttons</a></li><li><a href="/tutorials/color-choosers.html">Color Choosers</a></li><li><a href="/tutorials/table-views.html">Table Views</a></li><li><a href="/tutorials/table-views.json.html">JSON-based TableView</a></li><li><a href="/tutorials/table-views.custom.html">Custom TableView</a></li><li><a href="/tutorials/tree-views.html">Tree Views</a></li><li><a href="/tutorials/file-browsing.html">File Browsing</a></li><li><a href="/tutorials/windows.html">Windows</a></li><li><a href="/tutorials/clipboard.html">Clipboard</a></li><li><a href="/tutorials/drag-and-drop.html">Drag and Drop</a></li><li><a href="/tutorials/effects.html">Effects</a></li><li><a href="/tutorials/effects.transitions.html">Transitions</a></li><li><a href="/tutorials/data-binding.html">Data Binding</a></li><li><a href="/tutorials/property-binding.html">Property Binding</a></li><li><a href="/tutorials/localization.html">Localization</a></li><li><a href="/tutorials/background-tasks.html"
 >Background Tasks</a></li><li><a href="/tutorials/web-queries.html">Web Queries</a></li><li><a href="/tutorials/query-servlet.html">QueryServlet</a></li><li><a href="/tutorials/scripting.html">Scripting</a></li><li><a href="/tutorials/summary.html">Summary</a></li><li><a href="/tutorials/stock-tracker.html">The "Stock Tracker" Application</a></li><li><a href="/tutorials/stock-tracker.ui.html">UI Markup Using BXML</a></li><li><a href="/tutorials/stock-tracker.events.html">Event Handling</a></li><li><a href="/tutorials/stock-tracker.web-queries.html">Web Queries</a></li><li><a href="/tutorials/stock-tracker.data-binding.html">Data Binding</a></li><li><a href="/tutorials/stock-tracker.localization.html">Localization</a></li><li><a href="/tutorials/bxml-primer.html">BXML Primer</a></li></ul><div class="content"><style type="text/css">
+            applet {
+                border: 1px solid #999999;
+            }
+        </style><!--NOTE: Syntax highlighting script is LGPL--><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js"></script><link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css"><link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css"><script type="text/javascript">
+            SyntaxHighlighter.all();
+        </script><div class="section">
+        <p>
+            Table panes are used to arrange components in a variable 2-dimensional grid, much like
+            an HTML table. Table panes have a "columns" collection that defines the column
+            structure of the table and a "rows" collection that defines both the row structure of
+            the table and the contents of each row.
+        </p>
+
+        <p>
+            Table panes support a number of styles that allow a caller to customize the arrangement
+            of child components:
+        </p>
+
+        <ul>
+            <li>
+                "padding" - the amount of space the table pane reserves around the perimeter of the
+                container.
+            </li>
+            <li>
+                "horizontalSpacing" - the amount of space the table pane inserts between columns.
+            </li>
+            <li>
+                "verticalSpacing" - the amount of space the table pane inserts between rows.
+            </li>
+            <li>
+                "showHorizontalGridLines" - whether horizontal grid lines will be painted in the
+                space between rows. Note that this will be ignored if "verticalSpacing" is zero, as
+                there would be no space in which to paint the grid lines.
+            </li>
+            <li>
+                "showVerticalGridLines" - whether vertical grid lines will be painted in the space
+                between columns. Note that this will be ignored if "horizontalSpacing" is zero, as
+                there would be no space in which to paint the grid lines.
+            </li>
+            <li>
+                "horizontalGridColor" - the color of the horizontal grid lines.
+            </li>
+            <li>
+                "verticalGridColor" - the color of the vertical grid lines.
+            </li>
+            <li>
+                "highlightBackgroundColor" - the background color of rows and columns whose
+                "highlighted" flag is set to <tt>true</tt>.
+            </li>
+        </ul>
+
+        <p>
+            Below is a sample application that demonstrates a basic table pane structure and
+            responds to mouse clicks with information about where the user clicked:
+        </p>
+
+        <script type="text/javascript" src="http://java.com/js/deployJava.js"></script><script type="text/javascript">
+            
+            var attributes = {
+                code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
+                width:"560",
+                height:"340"
+            };
+
+            
+            
+
+            
+            var libraries = [];
+            libraries.push("/lib/pivot-core-2.0.1.jar");
+                libraries.push("/lib/pivot-wtk-2.0.1.jar");
+                libraries.push("/lib/pivot-wtk-terra-2.0.1.jar");
+                libraries.push("/lib/pivot-tutorials-2.0.1.jar");
+                
+                    libraries.push("/lib/svgSalamander-tiny.jar");
+                
+
+            attributes.archive = libraries.join(",");
+
+            
+            var parameters = {
+                codebase_lookup:false,
+                application_class_name:'org.apache.pivot.wtk.ScriptApplication'
+            };
+
+            
+            var javaArguments = ["-Dsun.awt.noerasebackground=true",
+                "-Dsun.awt.erasebackgroundonresize=true"];
+
+            
+
+            parameters.java_arguments = javaArguments.join(" ");
+
+            
+            
+                var startupProperties = [];
+                
+                    startupProperties.push("src=/org/apache/pivot/tutorials/layout/simple_table_panes.bxml");
+                
+                parameters.startup_properties = startupProperties.join("&");
+            
+
+            deployJava.runApplet(attributes, parameters, "1.6");
+        </script>
+
+        <p>The BXML source for the application is shown below:</p>
+
+        <pre class="brush:xml">
+            
+            &lt;layout:SimpleTablePanes bxml:id="window" title="Table Panes" maximized="true"
+                xmlns:bxml="http://pivot.apache.org/bxml"
+                xmlns:layout="org.apache.pivot.tutorials.layout"
+                xmlns="org.apache.pivot.wtk"&gt;
+                &lt;Border&gt;
+                    &lt;TablePane bxml:id="tablePane" styles="{verticalSpacing:1, showHorizontalGridLines:true,
+                        horizontalSpacing:1, showVerticalGridLines:true}"&gt;
+                        &lt;columns&gt;
+                            &lt;TablePane.Column width="-1"/&gt;
+                            &lt;TablePane.Column width="50"/&gt;
+                            &lt;TablePane.Column width="-1"/&gt;
+                            &lt;TablePane.Column width="1*"/&gt;
+                            &lt;TablePane.Column width="2*"/&gt;
+                        &lt;/columns&gt;
+
+                        &lt;TablePane.Row height="-1"&gt;
+                            &lt;TablePane.Filler/&gt;
+                            &lt;Label text="50" styles="{horizontalAlignment:'center'}"/&gt;
+                            &lt;Label text="-1" styles="{horizontalAlignment:'center'}"/&gt;
+                            &lt;Label text="1*" styles="{horizontalAlignment:'center'}"/&gt;
+                            &lt;Label text="2*" styles="{horizontalAlignment:'center'}"/&gt;
+                        &lt;/TablePane.Row&gt;
+
+                        &lt;TablePane.Row height="50"&gt;
+                            &lt;Label text="50" styles="{verticalAlignment:'center'}"/&gt;
+                        &lt;/TablePane.Row&gt;
+
+                        &lt;TablePane.Row height="-1"&gt;
+                            &lt;Label text="-1" styles="{verticalAlignment:'center'}"/&gt;
+                        &lt;/TablePane.Row&gt;
+
+                        &lt;TablePane.Row height="1*"&gt;
+                            &lt;Label text="1*" styles="{verticalAlignment:'center'}"/&gt;
+                        &lt;/TablePane.Row&gt;
+
+                        &lt;TablePane.Row height="2*"&gt;
+                            &lt;Label text="2*" styles="{verticalAlignment:'center'}"/&gt;
+                        &lt;/TablePane.Row&gt;
+                    &lt;/TablePane&gt;
+                &lt;/Border&gt;
+            &lt;/layout:SimpleTablePanes&gt;
+            
+        </pre>
+
+        <p>
+            The Java source is as follows. Most of the code is simply event handling logic that
+            responds to mouse clicks:
+        </p>
+
+        <pre class="brush:java">
+            
+            package org.apache.pivot.tutorials.layout;
+
+            import java.net.URL;
+
+            import org.apache.pivot.beans.Bindable;
+            import org.apache.pivot.collections.Map;
+            import org.apache.pivot.util.Resources;
+            import org.apache.pivot.wtk.BoxPane;
+            import org.apache.pivot.wtk.Component;
+            import org.apache.pivot.wtk.ComponentMouseButtonListener;
+            import org.apache.pivot.wtk.Label;
+            import org.apache.pivot.wtk.MessageType;
+            import org.apache.pivot.wtk.Mouse;
+            import org.apache.pivot.wtk.Orientation;
+            import org.apache.pivot.wtk.Prompt;
+            import org.apache.pivot.wtk.TablePane;
+            import org.apache.pivot.wtk.Window;
+
+            public class SimpleTablePanes extends Window implements Bindable {
+                private TablePane tablePane = null;
+
+                @Override
+                public void initialize(Map&lt;String, Object&gt; namespace, URL location, Resources resources) {
+                    tablePane = (TablePane)namespace.get("tablePane");
+
+                    tablePane.getComponentMouseButtonListeners().add(new ComponentMouseButtonListener.Adapter() {
+                        @Override
+                        public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
+                            int rowIndex = tablePane.getRowAt(y);
+                            int columnIndex = tablePane.getColumnAt(x);
+
+                            if (rowIndex &gt;= 0
+                                &amp;&amp; columnIndex &gt;= 0) {
+                                TablePane.Row row = tablePane.getRows().get(rowIndex);
+                                TablePane.Column column = tablePane.getColumns().get(columnIndex);
+
+                                int rowHeight = row.getHeight();
+                                int columnWidth = column.getWidth();
+
+                                String message = "Registered Click At " + rowIndex + "," + columnIndex;
+
+                                Label heightLabel = new Label(String.format("The row's height is %d (%s)",
+                                    rowHeight,
+                                    rowHeight == -1 ? "default" : (row.isRelative() ? "relative" : "absolute")));
+                                Label widthLabel = new Label(String.format("The column's width is %d (%s)",
+                                    columnWidth,
+                                    columnWidth == -1 ? "default" : (column.isRelative() ? "relative" : "absolute")));
+
+                                BoxPane body = new BoxPane(Orientation.VERTICAL);
+                                body.add(heightLabel);
+                                body.add(widthLabel);
+
+                                Prompt.prompt(MessageType.INFO, message, body, SimpleTablePanes.this);
+                            }
+
+                            return false;
+                        }
+                    });
+                }
+            }
+            
+        </pre>
+
+        <p>
+            The following is a more involved application that allows the user to interact with the
+            table pane and get a feel for how the different settings affect layout. The
+            application manages the table pane's styles via the controls on the left and responds
+            to right-clicks over the table pane itself. The user can also drag the splitter to see
+            the effect it has on the relative columns in the grid pane.
+        </p>
+
+        <script type="text/javascript" src="http://java.com/js/deployJava.js"></script><script type="text/javascript">
+            
+            var attributes = {
+                code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
+                width:"560",
+                height:"340"
+            };
+
+            
+            
+
+            
+            var libraries = [];
+            libraries.push("/lib/pivot-core-2.0.1.jar");
+                libraries.push("/lib/pivot-wtk-2.0.1.jar");
+                libraries.push("/lib/pivot-wtk-terra-2.0.1.jar");
+                libraries.push("/lib/pivot-tutorials-2.0.1.jar");
+                
+                    libraries.push("/lib/svgSalamander-tiny.jar");
+                
+
+            attributes.archive = libraries.join(",");
+
+            
+            var parameters = {
+                codebase_lookup:false,
+                application_class_name:'org.apache.pivot.wtk.ScriptApplication'
+            };
+
+            
+            var javaArguments = ["-Dsun.awt.noerasebackground=true",
+                "-Dsun.awt.erasebackgroundonresize=true"];
+
+            
+
+            parameters.java_arguments = javaArguments.join(" ");
+
+            
+            
+                var startupProperties = [];
+                
+                    startupProperties.push("src=/org/apache/pivot/tutorials/layout/table_panes.bxml");
+                
+                parameters.startup_properties = startupProperties.join("&");
+            
+
+            deployJava.runApplet(attributes, parameters, "1.6");
+        </script>
+    </div><p>Next: <a href="borders.html">Borders</a></p></div></div></div><div id="footer" class="group"><div class="footerLogo">Copyright (c) 1999-2012<br>The Apache Software Foundation.</div><div class="footerLinks"><ul class="footerMenuGr"><li><strong>Demos</strong><ul><li><a href="/demos/kitchen-sink.html" target="_new">"Kitchen Sink"</a></li><li><a href="/demos/component-explorer.html" target="_new">Component Explorer</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/Other+Demos" target="_new">Charting</a></li><li><a href="/demos/">More Demos</a></li></ul></li><li><strong>Documentation</strong><ul><li><a href="/getting-started.html">Getting Started</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/faq.html">FAQ</a></li><li><a href="/2.0.1/docs/api/">Javadoc (2.0.1)</a></li></ul></li><li><strong>Get Involved</strong><ul><li><a href="/svn.html">SVN Repositories</a></li><li><a href="/lists.html">Mailing Lists</a></li><li><a href="http://
 issues.apache.org/jira/browse/PIVOT">Bug Database</a></li><li><a href="http://cwiki.apache.org/PIVOT/">Wiki</a></li></ul></li><li><strong>Related</strong><ul><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-jfree/">JFreeChart Provider</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-common/">Pivot-Common</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-contrib/">Pivot-Contrib</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-multilang/">Pivot-Multilang</a></li></ul></li><li><strong>About</strong><ul><li><a href="/who-we-are.html">Who We Are</a></li><li><a href="/contact.html">Contact</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/News">News</a></li><li><a href="/legal.html">Legal/License</a></li></ul></li></ul></div><div class="footerLinks">
+                	Apache Pivot is a trademark of the Apache Software Foundation
+                </div></div></div></body></html>
\ No newline at end of file

Modified: pivot/site/trunk/deploy/tutorials/table-views.custom.html
URL: http://svn.apache.org/viewvc/pivot/site/trunk/deploy/tutorials/table-views.custom.html?rev=1233143&r1=1233142&r2=1233143&view=diff
==============================================================================
--- pivot/site/trunk/deploy/tutorials/table-views.custom.html (original)
+++ pivot/site/trunk/deploy/tutorials/table-views.custom.html Thu Jan 19 00:51:39 2012
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
@@ -14,215 +14,217 @@ distributed under the License is distrib
 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.
---><html xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /><title>Custom TableView | Apache Pivot</title><link xmlns="" type="text/css" rel="stylesheet" href="/styles/pivot.css"><script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript">
-                var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-                document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-                </script><script type="text/javascript">
-                try {
-                var pageTracker = _gat._getTracker("UA-7977275-3");
-                pageTracker._trackPageview();
-                } catch(err) {}</script></head><body><div xmlns="" id="wrapper"><div id="main"><div id="header"><div class="logo"><a href="/index.html"><img title="Apache Pivot Homepage" alt="Apache Pivot" src="/images/logo.png"></a></div><div class="tagline"><img style="visibility:hidden" alt="Rich Internet Applications in Java" src="/images/tagline.png"></div><ul class="navi"><li><a href="/demos/">Demos</a></li><li><a href="/download.cgi#2.0">Download</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/get-involved.html">Get Involved</a></li><li><a href="/about.html">About</a></li></ul></div><div class="group" id="contentBase"><h1>Custom TableView</h1><ul class="naviLeft"><li><a href="/tutorials/sample-application.html">Sample Application</a></li><li><a href="/tutorials/platform-overview.html">Platform Overview</a></li><li><a href="/tutorials/hello-world.html">Hello, World!</a></li><li><a href="/tutorials/hello-bxml.html">Hello, BXML!</a></li><li><a href="/tut
 orials/component-and-container.html">Component &amp; Container</a></li><li><a href="/tutorials/labels-and-image-views.html">Labels &amp; Image Views</a></li><li><a href="/tutorials/svg-images.html">SVG Images</a></li><li><a href="/tutorials/buttons.html">Buttons</a></li><li><a href="/tutorials/push-buttons.html">Push Buttons</a></li><li><a href="/tutorials/toggle-buttons.html">Toggle Buttons</a></li><li><a href="/tutorials/radio-buttons.html">Radio Buttons</a></li><li><a href="/tutorials/checkboxes.html">Checkboxes</a></li><li><a href="/tutorials/link-buttons.html">Link Buttons</a></li><li><a href="/tutorials/lists.html">Lists</a></li><li><a href="/tutorials/list-buttons.html">List Buttons</a></li><li><a href="/tutorials/repeatable-list-buttons.html">Repeatable List Buttons</a></li><li><a href="/tutorials/text.html">Text</a></li><li><a href="/tutorials/suggestion-popups.html">Suggestion Popups</a></li><li><a href="/tutorials/text-areas.html">Text Areas</a></li><li><a href="/
 tutorials/separators.html">Separators</a></li><li><a href="/tutorials/layout-containers.html">Layout Containers</a></li><li><a href="/tutorials/flow-panes.html">Flow Panes</a></li><li><a href="/tutorials/box-panes.html">Box Panes</a></li><li><a href="/tutorials/grid-panes.html">Grid Panes</a></li><li><a href="/tutorials/table-panes.html">Table Panes</a></li><li><a href="/tutorials/borders.html">Borders</a></li><li><a href="/tutorials/stack-panes.html">Stack Panes</a></li><li><a href="/tutorials/split-panes.html">Split Panes</a></li><li><a href="/tutorials/forms.html">Forms</a></li><li><a href="/tutorials/panels.html">Panels</a></li><li><a href="/tutorials/navigation-containers.html">Navigation Containers</a></li><li><a href="/tutorials/card-panes.html">Card Panes</a></li><li><a href="/tutorials/tab-panes.html">Tab Panes</a></li><li><a href="/tutorials/accordions.html">Accordions</a></li><li><a href="/tutorials/expanders.html">Expanders</a></li><li><a href="/tutorials/rollups
 .html">Rollups</a></li><li><a href="/tutorials/viewports.html">Viewports</a></li><li><a href="/tutorials/scroll-panes.html">Scroll Panes</a></li><li><a href="/tutorials/panoramas.html">Panoramas</a></li><li><a href="/tutorials/progress-indicators.html">Progress Indicators</a></li><li><a href="/tutorials/meters.html">Meters</a></li><li><a href="/tutorials/activity-indicators.html">Activity Indicators</a></li><li><a href="/tutorials/bounded-range-components.html">Bounded Range Components</a></li><li><a href="/tutorials/sliders.html">Sliders</a></li><li><a href="/tutorials/scroll-bars.html">Scroll Bars</a></li><li><a href="/tutorials/spinners.html">Spinners</a></li><li><a href="/tutorials/calendars.html">Calendars</a></li><li><a href="/tutorials/menus.html">Menus</a></li><li><a href="/tutorials/context-menus.html">Context Menus</a></li><li><a href="/tutorials/menu-bars.html">Menu Bars</a></li><li><a href="/tutorials/menu-buttons.html">Menu Buttons</a></li><li><a href="/tutorial
 s/color-choosers.html">Color Choosers</a></li><li><a href="/tutorials/table-views.html">Table Views</a></li><li><a href="/tutorials/table-views.json.html">JSON-based TableView</a></li><li><a href="/tutorials/table-views.custom.html">Custom TableView</a></li><li><a href="/tutorials/tree-views.html">Tree Views</a></li><li><a href="/tutorials/file-browsing.html">File Browsing</a></li><li><a href="/tutorials/windows.html">Windows</a></li><li><a href="/tutorials/clipboard.html">Clipboard</a></li><li><a href="/tutorials/drag-and-drop.html">Drag and Drop</a></li><li><a href="/tutorials/effects.html">Effects</a></li><li><a href="/tutorials/effects.transitions.html">Transitions</a></li><li><a href="/tutorials/data-binding.html">Data Binding</a></li><li><a href="/tutorials/property-binding.html">Property Binding</a></li><li><a href="/tutorials/localization.html">Localization</a></li><li><a href="/tutorials/background-tasks.html">Background Tasks</a></li><li><a href="/tutorials/web-que
 ries.html">Web Queries</a></li><li><a href="/tutorials/query-servlet.html">QueryServlet</a></li><li><a href="/tutorials/scripting.html">Scripting</a></li><li><a href="/tutorials/summary.html">Summary</a></li><li><a href="/tutorials/stock-tracker.html">The "Stock Tracker" Application</a></li><li><a href="/tutorials/stock-tracker.ui.html">UI Markup Using BXML</a></li><li><a href="/tutorials/stock-tracker.events.html">Event Handling</a></li><li><a href="/tutorials/stock-tracker.web-queries.html">Web Queries</a></li><li><a href="/tutorials/stock-tracker.data-binding.html">Data Binding</a></li><li><a href="/tutorials/stock-tracker.localization.html">Localization</a></li><li><a href="/tutorials/bxml-primer.html">BXML Primer</a></li></ul><div class="content"><style type="text/css">
-            applet {
-                border: 1px solid #999999;
-            }
-        </style><!--NOTE: Syntax highlighting script is LGPL--><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js" type="text/javascript"></script><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js" type="text/javascript"></script><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js" type="text/javascript"></script><script src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js" type="text/javascript"></script><link href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" rel="stylesheet" type="text/css"><link href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" rel="stylesheet" type="text/css"><script type="text/javascript">
-            SyntaxHighlighter.all();
-        </script><div class="section">
-        <p>
-            This example continues the theme of the previous two examples and presents the final
-            standings of the top ten medal-winning countries in the 2008 Summer Olympics in a
-            <tt>TableView</tt> component. However, rather than representing the data using simple
-            string-based hash maps or deserialized JSON values, this example uses a custom Java bean
-            component to represent a table row. In addition to the "nation", "gold", "silver",
-            "bronze", and "total" properties used in the previous examples, it also defines a
-            "flag" property of type <tt>org.apache.pivot.wtk.media.Image</tt>, which is shown in
-            the first column:
-        </p>
-
-        <script src="http://java.com/js/deployJava.js" type="text/javascript"></script><script type="text/javascript">
-
-            var attributes = {
-                code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
-                width:"480",
-                height:"240"
-            };
-
-
-
-
-
-            var libraries = [];
-            libraries.push("/lib/pivot-core-2.0.jar");
-                libraries.push("/lib/pivot-wtk-2.0.jar");
-                libraries.push("/lib/pivot-wtk-terra-2.0.jar");
-                libraries.push("/lib/pivot-tutorials-2.0.jar");
-
-                    libraries.push("/lib/svgSalamander-tiny.jar");
-
-
-            attributes.archive = libraries.join(",");
-
-
-            var parameters = {
-                codebase_lookup:false,
-                application_class_name:'org.apache.pivot.wtk.ScriptApplication'
-            };
-
-
-            var javaArguments = ["-Dsun.awt.noerasebackground=true",
-                "-Dsun.awt.erasebackgroundonresize=true"];
-
-
-
-            parameters.java_arguments = javaArguments.join(" ");
-
-
-
-                var startupProperties = [];
-
-                    startupProperties.push("src=/org/apache/pivot/tutorials/tableviews/custom_table_view.bxml");
-
-                parameters.startup_properties = startupProperties.join("&");
-
-
-            deployJava.runApplet(attributes, parameters, "1.6");
-        </script>
-
-        <p>The Java source for the bean class is as follows:</p>
-
-        <pre class="brush:java">
-
-            package org.apache.pivot.tutorials.tableviews;
-
-            import java.net.URL;
-
-            import org.apache.pivot.util.concurrent.TaskExecutionException;
-            import org.apache.pivot.wtk.media.Image;
-
-            public class OlympicStanding {
-                private Image flag = null;
-                private String nation = null;
-                private int gold = 0;
-                private int silver = 0;
-                private int bronze = 0;
-
-                public Image getFlag() {
-                    return flag;
-                }
-
-                public void setFlag(Image flag) {
-                    this.flag = flag;
-                }
-
-                public void setFlag(URL flag) {
-                    try {
-                        setFlag(Image.load(flag));
-                    } catch (TaskExecutionException exception) {
-                        throw new IllegalArgumentException(exception);
-                    }
-                }
-
-                public String getNation() {
-                    return nation;
-                }
-
-                public void setNation(String nation) {
-                    this.nation = nation;
-                }
-
-                public int getGold() {
-                    return gold;
-                }
-
-                public void setGold(int gold) {
-                    this.gold = gold;
-                }
-
-                public int getSilver() {
-                    return silver;
-                }
-
-                public void setSilver(int silver) {
-                    this.silver = silver;
-                }
-
-                public int getBronze() {
-                    return bronze;
-                }
-
-                public void setBronze(int bronze) {
-                    this.bronze = bronze;
-                }
-
-                public int getTotal() {
-                    return (gold + silver + bronze);
-                }
-            }
-
-        </pre>
-
-        <p>
-            The BXML source is as follows. Note that, in this example, the value for "total" no
-            longer needs to be hard-coded, because it is calculated by the bean class:
-        </p>
-
-        <pre class="brush:xml">
-
-            &lt;Window title="Table Views" maximized="true"
-                xmlns:bxml="http://pivot.apache.org/bxml"
-                xmlns:content="org.apache.pivot.wtk.content"
-                xmlns:tableviews="org.apache.pivot.tutorials.tableviews"
-                xmlns="org.apache.pivot.wtk"&gt;
-                &lt;Border&gt;
-                    &lt;ScrollPane horizontalScrollBarPolicy="fill"&gt;
-                        &lt;TableView bxml:id="tableView"&gt;
-                            &lt;columns&gt;
-                                &lt;TableView.Column name="flag" width="20"&gt;
-                                    &lt;cellRenderer&gt;
-                                        &lt;content:TableViewImageCellRenderer/&gt;
-                                    &lt;/cellRenderer&gt;
-                                &lt;/TableView.Column&gt;
-                                &lt;TableView.Column name="nation" width="3*" headerData="Nation"/&gt;
-                                &lt;TableView.Column name="gold" width="1*" headerData="Gold"/&gt;
-                                &lt;TableView.Column name="silver" width="1*" headerData="Silver"/&gt;
-                                &lt;TableView.Column name="bronze" width="1*" headerData="Bronze"/&gt;
-                                &lt;TableView.Column name="total" width="1*" headerData="Total"/&gt;
-                            &lt;/columns&gt;
-
-                            &lt;tableViewSortListeners&gt;
-                                function sortChanged(tableView) {
-                                    var tableData = tableView.getTableData();
-                                    tableData.setComparator(new org.apache.pivot.wtk.content.TableViewRowComparator(tableView));
-                                }
-                            &lt;/tableViewSortListeners&gt;
-
-                            &lt;!-- Source: http://en.wikipedia.org/wiki/2008_Summer_Olympics_medal_table --&gt;
-                            &lt;tableviews:OlympicStanding nation="China" gold="51" silver="21" bronze="28" flag="@cn.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="United States" gold="36" silver="38" bronze="36" flag="@us.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="Russia" gold="23" silver="21" bronze="28" flag="@ru.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="Great Britain" gold="19" silver="13" bronze="15" flag="@gb.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="Germany" gold="16" silver="10" bronze="15" flag="@de.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="Australia" gold="14" silver="15" bronze="17" flag="@au.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="South Korea" gold="13" silver="10" bronze="8" flag="@kr.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="Japan" gold="9" silver="6" bronze="11" flag="@jp.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="Italy" gold="8" silver="10" bronze="10" flag="@it.png"/&gt;
-                            &lt;tableviews:OlympicStanding nation="France" gold="7" silver="16" bronze="17" flag="@fr.png"/&gt;
-                        &lt;/TableView&gt;
-
-                        &lt;columnHeader&gt;
-                            &lt;TableViewHeader tableView="$tableView" sortMode="single_column"/&gt;
-                        &lt;/columnHeader&gt;
-                    &lt;/ScrollPane&gt;
-                &lt;/Border&gt;
-            &lt;/Window&gt;
-
-        </pre>
-
-        <p>
-            Like the previous example, this one also supports sorting, using the same logic as the
-            JSON version. The only other major difference between this example and the previous is
-            the use of relative-width columns in the table view. The "n*" notation used here is
-            identical to that used by the <a href="table-panes.html">TablePane</a> container
-            discussed earlier.
-        </p>
-    </div><p>Next: <a href="tree-views.html">Tree Views</a></p></div></div></div><div class="group" id="footer"><div class="footerLogo">Copyright (c) 1999-2011<br>The Apache Software Foundation.</div><div class="footerLinks"><ul class="footerMenuGr"><li><strong>Demos</strong><ul><li><a href="/demos/kitchen-sink.html" target="_new">"Kitchen Sink"</a></li><li><a href="/demos/component-explorer.html" target="_new">Component Explorer</a></li><li><a href="http://ixnay.biz/pivot-jfree-demos/charts_demo.html" target="_new">Charting</a></li><li><a href="/demos/">More Demos</a></li></ul></li><li><strong>Documentation</strong><ul><li><a href="/getting-started.html">Getting Started</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/faq.html">FAQ</a></li><li><a href="/2.0/docs/api/">Javadoc (2.0)</a></li></ul></li><li><strong>Get Involved</strong><ul><li><a href="/svn.html">SVN Repositories</a></li><li><a href="/lists.html">Mailing Lists</a></li><li><a href="http://issues.
 apache.org/jira/browse/PIVOT">Bug Database</a></li><li><a href="http://cwiki.apache.org/PIVOT/">Wiki</a></li></ul></li><li><strong>Related</strong><ul><li><a href="http://code.google.com/p/pivot-jfree/">JFreeChart Provider</a></li></ul></li><li><strong>About</strong><ul><li><a href="/who-we-are.html">Who We Are</a></li><li><a href="/contact.html">Contact</a></li><li><a href="/news.html">News</a></li><li><a href="/legal.html">Legal/License</a></li></ul></li></ul></div></div></div></body></html>
\ No newline at end of file
+--><html xmlns="http://www.w3.org/1999/xhtml"><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Custom TableView | Apache Pivot</title><link href="/styles/pivot.css" rel="stylesheet" type="text/css"><script type="text/javascript">
+                var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+                document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+                </script><script type="text/javascript">
+                try {
+                var pageTracker = _gat._getTracker("UA-7977275-3");
+                pageTracker._trackPageview();
+                } catch(err) {}</script></head><body><div id="wrapper"><div id="main"><div id="header"><div xmlns="" class="logo"><a href="/index.html"><img src="/images/logo.png" alt="Apache Pivot" title="Apache Pivot Homepage"></a></div><div class="tagline"><img src="/images/tagline.png" alt="Rich Internet Applications in Java" style="visibility:hidden"></div><ul class="navi"><li><a href="/demos/">Demos</a></li><li><a href="/download.cgi#2.0.1">Download</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/get-involved.html">Get Involved</a></li><li><a href="/about.html">About</a></li></ul></div><div id="contentBase" class="group"><h1>Custom TableView</h1><ul class="naviLeft"><li><a href="/tutorials/sample-application.html">Sample Application</a></li><li><a href="/tutorials/platform-overview.html">Platform Overview</a></li><li><a href="/tutorials/hello-world.html">Hello, World!</a></li><li><a href="/tutorials/hello-bxml.html">Hello, BXML!</a></li><li><a href="/t
 utorials/component-and-container.html">Component &amp; Container</a></li><li><a href="/tutorials/labels-and-image-views.html">Labels &amp; Image Views</a></li><li><a href="/tutorials/svg-images.html">SVG Images</a></li><li><a href="/tutorials/buttons.html">Buttons</a></li><li><a href="/tutorials/push-buttons.html">Push Buttons</a></li><li><a href="/tutorials/toggle-buttons.html">Toggle Buttons</a></li><li><a href="/tutorials/radio-buttons.html">Radio Buttons</a></li><li><a href="/tutorials/checkboxes.html">Checkboxes</a></li><li><a href="/tutorials/link-buttons.html">Link Buttons</a></li><li><a href="/tutorials/lists.html">Lists</a></li><li><a href="/tutorials/list-buttons.html">List Buttons</a></li><li><a href="/tutorials/repeatable-list-buttons.html">Repeatable List Buttons</a></li><li><a href="/tutorials/text.html">Text</a></li><li><a href="/tutorials/suggestion-popups.html">Suggestion Popups</a></li><li><a href="/tutorials/text-areas.html">Text Areas</a></li><li><a href=
 "/tutorials/separators.html">Separators</a></li><li><a href="/tutorials/layout-containers.html">Layout Containers</a></li><li><a href="/tutorials/flow-panes.html">Flow Panes</a></li><li><a href="/tutorials/box-panes.html">Box Panes</a></li><li><a href="/tutorials/fill-panes.html">Fill Panes</a></li><li><a href="/tutorials/grid-panes.html">Grid Panes</a></li><li><a href="/tutorials/table-panes.html">Table Panes</a></li><li><a href="/tutorials/borders.html">Borders</a></li><li><a href="/tutorials/stack-panes.html">Stack Panes</a></li><li><a href="/tutorials/split-panes.html">Split Panes</a></li><li><a href="/tutorials/forms.html">Forms</a></li><li><a href="/tutorials/panels.html">Panels</a></li><li><a href="/tutorials/navigation-containers.html">Navigation Containers</a></li><li><a href="/tutorials/card-panes.html">Card Panes</a></li><li><a href="/tutorials/tab-panes.html">Tab Panes</a></li><li><a href="/tutorials/accordions.html">Accordions</a></li><li><a href="/tutorials/exp
 anders.html">Expanders</a></li><li><a href="/tutorials/rollups.html">Rollups</a></li><li><a href="/tutorials/viewports.html">Viewports</a></li><li><a href="/tutorials/scroll-panes.html">Scroll Panes</a></li><li><a href="/tutorials/panoramas.html">Panoramas</a></li><li><a href="/tutorials/progress-indicators.html">Progress Indicators</a></li><li><a href="/tutorials/meters.html">Meters</a></li><li><a href="/tutorials/activity-indicators.html">Activity Indicators</a></li><li><a href="/tutorials/bounded-range-components.html">Bounded Range Components</a></li><li><a href="/tutorials/sliders.html">Sliders</a></li><li><a href="/tutorials/scroll-bars.html">Scroll Bars</a></li><li><a href="/tutorials/spinners.html">Spinners</a></li><li><a href="/tutorials/calendars.html">Calendars</a></li><li><a href="/tutorials/menus.html">Menus</a></li><li><a href="/tutorials/context-menus.html">Context Menus</a></li><li><a href="/tutorials/menu-bars.html">Menu Bars</a></li><li><a href="/tutorials/
 menu-buttons.html">Menu Buttons</a></li><li><a href="/tutorials/color-choosers.html">Color Choosers</a></li><li><a href="/tutorials/table-views.html">Table Views</a></li><li><a href="/tutorials/table-views.json.html">JSON-based TableView</a></li><li><a href="/tutorials/table-views.custom.html">Custom TableView</a></li><li><a href="/tutorials/tree-views.html">Tree Views</a></li><li><a href="/tutorials/file-browsing.html">File Browsing</a></li><li><a href="/tutorials/windows.html">Windows</a></li><li><a href="/tutorials/clipboard.html">Clipboard</a></li><li><a href="/tutorials/drag-and-drop.html">Drag and Drop</a></li><li><a href="/tutorials/effects.html">Effects</a></li><li><a href="/tutorials/effects.transitions.html">Transitions</a></li><li><a href="/tutorials/data-binding.html">Data Binding</a></li><li><a href="/tutorials/property-binding.html">Property Binding</a></li><li><a href="/tutorials/localization.html">Localization</a></li><li><a href="/tutorials/background-tasks.
 html">Background Tasks</a></li><li><a href="/tutorials/web-queries.html">Web Queries</a></li><li><a href="/tutorials/query-servlet.html">QueryServlet</a></li><li><a href="/tutorials/scripting.html">Scripting</a></li><li><a href="/tutorials/summary.html">Summary</a></li><li><a href="/tutorials/stock-tracker.html">The "Stock Tracker" Application</a></li><li><a href="/tutorials/stock-tracker.ui.html">UI Markup Using BXML</a></li><li><a href="/tutorials/stock-tracker.events.html">Event Handling</a></li><li><a href="/tutorials/stock-tracker.web-queries.html">Web Queries</a></li><li><a href="/tutorials/stock-tracker.data-binding.html">Data Binding</a></li><li><a href="/tutorials/stock-tracker.localization.html">Localization</a></li><li><a href="/tutorials/bxml-primer.html">BXML Primer</a></li></ul><div class="content"><style type="text/css">
+            applet {
+                border: 1px solid #999999;
+            }
+        </style><!--NOTE: Syntax highlighting script is LGPL--><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJava.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js"></script><script type="text/javascript" src="http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js"></script><link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shCore.css"><link type="text/css" rel="stylesheet" href="http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css"><script type="text/javascript">
+            SyntaxHighlighter.all();
+        </script><div class="section">
+        <p>
+            This example continues the theme of the previous two examples and presents the final
+            standings of the top ten medal-winning countries in the 2008 Summer Olympics in a
+            <tt>TableView</tt> component. However, rather than representing the data using simple
+            string-based hash maps or deserialized JSON values, this example uses a custom Java bean
+            component to represent a table row. In addition to the "nation", "gold", "silver",
+            "bronze", and "total" properties used in the previous examples, it also defines a
+            "flag" property of type <tt>org.apache.pivot.wtk.media.Image</tt>, which is shown in
+            the first column:
+        </p>
+
+        <script type="text/javascript" src="http://java.com/js/deployJava.js"></script><script type="text/javascript">
+            
+            var attributes = {
+                code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
+                width:"480",
+                height:"240"
+            };
+
+            
+            
+
+            
+            var libraries = [];
+            libraries.push("/lib/pivot-core-2.0.1.jar");
+                libraries.push("/lib/pivot-wtk-2.0.1.jar");
+                libraries.push("/lib/pivot-wtk-terra-2.0.1.jar");
+                libraries.push("/lib/pivot-tutorials-2.0.1.jar");
+                
+                    libraries.push("/lib/svgSalamander-tiny.jar");
+                
+
+            attributes.archive = libraries.join(",");
+
+            
+            var parameters = {
+                codebase_lookup:false,
+                application_class_name:'org.apache.pivot.wtk.ScriptApplication'
+            };
+
+            
+            var javaArguments = ["-Dsun.awt.noerasebackground=true",
+                "-Dsun.awt.erasebackgroundonresize=true"];
+
+            
+
+            parameters.java_arguments = javaArguments.join(" ");
+
+            
+            
+                var startupProperties = [];
+                
+                    startupProperties.push("src=/org/apache/pivot/tutorials/tableviews/custom_table_view.bxml");
+                
+                parameters.startup_properties = startupProperties.join("&");
+            
+
+            deployJava.runApplet(attributes, parameters, "1.6");
+        </script>
+
+        <p>The Java source for the bean class is as follows:</p>
+
+        <pre class="brush:java">
+            
+            package org.apache.pivot.tutorials.tableviews;
+
+            import java.net.URL;
+
+            import org.apache.pivot.util.concurrent.TaskExecutionException;
+            import org.apache.pivot.wtk.media.Image;
+
+            public class OlympicStanding {
+                private Image flag = null;
+                private String nation = null;
+                private int gold = 0;
+                private int silver = 0;
+                private int bronze = 0;
+
+                public Image getFlag() {
+                    return flag;
+                }
+
+                public void setFlag(Image flag) {
+                    this.flag = flag;
+                }
+
+                public void setFlag(URL flag) {
+                    try {
+                        setFlag(Image.load(flag));
+                    } catch (TaskExecutionException exception) {
+                        throw new IllegalArgumentException(exception);
+                    }
+                }
+
+                public String getNation() {
+                    return nation;
+                }
+
+                public void setNation(String nation) {
+                    this.nation = nation;
+                }
+
+                public int getGold() {
+                    return gold;
+                }
+
+                public void setGold(int gold) {
+                    this.gold = gold;
+                }
+
+                public int getSilver() {
+                    return silver;
+                }
+
+                public void setSilver(int silver) {
+                    this.silver = silver;
+                }
+
+                public int getBronze() {
+                    return bronze;
+                }
+
+                public void setBronze(int bronze) {
+                    this.bronze = bronze;
+                }
+
+                public int getTotal() {
+                    return (gold + silver + bronze);
+                }
+            }
+            
+        </pre>
+
+        <p>
+            The BXML source is as follows. Note that, in this example, the value for "total" no
+            longer needs to be hard-coded, because it is calculated by the bean class:
+        </p>
+
+        <pre class="brush:xml">
+            
+            &lt;Window title="Table Views" maximized="true"
+                xmlns:bxml="http://pivot.apache.org/bxml"
+                xmlns:content="org.apache.pivot.wtk.content"
+                xmlns:tableviews="org.apache.pivot.tutorials.tableviews"
+                xmlns="org.apache.pivot.wtk"&gt;
+                &lt;Border&gt;
+                    &lt;ScrollPane horizontalScrollBarPolicy="fill"&gt;
+                        &lt;TableView bxml:id="tableView"&gt;
+                            &lt;columns&gt;
+                                &lt;TableView.Column name="flag" width="20"&gt;
+                                    &lt;cellRenderer&gt;
+                                        &lt;content:TableViewImageCellRenderer/&gt;
+                                    &lt;/cellRenderer&gt;
+                                &lt;/TableView.Column&gt;
+                                &lt;TableView.Column name="nation" width="3*" headerData="Nation"/&gt;
+                                &lt;TableView.Column name="gold" width="1*" headerData="Gold"/&gt;
+                                &lt;TableView.Column name="silver" width="1*" headerData="Silver"/&gt;
+                                &lt;TableView.Column name="bronze" width="1*" headerData="Bronze"/&gt;
+                                &lt;TableView.Column name="total" width="1*" headerData="Total"/&gt;
+                            &lt;/columns&gt;
+
+                            &lt;tableViewSortListeners&gt;
+                                function sortChanged(tableView) {
+                                    var tableData = tableView.getTableData();
+                                    tableData.setComparator(new org.apache.pivot.wtk.content.TableViewRowComparator(tableView));
+                                }
+                            &lt;/tableViewSortListeners&gt;
+
+                            &lt;!-- Source: http://en.wikipedia.org/wiki/2008_Summer_Olympics_medal_table --&gt;
+                            &lt;tableviews:OlympicStanding nation="China" gold="51" silver="21" bronze="28" flag="@cn.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="United States" gold="36" silver="38" bronze="36" flag="@us.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="Russia" gold="23" silver="21" bronze="28" flag="@ru.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="Great Britain" gold="19" silver="13" bronze="15" flag="@gb.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="Germany" gold="16" silver="10" bronze="15" flag="@de.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="Australia" gold="14" silver="15" bronze="17" flag="@au.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="South Korea" gold="13" silver="10" bronze="8" flag="@kr.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="Japan" gold="9" silver="6" bronze="11" flag="@jp.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="Italy" gold="8" silver="10" bronze="10" flag="@it.png"/&gt;
+                            &lt;tableviews:OlympicStanding nation="France" gold="7" silver="16" bronze="17" flag="@fr.png"/&gt;
+                        &lt;/TableView&gt;
+
+                        &lt;columnHeader&gt;
+                            &lt;TableViewHeader tableView="$tableView" sortMode="single_column"/&gt;
+                        &lt;/columnHeader&gt;
+                    &lt;/ScrollPane&gt;
+                &lt;/Border&gt;
+            &lt;/Window&gt;
+            
+        </pre>
+
+        <p>
+            Like the previous example, this one also supports sorting, using the same logic as the
+            JSON version. The only other major difference between this example and the previous is
+            the use of relative-width columns in the table view. The "n*" notation used here is
+            identical to that used by the <a href="table-panes.html">TablePane</a> container
+            discussed earlier.
+        </p>
+    </div><p>Next: <a href="tree-views.html">Tree Views</a></p></div></div></div><div id="footer" class="group"><div class="footerLogo">Copyright (c) 1999-2012<br>The Apache Software Foundation.</div><div class="footerLinks"><ul class="footerMenuGr"><li><strong>Demos</strong><ul><li><a href="/demos/kitchen-sink.html" target="_new">"Kitchen Sink"</a></li><li><a href="/demos/component-explorer.html" target="_new">Component Explorer</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/Other+Demos" target="_new">Charting</a></li><li><a href="/demos/">More Demos</a></li></ul></li><li><strong>Documentation</strong><ul><li><a href="/getting-started.html">Getting Started</a></li><li><a href="/tutorials/">Tutorial</a></li><li><a href="/faq.html">FAQ</a></li><li><a href="/2.0.1/docs/api/">Javadoc (2.0.1)</a></li></ul></li><li><strong>Get Involved</strong><ul><li><a href="/svn.html">SVN Repositories</a></li><li><a href="/lists.html">Mailing Lists</a></li><li><a href="h
 ttp://issues.apache.org/jira/browse/PIVOT">Bug Database</a></li><li><a href="http://cwiki.apache.org/PIVOT/">Wiki</a></li></ul></li><li><strong>Related</strong><ul><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-jfree/">JFreeChart Provider</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-common/">Pivot-Common</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-contrib/">Pivot-Contrib</a></li><li><a href="http://code.google.com/a/apache-extras.org/p/pivot-multilang/">Pivot-Multilang</a></li></ul></li><li><strong>About</strong><ul><li><a href="/who-we-are.html">Who We Are</a></li><li><a href="/contact.html">Contact</a></li><li><a href="http://cwiki.apache.org/confluence/display/PIVOT/News">News</a></li><li><a href="/legal.html">Legal/License</a></li></ul></li></ul></div><div class="footerLinks">
+                	Apache Pivot is a trademark of the Apache Software Foundation
+                </div></div></div></body></html>
\ No newline at end of file