Modified: pivot/trunk/tests/src/org/apache/pivot/tests/TerraTheme_dark_flat.json URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/TerraTheme_dark_flat.json?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/TerraTheme_dark_flat.json (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/TerraTheme_dark_flat.json Tue Oct 31 19:15:47 2023 @@ -1,53 +1,53 @@ -/* - * 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. - */ -{ font: "Dialog 12", - - colorMultiplier: 0.1, - - themeIsDark: true, - - themeIsFlat: true, - - transitionEnabled: false, - - thickFocusRectangle: false, - - colors: [ - "#f5f5f5", - "#141414", - "#666666", - "#232323", - "#ff7f00", - "#ff8914", - "#b8b000", - "#eb0000" - ], - - messageIcons: { - error: "message_type-error-32x32.png", - warning: "message_type-warning-32x32.png", - question: "message_type-question-32x32.png", - info: "message_type-info-32x32.png" - }, - - smallMessageIcons: { - error: "message_type-error-16x16.png", - warning: "message_type-warning-16x16.png", - question: "message_type-question-16x16.png", - info: "message_type-info-16x16.png" - } -} +/* + * 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. + */ +{ font: "Dialog 12", + + colorMultiplier: 0.1, + + themeIsDark: true, + + themeIsFlat: true, + + transitionEnabled: false, + + thickFocusRectangle: false, + + colors: [ + "#f5f5f5", + "#141414", + "#666666", + "#232323", + "#ff7f00", + "#ff8914", + "#b8b000", + "#eb0000" + ], + + messageIcons: { + error: "message_type-error-32x32.png", + warning: "message_type-warning-32x32.png", + question: "message_type-question-32x32.png", + info: "message_type-info-32x32.png" + }, + + smallMessageIcons: { + error: "message_type-error-16x16.png", + warning: "message_type-warning-16x16.png", + question: "message_type-question-16x16.png", + info: "message_type-info-16x16.png" + } +}
Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/TerraTheme_dark_flat.json ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/TextAreaConsoleTest.java URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/TextAreaConsoleTest.java?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/TextAreaConsoleTest.java (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/TextAreaConsoleTest.java Tue Oct 31 19:15:47 2023 @@ -1,178 +1,178 @@ -/* - * 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.tests; - -import java.io.IOException; -import org.apache.pivot.beans.BXML; -import org.apache.pivot.beans.BXMLSerializer; -import org.apache.pivot.collections.Map; -import org.apache.pivot.util.Console; -import org.apache.pivot.serialization.SerializationException; -import org.apache.pivot.wtk.Application; -import org.apache.pivot.wtk.DesktopApplicationContext; -import org.apache.pivot.wtk.Display; -import org.apache.pivot.wtk.PushButton; -import org.apache.pivot.wtk.TextArea; -import org.apache.pivot.wtk.Window; -import org.apache.pivot.wtk.util.TextAreaOutputStream; - - -public class TextAreaConsoleTest implements Application { - @BXML private Window window; - @BXML private PushButton logMessageButton; - @BXML private TextArea consoleArea; - private Console console; - private int line = 1; - - private static final String[] PARAGRAPHS = { - "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt " - + "ut labore et dolore magna aliqua. Commodo odio aenean sed adipiscing diam donec adipiscing " - + "tristique. Orci nulla pellentesque dignissim enim sit amet venenatis. Magna sit amet purus " - + "gravida quis blandit. Tincidunt eget nullam non nisi est sit. Quis ipsum suspendisse ultrices " - + "gravida dictum fusce ut placerat. Et pharetra pharetra massa massa ultricies mi. In fermentum " - + "posuere urna nec tincidunt praesent. Ut etiam sit amet nisl purus in mollis nunc sed. Euismod " - + "lacinia at quis risus sed vulputate odio ut enim. In nibh mauris cursus mattis molestie a " - + "iaculis at erat. Dapibus ultrices in iaculis nunc sed. Viverra suspendisse potenti nullam " - + "ac tortor vitae purus faucibus ornare. Scelerisque fermentum dui faucibus in ornare quam " - + "viverra orci. Sagittis orci a scelerisque purus semper eget duis at tellus. Auctor eu augue " - + "ut lectus. Mattis rhoncus urna neque viverra justo nec ultrices dui sapien. Pellentesque eu " - + "tincidunt tortor aliquam nulla. Massa eget egestas purus viverra accumsan in nisl. Sed velit " - + "dignissim sodales ut eu sem integer.", - - "Tortor consequat id porta nibh venenatis cras sed felis eget. Viverra adipiscing at in tellus " - + "integer feugiat scelerisque. Hendrerit dolor magna eget est lorem ipsum dolor. Viverra tellus " - + "in hac habitasse platea dictumst vestibulum. Eget nulla facilisi etiam dignissim diam. At in " - + "tellus integer feugiat scelerisque varius morbi. Et egestas quis ipsum suspendisse ultrices " - + "gravida dictum fusce. Faucibus pulvinar elementum integer enim neque. A diam sollicitudin " - + "tempor id. Metus aliquam eleifend mi in nulla posuere sollicitudin aliquam ultrices. " - + "Consequat nisl vel pretium lectus quam id leo in. Adipiscing elit ut aliquam purus sit. " - + "A diam sollicitudin tempor id eu nisl nunc. Cursus euismod quis viverra nibh cras pulvinar " - + "mattis nunc sed. Aliquet bibendum enim facilisis gravida neque.", - - "Lorem sed risus ultricies tristique nulla aliquet enim tortor. Elementum nisi quis eleifend " - + "quam adipiscing vitae proin sagittis nisl. Cursus turpis massa tincidunt dui. Quam adipiscing " - + "vitae proin sagittis. Porta nibh venenatis cras sed felis eget. Morbi blandit cursus risus at " - + "ultrices mi tempus. Ac auctor augue mauris augue neque gravida. Proin nibh nisl condimentum " - + "id venenatis a condimentum vitae. Purus in massa tempor nec feugiat nisl. Phasellus egestas " - + "tellus rutrum tellus pellentesque eu.", - - "Pharetra diam sit amet nisl. Rhoncus urna neque viverra justo nec. Auctor elit sed vulputate " - + "mi sit amet mauris commodo quis. Penatibus et magnis dis parturient montes nascetur ridiculus " - + "mus. Mi ipsum faucibus vitae aliquet nec ullamcorper sit amet risus. Blandit volutpat " - + "maecenas volutpat blandit aliquam etiam erat. In arcu cursus euismod quis viverra nibh cras " - + "pulvinar. Elementum integer enim neque volutpat ac tincidunt vitae semper. Feugiat pretium " - + "nibh ipsum consequat nisl vel pretium lectus quam. Aenean sed adipiscing diam donec " - + "adipiscing tristique risus. Nunc sed augue lacus viverra vitae congue eu consequat. " - + "Malesuada fames ac turpis egestas. Libero volutpat sed cras ornare arcu dui vivamus arcu " - + "felis. Id aliquet risus feugiat in ante metus dictum. Netus et malesuada fames ac turpis " - + "egestas sed. Enim tortor at auctor urna nunc id cursus. Ligula ullamcorper malesuada proin " - + "libero nunc consequat. Diam volutpat commodo sed egestas egestas fringilla. Habitasse platea " - + "dictumst quisque sagittis purus sit amet volutpat consequat. Gravida cum sociis natoque " - + "penatibus et magnis dis parturient.", - - "Aliquam vestibulum morbi blandit cursus risus at. Lectus vestibulum mattis ullamcorper velit " - + "sed. Congue nisi vitae suscipit tellus mauris a diam maecenas sed. Eleifend donec pretium " - + "vulputate sapien nec sagittis aliquam malesuada. Nulla facilisi cras fermentum odio eu " - + "feugiat pretium nibh. Nibh tortor id aliquet lectus proin nibh nisl condimentum. Sodales " - + "ut eu sem integer. Amet dictum sit amet justo. Non pulvinar neque laoreet suspendisse " - + "interdum consectetur libero id faucibus. Fermentum leo vel orci porta non pulvinar neque " - + "laoreet. Blandit massa enim nec dui nunc mattis. Arcu non odio euismod lacinia. Orci porta " - + "non pulvinar neque laoreet suspendisse. Feugiat in ante metus dictum. Sodales ut etiam sit " - + "amet nisl purus. Ut aliquam purus sit amet luctus.", - - "Rhoncus dolor purus non enim praesent elementum facilisis leo vel. Vivamus at augue eget " - + "arcu dictum. Pellentesque elit ullamcorper dignissim cras tincidunt lobortis. Facilisis " - + "gravida neque convallis a cras semper. Tempor orci eu lobortis elementum nibh. Consequat " - + "nisl vel pretium lectus quam id leo in. Sed pulvinar proin gravida hendrerit. Velit " - + "laoreet id donec ultrices. Etiam non quam lacus suspendisse faucibus interdum posuere " - + "lorem ipsum. Tellus at urna condimentum mattis pellentesque id nibh tortor. Egestas congue " - + "quisque egestas diam in arcu cursus euismod. Amet facilisis magna etiam tempor orci eu. " - + "Aliquet enim tortor at auctor urna. Nulla facilisi nullam vehicula ipsum a arcu. Nisl " - + "condimentum id venenatis a condimentum. Vel fringilla est ullamcorper eget nulla facilisi " - + "etiam dignissim. Quis varius quam quisque id.", - - "Massa enim nec dui nunc mattis enim ut tellus. Amet dictum sit amet justo. Viverra " - + "accumsan in nisl nisi. Nulla facilisi nullam vehicula ipsum a. Proin nibh nisl condimentum " - + "id. Vulputate ut pharetra sit amet. Consectetur lorem donec massa sapien faucibus et " - + "molestie ac feugiat. Ut morbi tincidunt augue interdum velit euismod in. Non consectetur " - + "a erat nam at. Aliquam sem fringilla ut morbi tincidunt augue interdum velit. Nisl nisi " - + "scelerisque eu ultrices vitae auctor eu augue ut. Ut venenatis tellus in metus. Massa eget " - + "egestas purus viverra accumsan in nisl nisi. In est ante in nibh. Elementum sagittis vitae " - + "et leo duis ut. Nibh sed pulvinar proin gravida. Tristique senectus et netus et malesuada. " - + "In hac habitasse platea dictumst. Elit scelerisque mauris pellentesque pulvinar " - + "pellentesque habitant morbi tristique senectus. Elementum sagittis vitae et leo duis ut " - + "diam quam nulla.", - - "Orci eu lobortis elementum nibh. Facilisis volutpat est velit egestas dui id. Eleifend " - + "quam adipiscing vitae proin sagittis nisl rhoncus. Massa sed elementum tempus egestas sed " - + "sed risus. Tortor dignissim convallis aenean et tortor. Pellentesque adipiscing commodo " - + "elit at imperdiet dui accumsan sit. Habitasse platea dictumst vestibulum rhoncus est. " - + "Eleifend donec pretium vulputate sapien. Aliquam sem et tortor consequat. Dignissim " - + "suspendisse in est ante. Neque convallis a cras semper auctor neque. Eget magna fermentum " - + "iaculis eu non. Suscipit tellus mauris a diam.", - - "Adipiscing bibendum est ultricies integer. Amet dictum sit amet justo donec enim diam " - + "vulputate ut. Sagittis aliquam malesuada bibendum arcu vitae elementum curabitur vitae " - + "nunc. Ac turpis egestas maecenas pharetra. A arcu cursus vitae congue mauris rhoncus. " - + "Sed pulvinar proin gravida hendrerit lectus. Pharetra massa massa ultricies mi quis. " - + "Velit ut tortor pretium viverra suspendisse. Tristique sollicitudin nibh sit amet " - + "commodo. Cursus in hac habitasse platea dictumst quisque.", - - "Pharetra diam sit amet nisl suscipit adipiscing bibendum. Imperdiet massa tincidunt " - + "nunc pulvinar. Aliquet sagittis id consectetur purus ut. Volutpat maecenas volutpat " - + "blandit aliquam. At erat pellentesque adipiscing commodo elit at imperdiet dui accumsan. " - + "Lectus arcu bibendum at varius vel pharetra. Mi in nulla posuere sollicitudin aliquam " - + "ultrices sagittis orci a. Hac habitasse platea dictumst quisque sagittis purus sit. In " - + "ante metus dictum at. Fermentum et sollicitudin ac orci phasellus egestas tellus rutrum " - + "tellus. Malesuada fames ac turpis egestas maecenas. Scelerisque viverra mauris in " - + "aliquam sem fringilla ut morbi tincidunt. Ac placerat vestibulum lectus mauris ultrices " - + "eros in. Non pulvinar neque laoreet suspendisse interdum consectetur libero. Varius " - + "morbi enim nunc faucibus a pellentesque." - }; - private static final int NUM_PARAGRAPHS = PARAGRAPHS.length; - - private static int randomInt(final int max) { - return (int) Math.floor(Math.random() * (double) max); - } - - @Override - public void startup(final Display display, final Map<String, String> properties) { - BXMLSerializer serializer = new BXMLSerializer(); - try { - serializer.readObject(TextAreaConsoleTest.class, "console_test.bxml"); - serializer.bind(this); - } catch (IOException | SerializationException ex) { - throw new RuntimeException(ex); - } - console = new Console(new TextAreaOutputStream(consoleArea, 8192).toPrintStream()); - logMessageButton.getButtonPressListeners().add( - b -> console.log(String.format("%1$d. %2$s", line++, PARAGRAPHS[randomInt(NUM_PARAGRAPHS)]))); - window.open(display); - } - - @Override - public boolean shutdown(final boolean optional) { - if (window != null) { - window.close(); - } - return false; - } - - public static void main(final String[] args) { - DesktopApplicationContext.main(TextAreaConsoleTest.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.tests; + +import java.io.IOException; +import org.apache.pivot.beans.BXML; +import org.apache.pivot.beans.BXMLSerializer; +import org.apache.pivot.collections.Map; +import org.apache.pivot.util.Console; +import org.apache.pivot.serialization.SerializationException; +import org.apache.pivot.wtk.Application; +import org.apache.pivot.wtk.DesktopApplicationContext; +import org.apache.pivot.wtk.Display; +import org.apache.pivot.wtk.PushButton; +import org.apache.pivot.wtk.TextArea; +import org.apache.pivot.wtk.Window; +import org.apache.pivot.wtk.util.TextAreaOutputStream; + + +public class TextAreaConsoleTest implements Application { + @BXML private Window window; + @BXML private PushButton logMessageButton; + @BXML private TextArea consoleArea; + private Console console; + private int line = 1; + + private static final String[] PARAGRAPHS = { + "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt " + + "ut labore et dolore magna aliqua. Commodo odio aenean sed adipiscing diam donec adipiscing " + + "tristique. Orci nulla pellentesque dignissim enim sit amet venenatis. Magna sit amet purus " + + "gravida quis blandit. Tincidunt eget nullam non nisi est sit. Quis ipsum suspendisse ultrices " + + "gravida dictum fusce ut placerat. Et pharetra pharetra massa massa ultricies mi. In fermentum " + + "posuere urna nec tincidunt praesent. Ut etiam sit amet nisl purus in mollis nunc sed. Euismod " + + "lacinia at quis risus sed vulputate odio ut enim. In nibh mauris cursus mattis molestie a " + + "iaculis at erat. Dapibus ultrices in iaculis nunc sed. Viverra suspendisse potenti nullam " + + "ac tortor vitae purus faucibus ornare. Scelerisque fermentum dui faucibus in ornare quam " + + "viverra orci. Sagittis orci a scelerisque purus semper eget duis at tellus. Auctor eu augue " + + "ut lectus. Mattis rhoncus urna neque viverra justo nec ultrices dui sapien. Pellentesque eu " + + "tincidunt tortor aliquam nulla. Massa eget egestas purus viverra accumsan in nisl. Sed velit " + + "dignissim sodales ut eu sem integer.", + + "Tortor consequat id porta nibh venenatis cras sed felis eget. Viverra adipiscing at in tellus " + + "integer feugiat scelerisque. Hendrerit dolor magna eget est lorem ipsum dolor. Viverra tellus " + + "in hac habitasse platea dictumst vestibulum. Eget nulla facilisi etiam dignissim diam. At in " + + "tellus integer feugiat scelerisque varius morbi. Et egestas quis ipsum suspendisse ultrices " + + "gravida dictum fusce. Faucibus pulvinar elementum integer enim neque. A diam sollicitudin " + + "tempor id. Metus aliquam eleifend mi in nulla posuere sollicitudin aliquam ultrices. " + + "Consequat nisl vel pretium lectus quam id leo in. Adipiscing elit ut aliquam purus sit. " + + "A diam sollicitudin tempor id eu nisl nunc. Cursus euismod quis viverra nibh cras pulvinar " + + "mattis nunc sed. Aliquet bibendum enim facilisis gravida neque.", + + "Lorem sed risus ultricies tristique nulla aliquet enim tortor. Elementum nisi quis eleifend " + + "quam adipiscing vitae proin sagittis nisl. Cursus turpis massa tincidunt dui. Quam adipiscing " + + "vitae proin sagittis. Porta nibh venenatis cras sed felis eget. Morbi blandit cursus risus at " + + "ultrices mi tempus. Ac auctor augue mauris augue neque gravida. Proin nibh nisl condimentum " + + "id venenatis a condimentum vitae. Purus in massa tempor nec feugiat nisl. Phasellus egestas " + + "tellus rutrum tellus pellentesque eu.", + + "Pharetra diam sit amet nisl. Rhoncus urna neque viverra justo nec. Auctor elit sed vulputate " + + "mi sit amet mauris commodo quis. Penatibus et magnis dis parturient montes nascetur ridiculus " + + "mus. Mi ipsum faucibus vitae aliquet nec ullamcorper sit amet risus. Blandit volutpat " + + "maecenas volutpat blandit aliquam etiam erat. In arcu cursus euismod quis viverra nibh cras " + + "pulvinar. Elementum integer enim neque volutpat ac tincidunt vitae semper. Feugiat pretium " + + "nibh ipsum consequat nisl vel pretium lectus quam. Aenean sed adipiscing diam donec " + + "adipiscing tristique risus. Nunc sed augue lacus viverra vitae congue eu consequat. " + + "Malesuada fames ac turpis egestas. Libero volutpat sed cras ornare arcu dui vivamus arcu " + + "felis. Id aliquet risus feugiat in ante metus dictum. Netus et malesuada fames ac turpis " + + "egestas sed. Enim tortor at auctor urna nunc id cursus. Ligula ullamcorper malesuada proin " + + "libero nunc consequat. Diam volutpat commodo sed egestas egestas fringilla. Habitasse platea " + + "dictumst quisque sagittis purus sit amet volutpat consequat. Gravida cum sociis natoque " + + "penatibus et magnis dis parturient.", + + "Aliquam vestibulum morbi blandit cursus risus at. Lectus vestibulum mattis ullamcorper velit " + + "sed. Congue nisi vitae suscipit tellus mauris a diam maecenas sed. Eleifend donec pretium " + + "vulputate sapien nec sagittis aliquam malesuada. Nulla facilisi cras fermentum odio eu " + + "feugiat pretium nibh. Nibh tortor id aliquet lectus proin nibh nisl condimentum. Sodales " + + "ut eu sem integer. Amet dictum sit amet justo. Non pulvinar neque laoreet suspendisse " + + "interdum consectetur libero id faucibus. Fermentum leo vel orci porta non pulvinar neque " + + "laoreet. Blandit massa enim nec dui nunc mattis. Arcu non odio euismod lacinia. Orci porta " + + "non pulvinar neque laoreet suspendisse. Feugiat in ante metus dictum. Sodales ut etiam sit " + + "amet nisl purus. Ut aliquam purus sit amet luctus.", + + "Rhoncus dolor purus non enim praesent elementum facilisis leo vel. Vivamus at augue eget " + + "arcu dictum. Pellentesque elit ullamcorper dignissim cras tincidunt lobortis. Facilisis " + + "gravida neque convallis a cras semper. Tempor orci eu lobortis elementum nibh. Consequat " + + "nisl vel pretium lectus quam id leo in. Sed pulvinar proin gravida hendrerit. Velit " + + "laoreet id donec ultrices. Etiam non quam lacus suspendisse faucibus interdum posuere " + + "lorem ipsum. Tellus at urna condimentum mattis pellentesque id nibh tortor. Egestas congue " + + "quisque egestas diam in arcu cursus euismod. Amet facilisis magna etiam tempor orci eu. " + + "Aliquet enim tortor at auctor urna. Nulla facilisi nullam vehicula ipsum a arcu. Nisl " + + "condimentum id venenatis a condimentum. Vel fringilla est ullamcorper eget nulla facilisi " + + "etiam dignissim. Quis varius quam quisque id.", + + "Massa enim nec dui nunc mattis enim ut tellus. Amet dictum sit amet justo. Viverra " + + "accumsan in nisl nisi. Nulla facilisi nullam vehicula ipsum a. Proin nibh nisl condimentum " + + "id. Vulputate ut pharetra sit amet. Consectetur lorem donec massa sapien faucibus et " + + "molestie ac feugiat. Ut morbi tincidunt augue interdum velit euismod in. Non consectetur " + + "a erat nam at. Aliquam sem fringilla ut morbi tincidunt augue interdum velit. Nisl nisi " + + "scelerisque eu ultrices vitae auctor eu augue ut. Ut venenatis tellus in metus. Massa eget " + + "egestas purus viverra accumsan in nisl nisi. In est ante in nibh. Elementum sagittis vitae " + + "et leo duis ut. Nibh sed pulvinar proin gravida. Tristique senectus et netus et malesuada. " + + "In hac habitasse platea dictumst. Elit scelerisque mauris pellentesque pulvinar " + + "pellentesque habitant morbi tristique senectus. Elementum sagittis vitae et leo duis ut " + + "diam quam nulla.", + + "Orci eu lobortis elementum nibh. Facilisis volutpat est velit egestas dui id. Eleifend " + + "quam adipiscing vitae proin sagittis nisl rhoncus. Massa sed elementum tempus egestas sed " + + "sed risus. Tortor dignissim convallis aenean et tortor. Pellentesque adipiscing commodo " + + "elit at imperdiet dui accumsan sit. Habitasse platea dictumst vestibulum rhoncus est. " + + "Eleifend donec pretium vulputate sapien. Aliquam sem et tortor consequat. Dignissim " + + "suspendisse in est ante. Neque convallis a cras semper auctor neque. Eget magna fermentum " + + "iaculis eu non. Suscipit tellus mauris a diam.", + + "Adipiscing bibendum est ultricies integer. Amet dictum sit amet justo donec enim diam " + + "vulputate ut. Sagittis aliquam malesuada bibendum arcu vitae elementum curabitur vitae " + + "nunc. Ac turpis egestas maecenas pharetra. A arcu cursus vitae congue mauris rhoncus. " + + "Sed pulvinar proin gravida hendrerit lectus. Pharetra massa massa ultricies mi quis. " + + "Velit ut tortor pretium viverra suspendisse. Tristique sollicitudin nibh sit amet " + + "commodo. Cursus in hac habitasse platea dictumst quisque.", + + "Pharetra diam sit amet nisl suscipit adipiscing bibendum. Imperdiet massa tincidunt " + + "nunc pulvinar. Aliquet sagittis id consectetur purus ut. Volutpat maecenas volutpat " + + "blandit aliquam. At erat pellentesque adipiscing commodo elit at imperdiet dui accumsan. " + + "Lectus arcu bibendum at varius vel pharetra. Mi in nulla posuere sollicitudin aliquam " + + "ultrices sagittis orci a. Hac habitasse platea dictumst quisque sagittis purus sit. In " + + "ante metus dictum at. Fermentum et sollicitudin ac orci phasellus egestas tellus rutrum " + + "tellus. Malesuada fames ac turpis egestas maecenas. Scelerisque viverra mauris in " + + "aliquam sem fringilla ut morbi tincidunt. Ac placerat vestibulum lectus mauris ultrices " + + "eros in. Non pulvinar neque laoreet suspendisse interdum consectetur libero. Varius " + + "morbi enim nunc faucibus a pellentesque." + }; + private static final int NUM_PARAGRAPHS = PARAGRAPHS.length; + + private static int randomInt(final int max) { + return (int) Math.floor(Math.random() * (double) max); + } + + @Override + public void startup(final Display display, final Map<String, String> properties) { + BXMLSerializer serializer = new BXMLSerializer(); + try { + serializer.readObject(TextAreaConsoleTest.class, "console_test.bxml"); + serializer.bind(this); + } catch (IOException | SerializationException ex) { + throw new RuntimeException(ex); + } + console = new Console(new TextAreaOutputStream(consoleArea, 8192).toPrintStream()); + logMessageButton.getButtonPressListeners().add( + b -> console.log(String.format("%1$d. %2$s", line++, PARAGRAPHS[randomInt(NUM_PARAGRAPHS)]))); + window.open(display); + } + + @Override + public boolean shutdown(final boolean optional) { + if (window != null) { + window.close(); + } + return false; + } + + public static void main(final String[] args) { + DesktopApplicationContext.main(TextAreaConsoleTest.class, args); + } +} Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/TextAreaConsoleTest.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/VFSBrowserTest.java URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/VFSBrowserTest.java?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/VFSBrowserTest.java (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/VFSBrowserTest.java Tue Oct 31 19:15:47 2023 @@ -1,112 +1,112 @@ -/* - * 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.tests; - -import org.apache.commons.vfs2.FileObject; -import org.apache.commons.vfs2.FileSystemException; -import org.apache.pivot.collections.ArrayList; -import org.apache.pivot.collections.Map; -import org.apache.pivot.collections.Sequence; -import org.apache.pivot.wtk.Alert; -import org.apache.pivot.wtk.Application; -import org.apache.pivot.wtk.BoxPane; -import org.apache.pivot.wtk.Button; -import org.apache.pivot.wtk.ButtonPressListener; -import org.apache.pivot.wtk.Checkbox; -import org.apache.pivot.wtk.DesktopApplicationContext; -import org.apache.pivot.wtk.Display; -import org.apache.pivot.wtk.Frame; -import org.apache.pivot.wtk.ListView; -import org.apache.pivot.wtk.MessageType; -import org.apache.pivot.wtk.PushButton; -import org.apache.pivot.wtk.Sheet; -import org.apache.pivot.wtk.SheetCloseListener; -import org.apache.pivot.wtk.Style; -import org.apache.pivot.wtk.VerticalAlignment; -import org.apache.pivot.wtk.VFSBrowserSheet; - -public final class VFSBrowserTest implements Application { - - public VFSBrowserTest() { - } - - private Frame frame = null; - - @Override - public void startup(final Display display, final Map<String, String> properties) throws Exception { - BoxPane windowContent = new BoxPane(); - windowContent.putStyle(Style.verticalAlignment, VerticalAlignment.CENTER); - - final Checkbox showHiddenCheckbox = new Checkbox("Show hidden files"); - windowContent.add(showHiddenCheckbox); - - PushButton button = new PushButton("Open File Browser"); - button.putStyle(Style.padding, "[2, 4, 2, 4]"); - button.getButtonPressListeners().add(new ButtonPressListener() { - @Override - public void buttonPressed(final Button buttonArgument) { - try { - final VFSBrowserSheet vfsBrowserSheet = new VFSBrowserSheet( - VFSBrowserSheet.Mode.OPEN); - - vfsBrowserSheet.putStyle(Style.showHiddenFiles, showHiddenCheckbox.isSelected()); - - vfsBrowserSheet.open(frame, new SheetCloseListener() { - @Override - public void sheetClosed(final Sheet sheet) { - if (sheet.getResult()) { - Sequence<FileObject> selectedFiles = vfsBrowserSheet.getSelectedFiles(); - - ListView listView = new ListView(); - listView.setListData(new ArrayList<>(selectedFiles)); - listView.setSelectMode(ListView.SelectMode.NONE); - listView.putStyle(Style.backgroundColor, null); - - Alert.alert(MessageType.INFO, "You selected:", listView, frame); - } else { - Alert.alert(MessageType.INFO, "You didn't select anything.", frame); - } - } - }); - } catch (FileSystemException fse) { - Alert.alert(MessageType.ERROR, - String.format("File System Exception: %1$s", fse.getMessage()), frame); - } - } - }); - - windowContent.add(button); - - frame = new Frame(windowContent); - frame.setMaximized(true); - frame.open(display); - } - - @Override - public boolean shutdown(final boolean optional) { - if (frame != null) { - frame.close(); - } - - return false; - } - - public static void main(final String[] args) { - DesktopApplicationContext.main(VFSBrowserTest.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.tests; + +import org.apache.commons.vfs2.FileObject; +import org.apache.commons.vfs2.FileSystemException; +import org.apache.pivot.collections.ArrayList; +import org.apache.pivot.collections.Map; +import org.apache.pivot.collections.Sequence; +import org.apache.pivot.wtk.Alert; +import org.apache.pivot.wtk.Application; +import org.apache.pivot.wtk.BoxPane; +import org.apache.pivot.wtk.Button; +import org.apache.pivot.wtk.ButtonPressListener; +import org.apache.pivot.wtk.Checkbox; +import org.apache.pivot.wtk.DesktopApplicationContext; +import org.apache.pivot.wtk.Display; +import org.apache.pivot.wtk.Frame; +import org.apache.pivot.wtk.ListView; +import org.apache.pivot.wtk.MessageType; +import org.apache.pivot.wtk.PushButton; +import org.apache.pivot.wtk.Sheet; +import org.apache.pivot.wtk.SheetCloseListener; +import org.apache.pivot.wtk.Style; +import org.apache.pivot.wtk.VerticalAlignment; +import org.apache.pivot.wtk.VFSBrowserSheet; + +public final class VFSBrowserTest implements Application { + + public VFSBrowserTest() { + } + + private Frame frame = null; + + @Override + public void startup(final Display display, final Map<String, String> properties) throws Exception { + BoxPane windowContent = new BoxPane(); + windowContent.putStyle(Style.verticalAlignment, VerticalAlignment.CENTER); + + final Checkbox showHiddenCheckbox = new Checkbox("Show hidden files"); + windowContent.add(showHiddenCheckbox); + + PushButton button = new PushButton("Open File Browser"); + button.putStyle(Style.padding, "[2, 4, 2, 4]"); + button.getButtonPressListeners().add(new ButtonPressListener() { + @Override + public void buttonPressed(final Button buttonArgument) { + try { + final VFSBrowserSheet vfsBrowserSheet = new VFSBrowserSheet( + VFSBrowserSheet.Mode.OPEN); + + vfsBrowserSheet.putStyle(Style.showHiddenFiles, showHiddenCheckbox.isSelected()); + + vfsBrowserSheet.open(frame, new SheetCloseListener() { + @Override + public void sheetClosed(final Sheet sheet) { + if (sheet.getResult()) { + Sequence<FileObject> selectedFiles = vfsBrowserSheet.getSelectedFiles(); + + ListView listView = new ListView(); + listView.setListData(new ArrayList<>(selectedFiles)); + listView.setSelectMode(ListView.SelectMode.NONE); + listView.putStyle(Style.backgroundColor, null); + + Alert.alert(MessageType.INFO, "You selected:", listView, frame); + } else { + Alert.alert(MessageType.INFO, "You didn't select anything.", frame); + } + } + }); + } catch (FileSystemException fse) { + Alert.alert(MessageType.ERROR, + String.format("File System Exception: %1$s", fse.getMessage()), frame); + } + } + }); + + windowContent.add(button); + + frame = new Frame(windowContent); + frame.setMaximized(true); + frame.open(display); + } + + @Override + public boolean shutdown(final boolean optional) { + if (frame != null) { + frame.close(); + } + + return false; + } + + public static void main(final String[] args) { + DesktopApplicationContext.main(VFSBrowserTest.class, args); + } + +} Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/VFSBrowserTest.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/VerticalButtonTest.java URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/VerticalButtonTest.java?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/VerticalButtonTest.java (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/VerticalButtonTest.java Tue Oct 31 19:15:47 2023 @@ -1,88 +1,88 @@ -/* - * 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.tests; - -import java.awt.Desktop; -import java.io.IOException; -import java.net.URI; -import java.net.URISyntaxException; -import org.apache.pivot.collections.Map; -import org.apache.pivot.wtk.Alert; -import org.apache.pivot.wtk.Application; -import org.apache.pivot.wtk.DesktopApplicationContext; -import org.apache.pivot.wtk.Display; -import org.apache.pivot.wtk.Frame; -import org.apache.pivot.wtk.PushButton; -import org.apache.pivot.wtk.TextPane; -import org.apache.pivot.wtk.content.ButtonData; -import org.apache.pivot.wtk.content.VerticalButtonDataRenderer; -import org.apache.pivot.wtk.media.Image; -import org.apache.pivot.wtk.text.ComponentNode; -import org.apache.pivot.wtk.text.Document; -import org.apache.pivot.wtk.text.Paragraph; -import org.apache.pivot.wtk.text.TextNode; - - -public final class VerticalButtonTest implements Application { - private Frame frame = null; - - private void browse() { - try { - Desktop.getDesktop().browse(new URI("https://pivot.apache.org")); - } catch (URISyntaxException | IOException ex) { - Alert.alert(ex.getMessage(), frame); - } - } - - @Override - public void startup(final Display display, final Map<String, String> properties) throws Exception { - frame = new Frame(); - frame.setTitle("Vertical Button Test"); - frame.setPreferredSize(480, 360); - - Image image = Image.load(getClass().getResource("go-home.png")); - PushButton button1 = new PushButton(new ButtonData(image, "Home")); - button1.setDataRenderer(new VerticalButtonDataRenderer()); - button1.getButtonPressListeners().add((button) -> browse()); - TextPane textPane = new TextPane(); - Document document = new Document(); - TextNode text1 = new TextNode("Link to the Apache Pivot site: "); - ComponentNode compNode1 = new ComponentNode(button1); - Paragraph para1 = new Paragraph(); - para1.add(text1); - document.add(para1); - document.add(compNode1); - textPane.setDocument(document); - - frame.setContent(textPane); - - frame.open(display); - } - - @Override - public boolean shutdown(final boolean optional) { - if (frame != null) { - frame.close(); - } - - return false; - } - - public static void main(final String[] args) { - DesktopApplicationContext.main(VerticalButtonTest.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.tests; + +import java.awt.Desktop; +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; +import org.apache.pivot.collections.Map; +import org.apache.pivot.wtk.Alert; +import org.apache.pivot.wtk.Application; +import org.apache.pivot.wtk.DesktopApplicationContext; +import org.apache.pivot.wtk.Display; +import org.apache.pivot.wtk.Frame; +import org.apache.pivot.wtk.PushButton; +import org.apache.pivot.wtk.TextPane; +import org.apache.pivot.wtk.content.ButtonData; +import org.apache.pivot.wtk.content.VerticalButtonDataRenderer; +import org.apache.pivot.wtk.media.Image; +import org.apache.pivot.wtk.text.ComponentNode; +import org.apache.pivot.wtk.text.Document; +import org.apache.pivot.wtk.text.Paragraph; +import org.apache.pivot.wtk.text.TextNode; + + +public final class VerticalButtonTest implements Application { + private Frame frame = null; + + private void browse() { + try { + Desktop.getDesktop().browse(new URI("https://pivot.apache.org")); + } catch (URISyntaxException | IOException ex) { + Alert.alert(ex.getMessage(), frame); + } + } + + @Override + public void startup(final Display display, final Map<String, String> properties) throws Exception { + frame = new Frame(); + frame.setTitle("Vertical Button Test"); + frame.setPreferredSize(480, 360); + + Image image = Image.load(getClass().getResource("go-home.png")); + PushButton button1 = new PushButton(new ButtonData(image, "Home")); + button1.setDataRenderer(new VerticalButtonDataRenderer()); + button1.getButtonPressListeners().add((button) -> browse()); + TextPane textPane = new TextPane(); + Document document = new Document(); + TextNode text1 = new TextNode("Link to the Apache Pivot site: "); + ComponentNode compNode1 = new ComponentNode(button1); + Paragraph para1 = new Paragraph(); + para1.add(text1); + document.add(para1); + document.add(compNode1); + textPane.setDocument(document); + + frame.setContent(textPane); + + frame.open(display); + } + + @Override + public boolean shutdown(final boolean optional) { + if (frame != null) { + frame.close(); + } + + return false; + } + + public static void main(final String[] args) { + DesktopApplicationContext.main(VerticalButtonTest.class, args); + } +} Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/VerticalButtonTest.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/application_with_properties_test.bxml URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/application_with_properties_test.bxml?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/application_with_properties_test.bxml (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/application_with_properties_test.bxml Tue Oct 31 19:15:47 2023 @@ -1,24 +1,24 @@ -<?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="Application instance and properties from External, Test" maximized="true" - xmlns:bxml="http://pivot.apache.org/bxml" - xmlns="org.apache.pivot.wtk"> - <Label bxml:id="label" text="Sample label." - styles="{wrapText:true, padding:8, horizontalAlignment:'center', verticalAlignment:'top'}"/> -</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="Application instance and properties from External, Test" maximized="true" + xmlns:bxml="http://pivot.apache.org/bxml" + xmlns="org.apache.pivot.wtk"> + <Label bxml:id="label" text="Sample label." + styles="{wrapText:true, padding:8, horizontalAlignment:'center', verticalAlignment:'top'}"/> +</Window> Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/application_with_properties_test.bxml ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/checked_list_view_test.bxml URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/checked_list_view_test.bxml?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/checked_list_view_test.bxml (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/checked_list_view_test.bxml Tue Oct 31 19:15:47 2023 @@ -1,48 +1,48 @@ -<?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="Checked List View Test" - xmlns:bxml="http://pivot.apache.org/bxml" - xmlns:content="org.apache.pivot.wtk.content" - xmlns="org.apache.pivot.wtk" - maximized="true"> - <TablePane> - <columns> - <TablePane.Column width="1*"/> - </columns> - <rows> - <TablePane.Row height="-1"> - <Form> - <Form.Section> - <Checkbox bxml:id="allowMixedStateCheckbox" buttonData="Allow Mixed State Checks in ListView?"/> - <Checkbox bxml:id="showMixedAsSelectedCheckbox" buttonData="Mixed State Show as Selected?"/> - </Form.Section> - </Form> - </TablePane.Row> - <TablePane.Row height="1*"> - <ListView bxml:id="listView" listData="['One', 'Two', 'Three', 'Four']" selectMode="MULTI" checkmarksEnabled="true"/> - </TablePane.Row> - <TablePane.Row height="-1"> - <BoxPane orientation="horizontal"> - <Label text="Currently checked items:"/> - <Label bxml:id="selectedItemsLabel" text=""/> - </BoxPane> - </TablePane.Row> - </rows> - </TablePane> -</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="Checked List View Test" + xmlns:bxml="http://pivot.apache.org/bxml" + xmlns:content="org.apache.pivot.wtk.content" + xmlns="org.apache.pivot.wtk" + maximized="true"> + <TablePane> + <columns> + <TablePane.Column width="1*"/> + </columns> + <rows> + <TablePane.Row height="-1"> + <Form> + <Form.Section> + <Checkbox bxml:id="allowMixedStateCheckbox" buttonData="Allow Mixed State Checks in ListView?"/> + <Checkbox bxml:id="showMixedAsSelectedCheckbox" buttonData="Mixed State Show as Selected?"/> + </Form.Section> + </Form> + </TablePane.Row> + <TablePane.Row height="1*"> + <ListView bxml:id="listView" listData="['One', 'Two', 'Three', 'Four']" selectMode="MULTI" checkmarksEnabled="true"/> + </TablePane.Row> + <TablePane.Row height="-1"> + <BoxPane orientation="horizontal"> + <Label text="Currently checked items:"/> + <Label bxml:id="selectedItemsLabel" text=""/> + </BoxPane> + </TablePane.Row> + </rows> + </TablePane> +</Window> Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/checked_list_view_test.bxml ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/console_test.bxml URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/console_test.bxml?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/console_test.bxml (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/console_test.bxml Tue Oct 31 19:15:47 2023 @@ -1,43 +1,43 @@ -<?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 bxml:id="window" title="Console Text Area Test" maximized="true" - xmlns:bxml="http://pivot.apache.org/bxml" - xmlns:collections="org.apache.pivot.collections" - xmlns:content="org.apache.pivot.wtk.content" - xmlns="org.apache.pivot.wtk"> - <TablePane> - <columns> - <TablePane.Column width="1*"/> - </columns> - <rows> - <TablePane.Row height="3*"> - <FlowPane> - <PushButton bxml:id="logMessageButton" buttonData="Log Message"/> - </FlowPane> - </TablePane.Row> - <TablePane.Row height="1*"> - <Border title="Console"> - <ScrollPane horizontalScrollBarPolicy="fill" verticalScrollBarPolicy="auto"> - <TextArea bxml:id="consoleArea" editable="false" styles="{wrapText:true}"/> - </ScrollPane> - </Border> - </TablePane.Row> - </rows> - </TablePane> -</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 bxml:id="window" title="Console Text Area Test" maximized="true" + xmlns:bxml="http://pivot.apache.org/bxml" + xmlns:collections="org.apache.pivot.collections" + xmlns:content="org.apache.pivot.wtk.content" + xmlns="org.apache.pivot.wtk"> + <TablePane> + <columns> + <TablePane.Column width="1*"/> + </columns> + <rows> + <TablePane.Row height="3*"> + <FlowPane> + <PushButton bxml:id="logMessageButton" buttonData="Log Message"/> + </FlowPane> + </TablePane.Row> + <TablePane.Row height="1*"> + <Border title="Console"> + <ScrollPane horizontalScrollBarPolicy="fill" verticalScrollBarPolicy="auto"> + <TextArea bxml:id="consoleArea" editable="false" styles="{wrapText:true}"/> + </ScrollPane> + </Border> + </TablePane.Row> + </rows> + </TablePane> +</Window> Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/console_test.bxml ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/gauge_test.bxml URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/gauge_test.bxml?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/gauge_test.bxml (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/gauge_test.bxml Tue Oct 31 19:15:47 2023 @@ -1,47 +1,47 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -Licensed to the Apache Software Foundation (ASF) under one or more -contributor license agreements. See the NOTICE file distributed with -this work for additional information regarding copyright ownership. -The ASF licenses this file to you under the Apache License, -Version 2.0 (the "License"); you may not use this file except in -compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. ---> - -<Window - xmlns:bxml="http://pivot.apache.org/bxml" - xmlns="org.apache.pivot.wtk"> - <TablePane> - <columns> - <TablePane.Column width="1*"/> - </columns> - <rows> - <TablePane.Row height="-1"> - <Border title="Speed" styles="{backgroundColor:10}"> - <Gauge bxml:id="speedGauge" origin="SOUTH" type="Integer" minValue="0" maxValue="200" value="0" warningLevel="120" criticalLevel="180" - styles="{backgroundColor:10, criticalColor:23, font:{size:20}, thickness:10.0, padding:4, showTickMarks:true, tickFrequency:10, - showBorder:true, borderThickness:3.0}"/> - </Border> - </TablePane.Row> - <TablePane.Row height="-1"> - <BoxPane orientation="horizontal" styles="{padding:{left:20,right:20,top:4,bottom:4},spacing:20}"> - <PushButton bxml:id="gasPedal" preferredWidth="80" buttonData="Accelerate"/> - <PushButton bxml:id="brakePedal" preferredWidth="80" buttonData="Brake"/> - </BoxPane> - </TablePane.Row> - <TablePane.Row height="-1"> - <BoxPane styles="{horizontalAlignment:'center', padding:4}"> - <Checkbox bxml:id="maxCheck" buttonData="Max color?"/> - </BoxPane> - </TablePane.Row> - </rows> - </TablePane> -</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 + xmlns:bxml="http://pivot.apache.org/bxml" + xmlns="org.apache.pivot.wtk"> + <TablePane> + <columns> + <TablePane.Column width="1*"/> + </columns> + <rows> + <TablePane.Row height="-1"> + <Border title="Speed" styles="{backgroundColor:10}"> + <Gauge bxml:id="speedGauge" origin="SOUTH" type="Integer" minValue="0" maxValue="200" value="0" warningLevel="120" criticalLevel="180" + styles="{backgroundColor:10, criticalColor:23, font:{size:20}, thickness:10.0, padding:4, showTickMarks:true, tickFrequency:10, + showBorder:true, borderThickness:3.0}"/> + </Border> + </TablePane.Row> + <TablePane.Row height="-1"> + <BoxPane orientation="horizontal" styles="{padding:{left:20,right:20,top:4,bottom:4},spacing:20}"> + <PushButton bxml:id="gasPedal" preferredWidth="80" buttonData="Accelerate"/> + <PushButton bxml:id="brakePedal" preferredWidth="80" buttonData="Brake"/> + </BoxPane> + </TablePane.Row> + <TablePane.Row height="-1"> + <BoxPane styles="{horizontalAlignment:'center', padding:4}"> + <Checkbox bxml:id="maxCheck" buttonData="Max color?"/> + </BoxPane> + </TablePane.Row> + </rows> + </TablePane> +</Window> Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/gauge_test.bxml ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/image_view_svg_test.bxml URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/image_view_svg_test.bxml?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/image_view_svg_test.bxml (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/image_view_svg_test.bxml Tue Oct 31 19:15:47 2023 @@ -1,25 +1,25 @@ -<?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="ImageView Test" maximized="true" - xmlns:bxml="http://pivot.apache.org/bxml" - xmlns="org.apache.pivot.wtk"> - <ImageView image="@logo.svg" - styles="{fill:false, preserveAspectRatio:false, - horizontalAlignment:'left', verticalAlignment:'bottom'}"/> -</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="ImageView Test" maximized="true" + xmlns:bxml="http://pivot.apache.org/bxml" + xmlns="org.apache.pivot.wtk"> + <ImageView image="@logo.svg" + styles="{fill:false, preserveAspectRatio:false, + horizontalAlignment:'left', verticalAlignment:'bottom'}"/> +</Window> Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/image_view_svg_test.bxml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot951.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot859/pivot859.html URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot859/pivot859.html?rev=1913470&r1=1913469&r2=1913470&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot859/pivot859.html (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot859/pivot859.html Tue Oct 31 19:15:47 2023 @@ -1,134 +1,134 @@ -<!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 -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. ---> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - <title>Pivot-859 - Test</title> - - <style type="text/css"> - applet { - border: 1px solid #999999; - } - </style> - -</head> -<body> - - <script type="text/javascript" src="http://java.com/js/deployJava.js"></script> - <script type="text/javascript"> - // global variables to edit - var local_path_to_lib_jars = // "../../../../../../../../lib/"; // sample relative path, good from this package - "./lib/"; // edit to put the relative path between the html page and Pivot jars - var pivot_version = ""; // edit to put Pivot version in the string value - var pivot_signed = ".signed"; // name suffix for use signed version of jars - - // Applet definition sample - var attributes = { - // id:"", // set later (if necessary) - // name:"", // set later (if necessary) - code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet", - width:"640", - height:"240" - }; - - var libraries = []; - libraries.push(local_path_to_lib_jars + "pivot-tests-" + pivot_version + pivot_signed + ".jar"); - libraries.push(local_path_to_lib_jars + "pivot-core-" + pivot_version + pivot_signed + ".jar"); - libraries.push(local_path_to_lib_jars + "pivot-wtk-" + pivot_version + pivot_signed + ".jar"); - libraries.push(local_path_to_lib_jars + "pivot-wtk-terra-" + pivot_version + pivot_signed + ".jar"); - libraries.push(local_path_to_lib_jars + "pivot-tutorials-" + pivot_version + pivot_signed + ".jar"); - libraries.push(local_path_to_lib_jars + "svgSalamander-tiny" + pivot_signed + ".jar"); - - attributes.archive = libraries.join(","); - - var parameters = { - codebase_lookup:false, - application_class_name:"org.apache.pivot.tests.issues.pivot859.Pivot859", - separate_jvm:false - }; - - var javaArguments = ["-Dsun.awt.noerasebackground=true", - "-Dsun.awt.erasebackgroundonresize=true"]; - parameters.java_arguments = javaArguments.join(" "); - - var startupProperties = []; - </script> - -<div class="content"> - -<div class="applet"> - <p>Test Applet, first instance</p> - <script type="text/javascript"> - // set some values, before running the applet - attributes.id = "applet1"; - attributes.name = "applet, first instance"; - startupProperties.push("default_url=http://pivot.apache.org/"); - parameters.startup_properties = startupProperties.join("&"); - - // run the applet - deployJava.runApplet(attributes, parameters, "1.7"); - - // call Applet methods from JavaScript - var applet1 = document.getElementById("applet1"); - // alert("applet1 = " + applet1); - var appletReference = applet1.getApplication(); // the reference to Pivot Applet instance - appletReference.setAppletName(applet1.name); // read the name from applet tag attribute in HTML page - // put some debug info in page - // alert( - document.write( // less intrusive - "<br/>" + - "applet has name = \"" + appletReference.getAppletName() + "\"" - ); - </script> - <br/> -</div> -<hr/> - -<div class="applet"> - <p>Test Applet, second instance</p> - <script type="text/javascript"> - // set some values, before running the applet - attributes.id = "applet2"; - attributes.name = "applet, second instance"; - startupProperties.push("default_url=http://www.google.com/"); - parameters.startup_properties = startupProperties.join("&"); - - // run the applet - deployJava.runApplet(attributes, parameters, "1.7"); - - // call Applet methods from JavaScript - var applet2 = document.getElementById("applet2"); - // alert("applet2 = " + applet2); - var appletReference = applet2.getApplication(); // the reference to Pivot Applet instance - appletReference.setAppletName(applet2.name); // read the name from applet tag attribute in HTML page - // put some debug info in page - // alert( - document.write( // less intrusive - "<br/>" + - "applet has name = \"" + appletReference.getAppletName() + "\"" - ); - </script> - <br/> -</div> -<hr/> - -</div> - -</body> -</html> - +<!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 +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. +--> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <title>Pivot-859 - Test</title> + + <style type="text/css"> + applet { + border: 1px solid #999999; + } + </style> + +</head> +<body> + + <script type="text/javascript" src="http://java.com/js/deployJava.js"></script> + <script type="text/javascript"> + // global variables to edit + var local_path_to_lib_jars = // "../../../../../../../../lib/"; // sample relative path, good from this package + "./lib/"; // edit to put the relative path between the html page and Pivot jars + var pivot_version = ""; // edit to put Pivot version in the string value + var pivot_signed = ".signed"; // name suffix for use signed version of jars + + // Applet definition sample + var attributes = { + // id:"", // set later (if necessary) + // name:"", // set later (if necessary) + code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet", + width:"640", + height:"240" + }; + + var libraries = []; + libraries.push(local_path_to_lib_jars + "pivot-tests-" + pivot_version + pivot_signed + ".jar"); + libraries.push(local_path_to_lib_jars + "pivot-core-" + pivot_version + pivot_signed + ".jar"); + libraries.push(local_path_to_lib_jars + "pivot-wtk-" + pivot_version + pivot_signed + ".jar"); + libraries.push(local_path_to_lib_jars + "pivot-wtk-terra-" + pivot_version + pivot_signed + ".jar"); + libraries.push(local_path_to_lib_jars + "pivot-tutorials-" + pivot_version + pivot_signed + ".jar"); + libraries.push(local_path_to_lib_jars + "svgSalamander-tiny" + pivot_signed + ".jar"); + + attributes.archive = libraries.join(","); + + var parameters = { + codebase_lookup:false, + application_class_name:"org.apache.pivot.tests.issues.pivot859.Pivot859", + separate_jvm:false + }; + + var javaArguments = ["-Dsun.awt.noerasebackground=true", + "-Dsun.awt.erasebackgroundonresize=true"]; + parameters.java_arguments = javaArguments.join(" "); + + var startupProperties = []; + </script> + +<div class="content"> + +<div class="applet"> + <p>Test Applet, first instance</p> + <script type="text/javascript"> + // set some values, before running the applet + attributes.id = "applet1"; + attributes.name = "applet, first instance"; + startupProperties.push("default_url=http://pivot.apache.org/"); + parameters.startup_properties = startupProperties.join("&"); + + // run the applet + deployJava.runApplet(attributes, parameters, "1.7"); + + // call Applet methods from JavaScript + var applet1 = document.getElementById("applet1"); + // alert("applet1 = " + applet1); + var appletReference = applet1.getApplication(); // the reference to Pivot Applet instance + appletReference.setAppletName(applet1.name); // read the name from applet tag attribute in HTML page + // put some debug info in page + // alert( + document.write( // less intrusive + "<br/>" + + "applet has name = \"" + appletReference.getAppletName() + "\"" + ); + </script> + <br/> +</div> +<hr/> + +<div class="applet"> + <p>Test Applet, second instance</p> + <script type="text/javascript"> + // set some values, before running the applet + attributes.id = "applet2"; + attributes.name = "applet, second instance"; + startupProperties.push("default_url=http://www.google.com/"); + parameters.startup_properties = startupProperties.join("&"); + + // run the applet + deployJava.runApplet(attributes, parameters, "1.7"); + + // call Applet methods from JavaScript + var applet2 = document.getElementById("applet2"); + // alert("applet2 = " + applet2); + var appletReference = applet2.getApplication(); // the reference to Pivot Applet instance + appletReference.setAppletName(applet2.name); // read the name from applet tag attribute in HTML page + // put some debug info in page + // alert( + document.write( // less intrusive + "<br/>" + + "applet has name = \"" + appletReference.getAppletName() + "\"" + ); + </script> + <br/> +</div> +<hr/> + +</div> + +</body> +</html> + Propchange: pivot/trunk/tests/src/org/apache/pivot/tests/issues/pivot859/pivot859.html ------------------------------------------------------------------------------ svn:eol-style = native