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

svn commit: r1222994 [1/11] - in /pivot/trunk: core/test/org/apache/pivot/beans/test/ demos/src/org/apache/pivot/demos/memorygame/ demos/src/org/apache/pivot/demos/memorygame/img/ demos/src/org/apache/pivot/demos/roweditor/ demos/www/ etc/ examples/src...

Author: smartini
Date: Sat Dec 24 16:07:37 2011
New Revision: 1222994

URL: http://svn.apache.org/viewvc?rev=1222994&view=rev
Log:
set svn props

Modified:
    pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterSampleObject.java   (contents, props changed)
    pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java   (contents, props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGame.java   (contents, props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGameButtonData.java   (contents, props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/1.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/10.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/11.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/12.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/13.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/14.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/15.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/16.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/17.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/18.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/2.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/3.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/4.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/5.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/6.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/7.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/8.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/9.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/default.gif   (props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/memgame.bxml   (contents, props changed)
    pivot/trunk/demos/src/org/apache/pivot/demos/roweditor/RowEditorDemo.java   (contents, props changed)
    pivot/trunk/demos/www/bxml-explorer.png   (props changed)
    pivot/trunk/demos/www/bxml-explorer.xml   (contents, props changed)
    pivot/trunk/demos/www/component-explorer.png   (props changed)
    pivot/trunk/etc/pivot.keystore   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/builder/BuilderExample.java   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/builder/MyWindow.java   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/builder/builder_example.bxml   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/buttons/radio_button_group_example.bxml   (contents, props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/deployment/logo-256x256.png   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/deployment/logo-notext-256x256.ico   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/sheets/SheetSlideDirectionWindow.java   (contents, props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/sheets/sheet_slide_direction.bxml   (contents, props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/svg/logo.svg   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/svg/tiger.svg   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/tooltips/battery.png   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/tooltips/edit-paste.png   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/tooltips/emblem-favorite.png   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/tooltips/face-smile.png   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/wrapping/WrappingButtonDataRenderer.java   (props changed)
    pivot/trunk/examples/src/org/apache/pivot/examples/wrapping/wrapping_example.bxml   (props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenus.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/ContextMenusSampleMenuHandlerAdapter.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/CustomPanel.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/FileBrowserWithCharsetTest.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/PromptTest.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/SplashScreenTest.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/TableViewCellRendererCustom.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/TestUtils.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/context_menus.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/custom_panel.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/dialog_test.bxml   (props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot686.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot694.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot714.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot718.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot734.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot734WithWorkaround.java   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot765.java   (props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_511.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_686.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_694.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_714.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_718.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_734.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_798.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot_803.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/test1.jpg   (props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/issues/test2.jpg   (props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/multiple_selection_list.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/multiple_selection_table.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/multiple_selection_tree.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/recursive_disable.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/splash.bxml   (contents, props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/splash.png   (props changed)
    pivot/trunk/tests/src/org/apache/pivot/tests/table_view_test3.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXMLExplorer.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXMLExplorer.json   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXMLExplorerDocument.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/BXMLExplorerWindow.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/ComponentNode.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/CreateHighlightedXML.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/CreateHighlightedXML.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/FakeWindow.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/FakeWindowListener.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/FakeWindowSkin.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/builder-test1.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/bxml_explorer_document.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/bxml_explorer_window.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/checkbox.png   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/label.png   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/linkbutton.png   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/pushbutton.png   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/radiobutton.png   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tablepane.png   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspector.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspectorListener.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentInspectorSkin.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentPropertyInspector.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentPropertyInspectorSkin.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentStyleInspector.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/ComponentStyleInspectorSkin.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/bxmlexplorer/tools/package.html   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/fill_pane.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/text_pane.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/labels/logo-64x64.png   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/labels/logo.svg   (props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/FillPanes.java   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/layout/fill_panes.bxml   (contents, props changed)
    pivot/trunk/tutorials/src/org/apache/pivot/tutorials/lists/list_views_with_images.bxml   (contents, props changed)
    pivot/trunk/tutorials/www/bxml-explorer.xml   (contents, props changed)
    pivot/trunk/tutorials/www/fill-panes.xml   (contents, props changed)
    pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFillPaneSkin.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/FillPane.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/FillPaneListener.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/RadioButtonGroup.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/WTKListenerList.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewCheckboxCellRenderer.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewTriStateCellRenderer.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/FillPaneSkin.java   (contents, props changed)
    pivot/trunk/wtk/src/org/apache/pivot/wtk/text/TextSpan.java   (contents, props changed)

Modified: pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterSampleObject.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterSampleObject.java?rev=1222994&r1=1222993&r2=1222994&view=diff
==============================================================================
--- pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterSampleObject.java (original)
+++ pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterSampleObject.java Sat Dec 24 16:07:37 2011
@@ -1,52 +1,52 @@
-/*
- * 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.
- */
-package org.apache.pivot.beans.test;
-
-import java.math.BigDecimal;
-import java.math.BigInteger;
-
-public class BeanAdapterSampleObject {
-
-    private BigDecimal bd;
-    private BigInteger bi;
-    private String string;
-
-    public BigDecimal getBd() {
-        return bd;
-    }
-
-    public BigInteger getBi() {
-        return bi;
-    }
-
-    public void setBi(BigInteger bi) {
-        this.bi = bi;
-    }
-
-    public void setBd(BigDecimal bd) {
-        this.bd = bd;
-    }
-
-    public String getString() {
-        return string;
-    }
-
-    public void setString(String string) {
-        this.string = string;
-    }
-
-}
+/*
+ * 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.
+ */
+package org.apache.pivot.beans.test;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+
+public class BeanAdapterSampleObject {
+
+    private BigDecimal bd;
+    private BigInteger bi;
+    private String string;
+
+    public BigDecimal getBd() {
+        return bd;
+    }
+
+    public BigInteger getBi() {
+        return bi;
+    }
+
+    public void setBi(BigInteger bi) {
+        this.bi = bi;
+    }
+
+    public void setBd(BigDecimal bd) {
+        this.bd = bd;
+    }
+
+    public String getString() {
+        return string;
+    }
+
+    public void setString(String string) {
+        this.string = string;
+    }
+
+}

Propchange: pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterSampleObject.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java
URL: http://svn.apache.org/viewvc/pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java?rev=1222994&r1=1222993&r2=1222994&view=diff
==============================================================================
--- pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java (original)
+++ pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java Sat Dec 24 16:07:37 2011
@@ -1,180 +1,180 @@
-/*
- * 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.
- */
-package org.apache.pivot.beans.test;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.fail;
-
-import java.io.StringReader;
-import java.io.StringWriter;
-import java.math.BigDecimal;
-import java.math.BigInteger;
-import java.math.MathContext;
-import java.util.Date;
-import java.util.Random;
-
-import org.apache.pivot.json.JSONSerializer;
-import org.junit.After;
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class BeanAdapterTest {
-
-    private static Random rnd;
-
-    BeanAdapterSampleObject src_test;
-    JSONSerializer jsonSerializer;
-    StringWriter writer;
-    StringReader reader;
-    BeanAdapterSampleObject target_test;
-
-    @BeforeClass
-    public static void setUpClass() {
-        System.out.println(BeanAdapterTest.class.getName() + ": Starting tests at " + new Date());
-        rnd = new Random();
-    }
-
-    @AfterClass
-    public static void tearDownClass() {
-        rnd = null;
-        System.out.println(BeanAdapterTest.class.getName() + ": Ending tests at   " + new Date());
-    }
-
-    @Before
-    public void setUp() {
-        src_test = new BeanAdapterSampleObject();
-        jsonSerializer = new JSONSerializer(BeanAdapterSampleObject.class);
-        writer = new StringWriter();
-    }
-
-    @After
-    public void tearDown() {
-        src_test = null;
-        jsonSerializer = null;
-        writer = null;
-        reader = null;
-        target_test = null;
-    }
-
-    @Test
-    public void testSerializeBigDecimal()
-    {
-        System.out.println("testSerializeBigDecimal");
-
-        double random_double = rnd.nextDouble();
-        System.out.println("random_double = " + random_double + " (value will be truncated to 4 digits in this test)");
-
-        src_test.setBd(new BigDecimal(random_double, new MathContext(4)));
-
-        try {
-            jsonSerializer.writeObject(src_test, writer);
-        } catch (Exception e) {
-            e.printStackTrace();
-            fail();
-            return;
-        }
-
-        System.out.println("json string from src_test = " + writer.toString());
-        System.out.println("src_test.getBd()    = " + src_test.getBd());
-
-        reader = new StringReader(writer.toString());
-
-        try {
-            target_test = (BeanAdapterSampleObject) jsonSerializer.readObject(reader);
-        } catch (Exception e) {
-            e.printStackTrace();
-            fail();
-            return;
-        }
-
-        System.out.println("target_test.getBd() = " + target_test.getBd());
-        assertEquals(src_test.getBd().doubleValue(), target_test.getBd().doubleValue(), 0.0001);
-    }
-
-    @Test
-    public void testSerializeBigInteger()
-    {
-        System.out.println("testSerializeBigInteger");
-
-        int random_int = rnd.nextInt();
-        System.out.println("random_int = " + random_int);
-
-        src_test.setBi(new BigInteger(String.valueOf(random_int)));
-
-        try {
-            jsonSerializer.writeObject(src_test, writer);
-        } catch (Exception e) {
-            e.printStackTrace();
-            fail();
-            return;
-        }
-
-        System.out.println("json string from src_test = " + writer.toString());
-        System.out.println("src_test.getBi()    = " + src_test.getBi());
-
-        reader = new StringReader(writer.toString());
-
-        try {
-            target_test = (BeanAdapterSampleObject) jsonSerializer.readObject(reader);
-        } catch (Exception e) {
-            e.printStackTrace();
-            fail();
-            return;
-        }
-
-        System.out.println("target_test.getBi() = " + target_test.getBi());
-        assertEquals(src_test.getBi(), target_test.getBi());
-    }
-
-    @Test
-    public void testSerializeString()
-    {
-        System.out.println("testSerializeString");
-
-        String value = "A test String";
-        System.out.println("String value = \"" + value + "\"");
-
-        src_test.setString(value);
-
-        try {
-            jsonSerializer.writeObject(src_test, writer);
-        } catch (Exception e) {
-            e.printStackTrace();
-            fail();
-            return;
-        }
-
-        System.out.println("json string from src_test = " + writer.toString());
-        System.out.println("src_test.getString()    = \"" + src_test.getString() + "\"");
-
-        reader = new StringReader(writer.toString());
-
-        try {
-            target_test = (BeanAdapterSampleObject) jsonSerializer.readObject(reader);
-        } catch (Exception e) {
-            e.printStackTrace();
-            fail();
-            return;
-        }
-
-        System.out.println("target_test.getString() = \"" + target_test.getString() + "\"");
-        assertEquals(src_test.getString(), target_test.getString());
-    }
-
-}
+/*
+ * 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.
+ */
+package org.apache.pivot.beans.test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.fail;
+
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.math.MathContext;
+import java.util.Date;
+import java.util.Random;
+
+import org.apache.pivot.json.JSONSerializer;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class BeanAdapterTest {
+
+    private static Random rnd;
+
+    BeanAdapterSampleObject src_test;
+    JSONSerializer jsonSerializer;
+    StringWriter writer;
+    StringReader reader;
+    BeanAdapterSampleObject target_test;
+
+    @BeforeClass
+    public static void setUpClass() {
+        System.out.println(BeanAdapterTest.class.getName() + ": Starting tests at " + new Date());
+        rnd = new Random();
+    }
+
+    @AfterClass
+    public static void tearDownClass() {
+        rnd = null;
+        System.out.println(BeanAdapterTest.class.getName() + ": Ending tests at   " + new Date());
+    }
+
+    @Before
+    public void setUp() {
+        src_test = new BeanAdapterSampleObject();
+        jsonSerializer = new JSONSerializer(BeanAdapterSampleObject.class);
+        writer = new StringWriter();
+    }
+
+    @After
+    public void tearDown() {
+        src_test = null;
+        jsonSerializer = null;
+        writer = null;
+        reader = null;
+        target_test = null;
+    }
+
+    @Test
+    public void testSerializeBigDecimal()
+    {
+        System.out.println("testSerializeBigDecimal");
+
+        double random_double = rnd.nextDouble();
+        System.out.println("random_double = " + random_double + " (value will be truncated to 4 digits in this test)");
+
+        src_test.setBd(new BigDecimal(random_double, new MathContext(4)));
+
+        try {
+            jsonSerializer.writeObject(src_test, writer);
+        } catch (Exception e) {
+            e.printStackTrace();
+            fail();
+            return;
+        }
+
+        System.out.println("json string from src_test = " + writer.toString());
+        System.out.println("src_test.getBd()    = " + src_test.getBd());
+
+        reader = new StringReader(writer.toString());
+
+        try {
+            target_test = (BeanAdapterSampleObject) jsonSerializer.readObject(reader);
+        } catch (Exception e) {
+            e.printStackTrace();
+            fail();
+            return;
+        }
+
+        System.out.println("target_test.getBd() = " + target_test.getBd());
+        assertEquals(src_test.getBd().doubleValue(), target_test.getBd().doubleValue(), 0.0001);
+    }
+
+    @Test
+    public void testSerializeBigInteger()
+    {
+        System.out.println("testSerializeBigInteger");
+
+        int random_int = rnd.nextInt();
+        System.out.println("random_int = " + random_int);
+
+        src_test.setBi(new BigInteger(String.valueOf(random_int)));
+
+        try {
+            jsonSerializer.writeObject(src_test, writer);
+        } catch (Exception e) {
+            e.printStackTrace();
+            fail();
+            return;
+        }
+
+        System.out.println("json string from src_test = " + writer.toString());
+        System.out.println("src_test.getBi()    = " + src_test.getBi());
+
+        reader = new StringReader(writer.toString());
+
+        try {
+            target_test = (BeanAdapterSampleObject) jsonSerializer.readObject(reader);
+        } catch (Exception e) {
+            e.printStackTrace();
+            fail();
+            return;
+        }
+
+        System.out.println("target_test.getBi() = " + target_test.getBi());
+        assertEquals(src_test.getBi(), target_test.getBi());
+    }
+
+    @Test
+    public void testSerializeString()
+    {
+        System.out.println("testSerializeString");
+
+        String value = "A test String";
+        System.out.println("String value = \"" + value + "\"");
+
+        src_test.setString(value);
+
+        try {
+            jsonSerializer.writeObject(src_test, writer);
+        } catch (Exception e) {
+            e.printStackTrace();
+            fail();
+            return;
+        }
+
+        System.out.println("json string from src_test = " + writer.toString());
+        System.out.println("src_test.getString()    = \"" + src_test.getString() + "\"");
+
+        reader = new StringReader(writer.toString());
+
+        try {
+            target_test = (BeanAdapterSampleObject) jsonSerializer.readObject(reader);
+        } catch (Exception e) {
+            e.printStackTrace();
+            fail();
+            return;
+        }
+
+        System.out.println("target_test.getString() = \"" + target_test.getString() + "\"");
+        assertEquals(src_test.getString(), target_test.getString());
+    }
+
+}

Propchange: pivot/trunk/core/test/org/apache/pivot/beans/test/BeanAdapterTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGame.java
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGame.java?rev=1222994&r1=1222993&r2=1222994&view=diff
==============================================================================
--- pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGame.java (original)
+++ pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGame.java Sat Dec 24 16:07:37 2011
@@ -1,175 +1,175 @@
-/*
- * 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.
- */
-package org.apache.pivot.demos.memorygame;
-
-import java.util.Random;
-
-import org.apache.pivot.beans.BXMLSerializer;
-import org.apache.pivot.collections.Map;
-import org.apache.pivot.wtk.Alert;
-import org.apache.pivot.wtk.Application;
-import org.apache.pivot.wtk.Button;
-import org.apache.pivot.wtk.ButtonPressListener;
-import org.apache.pivot.wtk.DesktopApplicationContext;
-import org.apache.pivot.wtk.Display;
-import org.apache.pivot.wtk.MessageType;
-import org.apache.pivot.wtk.PushButton;
-import org.apache.pivot.wtk.Window;
-
-public class MemGame implements Application, ButtonPressListener {
-    private static final String IMG_BASE_FOLDER = "/org/apache/pivot/demos/memorygame/img/";
-
-    private static Random random = new Random();
-
-    private BXMLSerializer bxmlSerializer ;
-    private String defaultImage = IMG_BASE_FOLDER + "default.gif";
-    private boolean firstClick = true;
-    private boolean right = true;
-    private PushButton buttonOne;
-    private PushButton buttonTwo;
-    private Button clickedButtonOne;
-    private Button clickedButtonTwo;
-    private int count;
-
-    private Window window = null;
-    private String[] images18;
-    private String[] images36;
-    private PushButton[] buttons;
-
-
-
-    @Override
-    public void startup(Display display, Map<String, String> properties) throws Exception {
-        bxmlSerializer = new BXMLSerializer();
-        window = (Window) bxmlSerializer.readObject(getClass().getResource("memgame.bxml"));
-
-        buttons = new PushButton[36];
-        for(int aux = 0; aux < 36; aux++){
-            buttons[aux] = (PushButton) bxmlSerializer.getNamespace().get(String.valueOf(aux+1));
-             buttons[aux].getButtonPressListeners().add(this);
-         }
-
-        prepareGame();
-
-        window.open(display);
-        window.setWidth(420);
-        window.setHeight(420);
-    }
-
-    @Override
-    public boolean shutdown(boolean optional) {
-        if (window != null) {
-            window.close();
-        }
-        return false;
-    }
-
-    @Override
-    public void suspend() {
-    }
-
-    @Override
-    public void resume() {
-    }
-
-    public static void main(String[] args) {
-        DesktopApplicationContext.main(MemGame.class, args);
-    }
-
-    private void prepareGame(){
-         prepareImagesArray();
-
-         for(int aux = 0; aux < 36; aux++){
-             buttons[aux].setButtonData(new MemGameButtonData(defaultImage, images36[aux]));
-             buttons[aux].setEnabled(true);
-         }
-    }
-
-    private void prepareImagesArray(){
-        int positionNumArray, x, y;
-        this.images18 = new String[18];
-
-        for (x = 0; x < 18; x++){
-            this.images18[ x ] = IMG_BASE_FOLDER + ( x + 1 ) + ".gif";
-        }
-
-        this.images36 = new String[36];
-
-        for (x = 0; x < 2; x++){
-            for (y = 0; y < 18; y++){
-                do {
-                    positionNumArray = random.nextInt(36);
-                } while( this.images36[ positionNumArray ] != null );
-                this.images36[ positionNumArray ] = images18[ y ];
-            }
-        }
-    }
-
-    @Override
-    public void buttonPressed(Button button) {
-        if( firstClick ){
-            if ( !right ){
-                buttonOne = (PushButton) clickedButtonOne;
-                buttonTwo = (PushButton) clickedButtonTwo;
-
-                ((MemGameButtonData)buttonOne.getButtonData()).setDefaultURL();
-                ((MemGameButtonData)buttonTwo.getButtonData()).setDefaultURL();
-
-                window.repaint();
-            }
-
-            clickedButtonOne = button;
-
-            buttonOne = (PushButton) clickedButtonOne;
-            ((MemGameButtonData)buttonOne.getButtonData()).setButtonURL();
-
-            firstClick = !firstClick;
-        }
-        else{
-            clickedButtonTwo = button;
-            buttonTwo = (PushButton) clickedButtonTwo;
-
-            if ( clickedButtonTwo == clickedButtonOne ){
-                right = false;
-                Alert.alert(MessageType.WARNING, "Not permited action!", window);
-            }
-            else {
-                ((MemGameButtonData)buttonTwo.getButtonData()).setButtonURL();
-
-                if ( ((MemGameButtonData)buttonOne.getButtonData()).getButtonURL().equals(
-                        ((MemGameButtonData)buttonTwo.getButtonData()).getButtonURL())) {
-                    right = true;
-                    ++count;
-                    buttonOne.setEnabled( false );
-                    buttonTwo.setEnabled( false );
-                }
-                else {
-                    right = false;
-                }
-
-                firstClick = !firstClick;
-
-                if(count == 18){
-                    prepareGame();
-                    Alert.alert(MessageType.INFO, "Congratulations! You got a new challenge!", window);
-                    count=0;
-                }
-            }
-        }
-    }
-
-}
+/*
+ * 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.
+ */
+package org.apache.pivot.demos.memorygame;
+
+import java.util.Random;
+
+import org.apache.pivot.beans.BXMLSerializer;
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.wtk.Alert;
+import org.apache.pivot.wtk.Application;
+import org.apache.pivot.wtk.Button;
+import org.apache.pivot.wtk.ButtonPressListener;
+import org.apache.pivot.wtk.DesktopApplicationContext;
+import org.apache.pivot.wtk.Display;
+import org.apache.pivot.wtk.MessageType;
+import org.apache.pivot.wtk.PushButton;
+import org.apache.pivot.wtk.Window;
+
+public class MemGame implements Application, ButtonPressListener {
+    private static final String IMG_BASE_FOLDER = "/org/apache/pivot/demos/memorygame/img/";
+
+    private static Random random = new Random();
+
+    private BXMLSerializer bxmlSerializer ;
+    private String defaultImage = IMG_BASE_FOLDER + "default.gif";
+    private boolean firstClick = true;
+    private boolean right = true;
+    private PushButton buttonOne;
+    private PushButton buttonTwo;
+    private Button clickedButtonOne;
+    private Button clickedButtonTwo;
+    private int count;
+
+    private Window window = null;
+    private String[] images18;
+    private String[] images36;
+    private PushButton[] buttons;
+
+
+
+    @Override
+    public void startup(Display display, Map<String, String> properties) throws Exception {
+        bxmlSerializer = new BXMLSerializer();
+        window = (Window) bxmlSerializer.readObject(getClass().getResource("memgame.bxml"));
+
+        buttons = new PushButton[36];
+        for(int aux = 0; aux < 36; aux++){
+            buttons[aux] = (PushButton) bxmlSerializer.getNamespace().get(String.valueOf(aux+1));
+             buttons[aux].getButtonPressListeners().add(this);
+         }
+
+        prepareGame();
+
+        window.open(display);
+        window.setWidth(420);
+        window.setHeight(420);
+    }
+
+    @Override
+    public boolean shutdown(boolean optional) {
+        if (window != null) {
+            window.close();
+        }
+        return false;
+    }
+
+    @Override
+    public void suspend() {
+    }
+
+    @Override
+    public void resume() {
+    }
+
+    public static void main(String[] args) {
+        DesktopApplicationContext.main(MemGame.class, args);
+    }
+
+    private void prepareGame(){
+         prepareImagesArray();
+
+         for(int aux = 0; aux < 36; aux++){
+             buttons[aux].setButtonData(new MemGameButtonData(defaultImage, images36[aux]));
+             buttons[aux].setEnabled(true);
+         }
+    }
+
+    private void prepareImagesArray(){
+        int positionNumArray, x, y;
+        this.images18 = new String[18];
+
+        for (x = 0; x < 18; x++){
+            this.images18[ x ] = IMG_BASE_FOLDER + ( x + 1 ) + ".gif";
+        }
+
+        this.images36 = new String[36];
+
+        for (x = 0; x < 2; x++){
+            for (y = 0; y < 18; y++){
+                do {
+                    positionNumArray = random.nextInt(36);
+                } while( this.images36[ positionNumArray ] != null );
+                this.images36[ positionNumArray ] = images18[ y ];
+            }
+        }
+    }
+
+    @Override
+    public void buttonPressed(Button button) {
+        if( firstClick ){
+            if ( !right ){
+                buttonOne = (PushButton) clickedButtonOne;
+                buttonTwo = (PushButton) clickedButtonTwo;
+
+                ((MemGameButtonData)buttonOne.getButtonData()).setDefaultURL();
+                ((MemGameButtonData)buttonTwo.getButtonData()).setDefaultURL();
+
+                window.repaint();
+            }
+
+            clickedButtonOne = button;
+
+            buttonOne = (PushButton) clickedButtonOne;
+            ((MemGameButtonData)buttonOne.getButtonData()).setButtonURL();
+
+            firstClick = !firstClick;
+        }
+        else{
+            clickedButtonTwo = button;
+            buttonTwo = (PushButton) clickedButtonTwo;
+
+            if ( clickedButtonTwo == clickedButtonOne ){
+                right = false;
+                Alert.alert(MessageType.WARNING, "Not permited action!", window);
+            }
+            else {
+                ((MemGameButtonData)buttonTwo.getButtonData()).setButtonURL();
+
+                if ( ((MemGameButtonData)buttonOne.getButtonData()).getButtonURL().equals(
+                        ((MemGameButtonData)buttonTwo.getButtonData()).getButtonURL())) {
+                    right = true;
+                    ++count;
+                    buttonOne.setEnabled( false );
+                    buttonTwo.setEnabled( false );
+                }
+                else {
+                    right = false;
+                }
+
+                firstClick = !firstClick;
+
+                if(count == 18){
+                    prepareGame();
+                    Alert.alert(MessageType.INFO, "Congratulations! You got a new challenge!", window);
+                    count=0;
+                }
+            }
+        }
+    }
+
+}

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGame.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGameButtonData.java
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGameButtonData.java?rev=1222994&r1=1222993&r2=1222994&view=diff
==============================================================================
--- pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGameButtonData.java (original)
+++ pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGameButtonData.java Sat Dec 24 16:07:37 2011
@@ -1,45 +1,45 @@
-/*
- * 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.
- */
-package org.apache.pivot.demos.memorygame;
-
-import org.apache.pivot.wtk.content.ButtonData;
-import org.apache.pivot.wtk.media.Image;
-
-public class MemGameButtonData extends ButtonData {
-    private String defaultURL;
-    private String buttonURL;
-
-    public MemGameButtonData(String defaultURL, String buttonURL) {
-        super();
-        this.defaultURL = defaultURL;
-        this.buttonURL = buttonURL;
-        setDefaultURL();
-    }
-
-    public void setDefaultURL(){
-        this.setIcon(defaultURL);
-    }
-
-    public void setButtonURL(){
-        this.setIcon(buttonURL);
-    }
-
-    public Image getButtonURL(){
-        return this.getIcon();
-    }
-
-}
+/*
+ * 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.
+ */
+package org.apache.pivot.demos.memorygame;
+
+import org.apache.pivot.wtk.content.ButtonData;
+import org.apache.pivot.wtk.media.Image;
+
+public class MemGameButtonData extends ButtonData {
+    private String defaultURL;
+    private String buttonURL;
+
+    public MemGameButtonData(String defaultURL, String buttonURL) {
+        super();
+        this.defaultURL = defaultURL;
+        this.buttonURL = buttonURL;
+        setDefaultURL();
+    }
+
+    public void setDefaultURL(){
+        this.setIcon(defaultURL);
+    }
+
+    public void setButtonURL(){
+        this.setIcon(buttonURL);
+    }
+
+    public Image getButtonURL(){
+        return this.getIcon();
+    }
+
+}

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/MemGameButtonData.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/1.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/1.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/10.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/10.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/11.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/11.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/12.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/12.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/13.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/13.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/14.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/14.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/15.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/15.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/16.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/16.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/17.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/17.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/18.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/18.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/2.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/2.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/3.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/3.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/4.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/4.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/5.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/5.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/6.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/6.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/7.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/7.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/8.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/8.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/9.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/9.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/default.gif
------------------------------------------------------------------------------
    origination-name = image/gif

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/img/default.gif
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/gif

Modified: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/memgame.bxml
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/memgame.bxml?rev=1222994&r1=1222993&r2=1222994&view=diff
==============================================================================
--- pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/memgame.bxml (original)
+++ pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/memgame.bxml Sat Dec 24 16:07:37 2011
@@ -1,226 +1,226 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to you under the Apache License,
-Version 2.0 (the "License"); you may not use this file except in
-compliance with the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
--->
-
-<Window title="Pivot's Memory Game" maximized="true"
-    xmlns:bxml="http://pivot.apache.org/bxml"
-    xmlns:content="org.apache.pivot.wtk.content"
-    xmlns="org.apache.pivot.wtk">
-    <content>
-        <Border>
-            <content>
-                <GridPane columnCount="6" styles="{horizontalSpacing:1, verticalSpacing:1,
-                    showHorizontalGridLines:true, showVerticalGridLines:true}">
-                    <rows>
-                        <GridPane.Row>
-                            <PushButton toggleButton="true" bxml:id="1">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="2">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="3">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="4">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="5">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="6">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                        </GridPane.Row>
-                        <GridPane.Row>
-                            <PushButton toggleButton="true" bxml:id="7">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="8">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="9">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="10">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="11">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="12">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                        </GridPane.Row>
-                        <GridPane.Row>
-                            <PushButton toggleButton="true" bxml:id="13">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="14">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="15">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="16">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="17">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="18">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                        </GridPane.Row>
-                        <GridPane.Row>
-                            <PushButton toggleButton="true" bxml:id="19">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="20">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="21">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="22">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="23">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="24">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                        </GridPane.Row>
-                        <GridPane.Row>
-                            <PushButton toggleButton="true" bxml:id="25">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="26">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="27">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="28">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="29">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="30">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                        </GridPane.Row>
-                        <GridPane.Row>
-                            <PushButton toggleButton="true" bxml:id="31">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="32">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="33">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="34">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="35">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                            <PushButton toggleButton="true" bxml:id="36">
-                                <buttonData>
-                                    <content:ButtonData text=""/>
-                                </buttonData>
-                            </PushButton>
-                        </GridPane.Row>
-                    </rows>
-                </GridPane>
-            </content>
-        </Border>
-    </content>
-</Window>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to you under the Apache License,
+Version 2.0 (the "License"); you may not use this file except in
+compliance with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+<Window title="Pivot's Memory Game" maximized="true"
+    xmlns:bxml="http://pivot.apache.org/bxml"
+    xmlns:content="org.apache.pivot.wtk.content"
+    xmlns="org.apache.pivot.wtk">
+    <content>
+        <Border>
+            <content>
+                <GridPane columnCount="6" styles="{horizontalSpacing:1, verticalSpacing:1,
+                    showHorizontalGridLines:true, showVerticalGridLines:true}">
+                    <rows>
+                        <GridPane.Row>
+                            <PushButton toggleButton="true" bxml:id="1">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="2">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="3">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="4">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="5">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="6">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                        </GridPane.Row>
+                        <GridPane.Row>
+                            <PushButton toggleButton="true" bxml:id="7">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="8">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="9">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="10">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="11">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="12">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                        </GridPane.Row>
+                        <GridPane.Row>
+                            <PushButton toggleButton="true" bxml:id="13">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="14">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="15">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="16">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="17">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="18">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                        </GridPane.Row>
+                        <GridPane.Row>
+                            <PushButton toggleButton="true" bxml:id="19">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="20">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="21">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="22">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="23">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="24">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                        </GridPane.Row>
+                        <GridPane.Row>
+                            <PushButton toggleButton="true" bxml:id="25">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="26">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="27">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="28">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="29">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="30">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                        </GridPane.Row>
+                        <GridPane.Row>
+                            <PushButton toggleButton="true" bxml:id="31">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="32">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="33">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="34">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="35">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                            <PushButton toggleButton="true" bxml:id="36">
+                                <buttonData>
+                                    <content:ButtonData text=""/>
+                                </buttonData>
+                            </PushButton>
+                        </GridPane.Row>
+                    </rows>
+                </GridPane>
+            </content>
+        </Border>
+    </content>
+</Window>

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/memgame.bxml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/memorygame/memgame.bxml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: pivot/trunk/demos/src/org/apache/pivot/demos/roweditor/RowEditorDemo.java
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/src/org/apache/pivot/demos/roweditor/RowEditorDemo.java?rev=1222994&r1=1222993&r2=1222994&view=diff
==============================================================================
--- pivot/trunk/demos/src/org/apache/pivot/demos/roweditor/RowEditorDemo.java (original)
+++ pivot/trunk/demos/src/org/apache/pivot/demos/roweditor/RowEditorDemo.java Sat Dec 24 16:07:37 2011
@@ -1,72 +1,72 @@
-/*
- * 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.
- */
-package org.apache.pivot.demos.roweditor;
-
-import java.util.Locale;
-
-import org.apache.pivot.beans.BXMLSerializer;
-import org.apache.pivot.collections.Map;
-import org.apache.pivot.util.Resources;
-import org.apache.pivot.wtk.Application;
-import org.apache.pivot.wtk.DesktopApplicationContext;
-import org.apache.pivot.wtk.Display;
-import org.apache.pivot.wtk.Window;
-
-public class RowEditorDemo implements Application {
-    private Window window = null;
-
-    public static final String LANGUAGE_KEY = "language";
-    private static final String RESOURCE_NAME = RowEditorDemo.class.getName();
-
-    @Override
-    public void startup(Display display, Map<String, String> properties) throws Exception {
-        String language = properties.get(LANGUAGE_KEY);
-        Locale locale = (language == null) ? Locale.getDefault() : new Locale(language);
-        Resources resources = new Resources(RESOURCE_NAME, locale);
-        System.out.println("Loaded Resources from: " + resources.getBaseName() + ", for locale " + locale);
-
-        // Search for a font that can support the sample string
-        String title = (String)resources.get("title");
-        System.out.println("Title from Resources file is: \"" + title + "\"");
-
-        BXMLSerializer bxmlSerializer = new BXMLSerializer();
-        window = (Window)bxmlSerializer.readObject(RowEditorDemo.class.getResource("row_editor_demo.bxml"), resources);
-        window.open(display);
-    }
-
-    @Override
-    public boolean shutdown(boolean optional) {
-        if (window != null) {
-            window.close();
-        }
-
-        return false;
-    }
-
-    @Override
-    public void suspend() {
-    }
-
-    @Override
-    public void resume() {
-    }
-
-    public static void main(String[] args) {
-        DesktopApplicationContext.main(RowEditorDemo.class, args);
-    }
-
-}
+/*
+ * 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.
+ */
+package org.apache.pivot.demos.roweditor;
+
+import java.util.Locale;
+
+import org.apache.pivot.beans.BXMLSerializer;
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.util.Resources;
+import org.apache.pivot.wtk.Application;
+import org.apache.pivot.wtk.DesktopApplicationContext;
+import org.apache.pivot.wtk.Display;
+import org.apache.pivot.wtk.Window;
+
+public class RowEditorDemo implements Application {
+    private Window window = null;
+
+    public static final String LANGUAGE_KEY = "language";
+    private static final String RESOURCE_NAME = RowEditorDemo.class.getName();
+
+    @Override
+    public void startup(Display display, Map<String, String> properties) throws Exception {
+        String language = properties.get(LANGUAGE_KEY);
+        Locale locale = (language == null) ? Locale.getDefault() : new Locale(language);
+        Resources resources = new Resources(RESOURCE_NAME, locale);
+        System.out.println("Loaded Resources from: " + resources.getBaseName() + ", for locale " + locale);
+
+        // Search for a font that can support the sample string
+        String title = (String)resources.get("title");
+        System.out.println("Title from Resources file is: \"" + title + "\"");
+
+        BXMLSerializer bxmlSerializer = new BXMLSerializer();
+        window = (Window)bxmlSerializer.readObject(RowEditorDemo.class.getResource("row_editor_demo.bxml"), resources);
+        window.open(display);
+    }
+
+    @Override
+    public boolean shutdown(boolean optional) {
+        if (window != null) {
+            window.close();
+        }
+
+        return false;
+    }
+
+    @Override
+    public void suspend() {
+    }
+
+    @Override
+    public void resume() {
+    }
+
+    public static void main(String[] args) {
+        DesktopApplicationContext.main(RowEditorDemo.class, args);
+    }
+
+}

Propchange: pivot/trunk/demos/src/org/apache/pivot/demos/roweditor/RowEditorDemo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: pivot/trunk/demos/www/bxml-explorer.png
------------------------------------------------------------------------------
    origination-name = image/png

Propchange: pivot/trunk/demos/www/bxml-explorer.png
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/png

Modified: pivot/trunk/demos/www/bxml-explorer.xml
URL: http://svn.apache.org/viewvc/pivot/trunk/demos/www/bxml-explorer.xml?rev=1222994&r1=1222993&r2=1222994&view=diff
==============================================================================
--- pivot/trunk/demos/www/bxml-explorer.xml (original)
+++ pivot/trunk/demos/www/bxml-explorer.xml Sat Dec 24 16:07:37 2011
@@ -1,41 +1,41 @@
-<?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.
--->
-
-<document id="bxml-explorer">
-    <properties>
-        <title>BXML Explorer</title>
-        <description>
-            Does a Graphical preview of bxml files,
-            change (currently from outside)
-            and reload, to see changes immediately.
-        </description>
-        <full-screen>false</full-screen>
-    </properties>
-
-    <body>
-        <application class="org.apache.pivot.tutorials.bxmlexplorer.BXMLExplorer"
-            width="100%" height="100%">
-            <libraries signed="true">
-                <library>core</library>
-                <library>wtk</library>
-                <library>wtk-terra</library>
-                <library>tutorials</library>
-            </libraries>
-        </application>
-    </body>
-</document>
+<?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.
+-->
+
+<document id="bxml-explorer">
+    <properties>
+        <title>BXML Explorer</title>
+        <description>
+            Does a Graphical preview of bxml files,
+            change (currently from outside)
+            and reload, to see changes immediately.
+        </description>
+        <full-screen>false</full-screen>
+    </properties>
+
+    <body>
+        <application class="org.apache.pivot.tutorials.bxmlexplorer.BXMLExplorer"
+            width="100%" height="100%">
+            <libraries signed="true">
+                <library>core</library>
+                <library>wtk</library>
+                <library>wtk-terra</library>
+                <library>tutorials</library>
+            </libraries>
+        </application>
+    </body>
+</document>

Propchange: pivot/trunk/demos/www/bxml-explorer.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: pivot/trunk/demos/www/bxml-explorer.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: pivot/trunk/demos/www/component-explorer.png
------------------------------------------------------------------------------
    origination-name = image/png

Propchange: pivot/trunk/demos/www/component-explorer.png
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Sat Dec 24 16:07:37 2011
@@ -1 +1 @@
-application/octet-stream
+image/png