You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2012/07/31 22:12:04 UTC
svn commit: r1367739 - in /pivot/branches/2.0.x:
core/src/org/apache/pivot/util/ tests/src/org/apache/pivot/tests/
tests/src/org/apache/pivot/tests/issues/
tests/src/org/apache/pivot/tests/issues/pivot859/
tests/src/org/apache/pivot/tests/issues/pivot861/
Author: smartini
Date: Tue Jul 31 20:12:03 2012
New Revision: 1367739
URL: http://svn.apache.org/viewvc?rev=1367739&view=rev
Log:
Set svn props
Modified:
pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/IMG_0725_2.jpg (props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/clipboard.js (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/Pivot862.java (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/Pivot859.java (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/README.txt (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/pivot_859.bxml (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/LeakTestWindow.java (props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/Pivot861.java (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/TestDialog.java (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/leak_test_window.bxml (props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_843.bxml (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_862.bxml (contents, props changed)
pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/palette.png (props changed)
Modified: pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java (original)
+++ pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java Tue Jul 31 20:12:03 2012
@@ -1,27 +1,27 @@
-/*
- * 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.util;
-
-/**
- * Generic command interface.
- */
-public interface Command {
- /**
- * Execute the command.
- */
- public void execute();
-}
+/*
+ * 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.util;
+
+/**
+ * Generic command interface.
+ */
+public interface Command {
+ /**
+ * Execute the command.
+ */
+ public void execute();
+}
Propchange: pivot/branches/2.0.x/core/src/org/apache/pivot/util/Command.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/IMG_0725_2.jpg
------------------------------------------------------------------------------
origination-name = image/jpeg
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/IMG_0725_2.jpg
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Jul 31 20:12:03 2012
@@ -1 +1 @@
-application/octet-stream
+image/jpeg
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/clipboard.js
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/clipboard.js?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/clipboard.js (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/clipboard.js Tue Jul 31 20:12:03 2012
@@ -1,48 +1,48 @@
-/*
- * 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.
- */
-importPackage(org.apache.pivot.wtk);
-
-function copy() {
- // Copy the selected image to the clipboard
- var selectedSourceIndex = sourceImageCardPane.getSelectedIndex();
- var sourceImageView = sourceImageCardPane.get(selectedSourceIndex);
- var sourceImage = sourceImageView.getImage();
-
- var content = new LocalManifest();
- content.putImage(sourceImage);
-
- Clipboard.setContent(content);
-
- // Diagnostic info
- // Alert("Copy Image").open(window);
-}
-
-function paste() {
- // Diagnostic info
- // Prompt("Paste Image").open(window);
-
- // Paste any available image from the clipboard
- var content = Clipboard.getContent();
-
- if (content != null) {
- var image = content.getImage();
-
- if (image != null) {
- destinationImageView.setImage(image);
- }
- }
+/*
+ * 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.
+ */
+importPackage(org.apache.pivot.wtk);
+
+function copy() {
+ // Copy the selected image to the clipboard
+ var selectedSourceIndex = sourceImageCardPane.getSelectedIndex();
+ var sourceImageView = sourceImageCardPane.get(selectedSourceIndex);
+ var sourceImage = sourceImageView.getImage();
+
+ var content = new LocalManifest();
+ content.putImage(sourceImage);
+
+ Clipboard.setContent(content);
+
+ // Diagnostic info
+ // Alert("Copy Image").open(window);
+}
+
+function paste() {
+ // Diagnostic info
+ // Prompt("Paste Image").open(window);
+
+ // Paste any available image from the clipboard
+ var content = Clipboard.getContent();
+
+ if (content != null) {
+ var image = content.getImage();
+
+ if (image != null) {
+ destinationImageView.setImage(image);
+ }
+ }
}
\ No newline at end of file
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/clipboard.js
------------------------------------------------------------------------------
svn:eol-style = native
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/Pivot862.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/Pivot862.java?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/Pivot862.java (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/Pivot862.java Tue Jul 31 20:12:03 2012
@@ -1,135 +1,135 @@
-/*
- * 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.issues;
-
-import java.io.File;
-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.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.FileBrowserSheet;
-import org.apache.pivot.wtk.PushButton;
-import org.apache.pivot.wtk.Sheet;
-import org.apache.pivot.wtk.SheetCloseListener;
-import org.apache.pivot.wtk.Window;
-
-public class Pivot862 extends Application.Adapter
-{
- private Window window = null;
- private String selectedFolder = null;
-
- @BXML
- private PushButton selectFolderButton = null;
-
- @BXML
- private PushButton openFileButton = null;
-
-
- @Override
- public void startup(Display display, Map<String, String> properties) throws Exception {
- BXMLSerializer bxmlSerializer = new BXMLSerializer();
- window = (Window) bxmlSerializer.readObject(getClass().getResource("pivot_862.bxml"));
- bxmlSerializer.bind(this, Pivot862.class);
-
- selectFolderButton.getButtonPressListeners().add(new ButtonPressListener() {
- @Override
- public void buttonPressed(Button button) {
- final FileBrowserSheet fileBrowserSheet = new FileBrowserSheet();
-
- fileBrowserSheet.setMode(FileBrowserSheet.Mode.SAVE_TO); // to be able to select a folder
- fileBrowserSheet.open(window, new SheetCloseListener() {
- @Override
- public void sheetClosed(Sheet sheet) {
- if (sheet.getResult()) {
- File loadedFile = fileBrowserSheet.getSelectedFile();
- try {
- selectedFolder = loadedFile.getCanonicalPath();
- System.out.println("Selected folder '" + selectedFolder + "'");
-
- // multiple tests ...
- System.out.println("Verify: Root folder (display from getName) was set to '"
- + fileBrowserSheet.getRootDirectory().getName() + "'");
- System.out.println("Verify: Root folder (display from getCanonicalPath) was set to '"
- + fileBrowserSheet.getRootDirectory().getCanonicalPath() + "'");
- System.out.println("Verify: Root folder (display from getCanonicalFile) was set to '"
- + fileBrowserSheet.getRootDirectory().getCanonicalFile() + "'");
-
- openFileButton.setEnabled(true);
- } catch (IOException e) {
- e.printStackTrace();
- openFileButton.setEnabled(false);
- }
- window.setTitle("Selected folder: " + selectedFolder);
- }
- }
- });
- }
- });
-
- openFileButton.getButtonPressListeners().add(new ButtonPressListener() {
- @Override
- public void buttonPressed(Button button) {
- System.out.println("Now opening a BrowserSheet starting from the previous selected folder: \""
- + selectedFolder + "\"");
- FileBrowserSheet fileBrowserSheet =
- // new FileBrowserSheet(FileBrowserSheet.Mode.OPEN, selectedFolder); // use this as a workaround ...
- new FileBrowserSheet(FileBrowserSheet.Mode.OPEN); // test to see the wrong behavior
- // new FileBrowserSheet(); // test to see the wrong behavior
- fileBrowserSheet.setRootFolder(selectedFolder); // ok, but doesn't solve this issue ...
- System.out.println("\nNote: the behavior here is right only when using the constructor with two parameters ..."
- + " but in this source it's used one of other constructors.\n");
-
- try {
- // multiple tests ...
- System.out.println("Verify: Root folder (display from getName) was set to '"
- + fileBrowserSheet.getRootDirectory().getName() + "'");
- System.out.println("Verify: Root folder (display from getCanonicalPath) was set to '"
- + fileBrowserSheet.getRootDirectory().getCanonicalPath() + "'");
- System.out.println("Verify: Root folder (display from getCanonicalFile) was set to '"
- + fileBrowserSheet.getRootDirectory().getCanonicalFile() + "'");
- } catch (IOException e) {
- e.printStackTrace();
- }
-
- fileBrowserSheet.open(window, new SheetCloseListener() {
- @Override
- public void sheetClosed(Sheet sheet) {
- // empty block
- }
- });
- }
- });
-
- window.open(display);
- }
-
- @Override
- public boolean shutdown(boolean b) throws Exception {
- return false;
- }
-
- public static void main(String[] args) {
- DesktopApplicationContext.main(Pivot862.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.issues;
+
+import java.io.File;
+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.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.FileBrowserSheet;
+import org.apache.pivot.wtk.PushButton;
+import org.apache.pivot.wtk.Sheet;
+import org.apache.pivot.wtk.SheetCloseListener;
+import org.apache.pivot.wtk.Window;
+
+public class Pivot862 extends Application.Adapter
+{
+ private Window window = null;
+ private String selectedFolder = null;
+
+ @BXML
+ private PushButton selectFolderButton = null;
+
+ @BXML
+ private PushButton openFileButton = null;
+
+
+ @Override
+ public void startup(Display display, Map<String, String> properties) throws Exception {
+ BXMLSerializer bxmlSerializer = new BXMLSerializer();
+ window = (Window) bxmlSerializer.readObject(getClass().getResource("pivot_862.bxml"));
+ bxmlSerializer.bind(this, Pivot862.class);
+
+ selectFolderButton.getButtonPressListeners().add(new ButtonPressListener() {
+ @Override
+ public void buttonPressed(Button button) {
+ final FileBrowserSheet fileBrowserSheet = new FileBrowserSheet();
+
+ fileBrowserSheet.setMode(FileBrowserSheet.Mode.SAVE_TO); // to be able to select a folder
+ fileBrowserSheet.open(window, new SheetCloseListener() {
+ @Override
+ public void sheetClosed(Sheet sheet) {
+ if (sheet.getResult()) {
+ File loadedFile = fileBrowserSheet.getSelectedFile();
+ try {
+ selectedFolder = loadedFile.getCanonicalPath();
+ System.out.println("Selected folder '" + selectedFolder + "'");
+
+ // multiple tests ...
+ System.out.println("Verify: Root folder (display from getName) was set to '"
+ + fileBrowserSheet.getRootDirectory().getName() + "'");
+ System.out.println("Verify: Root folder (display from getCanonicalPath) was set to '"
+ + fileBrowserSheet.getRootDirectory().getCanonicalPath() + "'");
+ System.out.println("Verify: Root folder (display from getCanonicalFile) was set to '"
+ + fileBrowserSheet.getRootDirectory().getCanonicalFile() + "'");
+
+ openFileButton.setEnabled(true);
+ } catch (IOException e) {
+ e.printStackTrace();
+ openFileButton.setEnabled(false);
+ }
+ window.setTitle("Selected folder: " + selectedFolder);
+ }
+ }
+ });
+ }
+ });
+
+ openFileButton.getButtonPressListeners().add(new ButtonPressListener() {
+ @Override
+ public void buttonPressed(Button button) {
+ System.out.println("Now opening a BrowserSheet starting from the previous selected folder: \""
+ + selectedFolder + "\"");
+ FileBrowserSheet fileBrowserSheet =
+ // new FileBrowserSheet(FileBrowserSheet.Mode.OPEN, selectedFolder); // use this as a workaround ...
+ new FileBrowserSheet(FileBrowserSheet.Mode.OPEN); // test to see the wrong behavior
+ // new FileBrowserSheet(); // test to see the wrong behavior
+ fileBrowserSheet.setRootFolder(selectedFolder); // ok, but doesn't solve this issue ...
+ System.out.println("\nNote: the behavior here is right only when using the constructor with two parameters ..."
+ + " but in this source it's used one of other constructors.\n");
+
+ try {
+ // multiple tests ...
+ System.out.println("Verify: Root folder (display from getName) was set to '"
+ + fileBrowserSheet.getRootDirectory().getName() + "'");
+ System.out.println("Verify: Root folder (display from getCanonicalPath) was set to '"
+ + fileBrowserSheet.getRootDirectory().getCanonicalPath() + "'");
+ System.out.println("Verify: Root folder (display from getCanonicalFile) was set to '"
+ + fileBrowserSheet.getRootDirectory().getCanonicalFile() + "'");
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+
+ fileBrowserSheet.open(window, new SheetCloseListener() {
+ @Override
+ public void sheetClosed(Sheet sheet) {
+ // empty block
+ }
+ });
+ }
+ });
+
+ window.open(display);
+ }
+
+ @Override
+ public boolean shutdown(boolean b) throws Exception {
+ return false;
+ }
+
+ public static void main(String[] args) {
+ DesktopApplicationContext.main(Pivot862.class, args);
+ }
+
+}
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/Pivot862.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/Pivot859.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/Pivot859.java?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/Pivot859.java (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/Pivot859.java Tue Jul 31 20:12:03 2012
@@ -1,158 +1,158 @@
-/*
- * 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.issues.pivot859;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-import org.apache.pivot.beans.BXMLSerializer;
-import org.apache.pivot.collections.Map;
-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.PushButton;
-import org.apache.pivot.wtk.TextArea;
-import org.apache.pivot.wtk.TextInput;
-import org.apache.pivot.wtk.Window;
-
-/**
- * Test application , to be run in multiple instances in the same HTML page.
- */
-public class Pivot859 extends Application.Adapter {
-
- private Window window = null;
- private TextInput urlInput = null;
- private PushButton goButton = null;
- private TextArea contentArea = null;
- @SuppressWarnings("unused") private PushButton clearButton = null;
-
- private String appletName = null;
-
-
- public void startup(final Display display, Map<String, String> args) throws Exception {
- System.out.println("startup(...)");
-
- BXMLSerializer bxmlSerializer = new BXMLSerializer();
- window = (Window) bxmlSerializer.readObject(Pivot859.class, "pivot_859.bxml");
- initializeFields(bxmlSerializer);
- window.open(display);
- }
-
- @Override
- public boolean shutdown(boolean b) throws Exception {
- if (window != null) {
- window.close();
- }
-
- return false;
- }
-
- /**
- * Set the Applet name.
- * <p>
- * Called by JavaScript from the Browser.
- * @param name the name
- */
- public void setAppletName(String name) {
- appletName = name;
- System.out.println("set appletName to \"" + appletName + "\"");
- }
-
- /**
- * Get the Applet name.
- * <p>
- * Called by JavaScript from the Browser.
- * @return the name
- */
- public String getAppletName() {
- return appletName;
- }
-
-
- private void initializeFields(BXMLSerializer serializer) {
- System.out.println("initializeFields: start");
-
- urlInput = (TextInput)serializer.getNamespace().get("textInput");
-
- goButton = (PushButton)serializer.getNamespace().get("goButton");
- goButton.getButtonPressListeners().add(new ButtonPressListener() {
- @Override
- public void buttonPressed(Button button) {
- clearContent();
- retrieveURLContentSync();
- }
- });
-
- contentArea = (TextArea)serializer.getNamespace().get("textArea");
- clearButton = (PushButton)serializer.getNamespace().get("clearButton");
-
- System.out.println("initializeFields: end");
- }
-
- private String getAppletNameForLog() {
- return ( (getAppletName() != null) ? getAppletName() + ": " : "" );
- }
-
- private void clearContent() {
- System.out.println(getAppletNameForLog() + "Clearing text area content ...");
- // contentArea.clear();
- contentArea.setText("");
- }
-
- private URL buildURL() {
- URL url = null;
- String urlTyped = urlInput.getText();
-
- try {
- url = new URL(urlTyped);
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
-
- return url;
- }
-
- /**
- * Retrieve content from the given URL (in applet GUI), but in a synchronous way.
- */
- private void retrieveURLContentSync() {
- URL url = buildURL();
- if (url == null) {
- System.out.println(getAppletNameForLog() + "Unable to retrieve content from a bad URL");
- return ;
- }
-
- try {
- System.out.println(getAppletNameForLog() + "Retrieving Content from URL \"" + url + "\"");
-// TODO: retrieve content ...
-
- contentArea.setText("test");
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
-// TODO: retrieve content in the usual asynchronous way, but maybe in another method ...
-
-
- public static void main(String[] args) {
- DesktopApplicationContext.main(Pivot859.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.issues.pivot859;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.apache.pivot.beans.BXMLSerializer;
+import org.apache.pivot.collections.Map;
+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.PushButton;
+import org.apache.pivot.wtk.TextArea;
+import org.apache.pivot.wtk.TextInput;
+import org.apache.pivot.wtk.Window;
+
+/**
+ * Test application , to be run in multiple instances in the same HTML page.
+ */
+public class Pivot859 extends Application.Adapter {
+
+ private Window window = null;
+ private TextInput urlInput = null;
+ private PushButton goButton = null;
+ private TextArea contentArea = null;
+ @SuppressWarnings("unused") private PushButton clearButton = null;
+
+ private String appletName = null;
+
+
+ public void startup(final Display display, Map<String, String> args) throws Exception {
+ System.out.println("startup(...)");
+
+ BXMLSerializer bxmlSerializer = new BXMLSerializer();
+ window = (Window) bxmlSerializer.readObject(Pivot859.class, "pivot_859.bxml");
+ initializeFields(bxmlSerializer);
+ window.open(display);
+ }
+
+ @Override
+ public boolean shutdown(boolean b) throws Exception {
+ if (window != null) {
+ window.close();
+ }
+
+ return false;
+ }
+
+ /**
+ * Set the Applet name.
+ * <p>
+ * Called by JavaScript from the Browser.
+ * @param name the name
+ */
+ public void setAppletName(String name) {
+ appletName = name;
+ System.out.println("set appletName to \"" + appletName + "\"");
+ }
+
+ /**
+ * Get the Applet name.
+ * <p>
+ * Called by JavaScript from the Browser.
+ * @return the name
+ */
+ public String getAppletName() {
+ return appletName;
+ }
+
+
+ private void initializeFields(BXMLSerializer serializer) {
+ System.out.println("initializeFields: start");
+
+ urlInput = (TextInput)serializer.getNamespace().get("textInput");
+
+ goButton = (PushButton)serializer.getNamespace().get("goButton");
+ goButton.getButtonPressListeners().add(new ButtonPressListener() {
+ @Override
+ public void buttonPressed(Button button) {
+ clearContent();
+ retrieveURLContentSync();
+ }
+ });
+
+ contentArea = (TextArea)serializer.getNamespace().get("textArea");
+ clearButton = (PushButton)serializer.getNamespace().get("clearButton");
+
+ System.out.println("initializeFields: end");
+ }
+
+ private String getAppletNameForLog() {
+ return ( (getAppletName() != null) ? getAppletName() + ": " : "" );
+ }
+
+ private void clearContent() {
+ System.out.println(getAppletNameForLog() + "Clearing text area content ...");
+ // contentArea.clear();
+ contentArea.setText("");
+ }
+
+ private URL buildURL() {
+ URL url = null;
+ String urlTyped = urlInput.getText();
+
+ try {
+ url = new URL(urlTyped);
+ } catch (MalformedURLException e) {
+ e.printStackTrace();
+ }
+
+ return url;
+ }
+
+ /**
+ * Retrieve content from the given URL (in applet GUI), but in a synchronous way.
+ */
+ private void retrieveURLContentSync() {
+ URL url = buildURL();
+ if (url == null) {
+ System.out.println(getAppletNameForLog() + "Unable to retrieve content from a bad URL");
+ return ;
+ }
+
+ try {
+ System.out.println(getAppletNameForLog() + "Retrieving Content from URL \"" + url + "\"");
+// TODO: retrieve content ...
+
+ contentArea.setText("test");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+// TODO: retrieve content in the usual asynchronous way, but maybe in another method ...
+
+
+ public static void main(String[] args) {
+ DesktopApplicationContext.main(Pivot859.class, args);
+ }
+
+}
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/Pivot859.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/README.txt
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/README.txt?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/README.txt (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/README.txt Tue Jul 31 20:12:03 2012
@@ -1,12 +1,12 @@
-//
-// README for Pivot859
-//
-
-This test must be run from a real browser, so before running the test you must generate Pivot jars, with the usual ant commands:
-
-ant package
-and package-tests
-
-Then open the html page here in a real browser.
-
-Note that this test multiple Applet instance inside the same HTML page, and all calls a resource via HTTP.
+//
+// README for Pivot859
+//
+
+This test must be run from a real browser, so before running the test you must generate Pivot jars, with the usual ant commands:
+
+ant package
+and package-tests
+
+Then open the html page here in a real browser.
+
+Note that this test multiple Applet instance inside the same HTML page, and all calls a resource via HTTP.
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/pivot_859.bxml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/pivot_859.bxml?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/pivot_859.bxml (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/pivot_859.bxml Tue Jul 31 20:12:03 2012
@@ -1,63 +1,63 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-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-859" maximized="true"
- xmlns:bxml="http://pivot.apache.org/bxml"
- xmlns:app="org.apache.pivot.tests.issues"
- xmlns:content="org.apache.pivot.wtk.content"
- xmlns="org.apache.pivot.wtk"
->
-
- <TablePane styles="{padding:6, horizontalSpacing:6, verticalSpacing:8}">
- <columns>
- <TablePane.Column width="100"/>
- <TablePane.Column width="1*"/>
- <TablePane.Column width="50"/>
- </columns>
-
- <TablePane.Row height="-1">
- <Label styles="{horizontalAlignment:'right', verticalAlignment:'center'}" text="URL:"/>
- <TextInput bxml:id="textInput" text="http://pivot.apache.org/index.html" textSize="30"/>
- <PushButton bxml:id="goButton" buttonData="Go"/>
- </TablePane.Row>
- <TablePane.Row height="-1">
- <Label styles="{horizontalAlignment:'right', verticalAlignment:'center'}" text="Content:"/>
- <Border>
- <TextArea bxml:id="textArea" preferredWidth="320" preferredHeight="200"
- styles="{wrapText:true}"
- editable="false"
- text=""
- >
- <textAreaContentListeners>
- function textChanged(textArea) {
- // java.lang.System.out.println("length = " + textArea.characterCount);
- }
- </textAreaContentListeners>
- </TextArea>
- </Border>
- <PushButton bxml:id="clearButton" buttonData="Clear" preferredHeight="40" preferredWidth="50">
- <buttonPressListeners>
- function buttonPressed(button) {
- textArea.text = "";
- }
- </buttonPressListeners>
- </PushButton>
- </TablePane.Row>
- </TablePane>
-
-</Window>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+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-859" maximized="true"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns:app="org.apache.pivot.tests.issues"
+ xmlns:content="org.apache.pivot.wtk.content"
+ xmlns="org.apache.pivot.wtk"
+>
+
+ <TablePane styles="{padding:6, horizontalSpacing:6, verticalSpacing:8}">
+ <columns>
+ <TablePane.Column width="100"/>
+ <TablePane.Column width="1*"/>
+ <TablePane.Column width="50"/>
+ </columns>
+
+ <TablePane.Row height="-1">
+ <Label styles="{horizontalAlignment:'right', verticalAlignment:'center'}" text="URL:"/>
+ <TextInput bxml:id="textInput" text="http://pivot.apache.org/index.html" textSize="30"/>
+ <PushButton bxml:id="goButton" buttonData="Go"/>
+ </TablePane.Row>
+ <TablePane.Row height="-1">
+ <Label styles="{horizontalAlignment:'right', verticalAlignment:'center'}" text="Content:"/>
+ <Border>
+ <TextArea bxml:id="textArea" preferredWidth="320" preferredHeight="200"
+ styles="{wrapText:true}"
+ editable="false"
+ text=""
+ >
+ <textAreaContentListeners>
+ function textChanged(textArea) {
+ // java.lang.System.out.println("length = " + textArea.characterCount);
+ }
+ </textAreaContentListeners>
+ </TextArea>
+ </Border>
+ <PushButton bxml:id="clearButton" buttonData="Clear" preferredHeight="40" preferredWidth="50">
+ <buttonPressListeners>
+ function buttonPressed(button) {
+ textArea.text = "";
+ }
+ </buttonPressListeners>
+ </PushButton>
+ </TablePane.Row>
+ </TablePane>
+
+</Window>
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/pivot_859.bxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot859/pivot_859.bxml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/LeakTestWindow.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/Pivot861.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/Pivot861.java?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/Pivot861.java (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/Pivot861.java Tue Jul 31 20:12:03 2012
@@ -1,54 +1,54 @@
-/*
- * 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.issues.pivot861;
-
-import org.apache.pivot.collections.Map;
-import org.apache.pivot.wtk.Application;
-import org.apache.pivot.wtk.DesktopApplicationContext;
-import org.apache.pivot.wtk.Display;
-
-/**
- * Test application to show the memory leak (the subject for this bug).
- * For more info, look at LeakTestWindow.
- */
-public class Pivot861 extends Application.Adapter {
-
- public void startup(final Display display, Map<String, String> args) throws Exception {
- System.out.println("Pivot861 startup(...)");
- System.out.println("\n"
- + "Attention: now the application will go in an infinite loop, to be able to see the memory leak.\n"
- + "Note that probably you'll have to kill the application from outside (kill the Java process).\n"
- + "\n"
- );
-
- // add some sleep to let users see the warning messages in console ...
- Thread.sleep(2000);
-
- LeakTestWindow window = LeakTestWindow.create();
- window.open(display);
- }
-
- @Override
- public boolean shutdown(boolean b) throws Exception {
- return false;
- }
-
- public static void main(String[] args) {
- DesktopApplicationContext.main(Pivot861.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.issues.pivot861;
+
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.wtk.Application;
+import org.apache.pivot.wtk.DesktopApplicationContext;
+import org.apache.pivot.wtk.Display;
+
+/**
+ * Test application to show the memory leak (the subject for this bug).
+ * For more info, look at LeakTestWindow.
+ */
+public class Pivot861 extends Application.Adapter {
+
+ public void startup(final Display display, Map<String, String> args) throws Exception {
+ System.out.println("Pivot861 startup(...)");
+ System.out.println("\n"
+ + "Attention: now the application will go in an infinite loop, to be able to see the memory leak.\n"
+ + "Note that probably you'll have to kill the application from outside (kill the Java process).\n"
+ + "\n"
+ );
+
+ // add some sleep to let users see the warning messages in console ...
+ Thread.sleep(2000);
+
+ LeakTestWindow window = LeakTestWindow.create();
+ window.open(display);
+ }
+
+ @Override
+ public boolean shutdown(boolean b) throws Exception {
+ return false;
+ }
+
+ public static void main(String[] args) {
+ DesktopApplicationContext.main(Pivot861.class, args);
+ }
+
+}
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/Pivot861.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/TestDialog.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/TestDialog.java?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/TestDialog.java (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/TestDialog.java Tue Jul 31 20:12:03 2012
@@ -1,65 +1,65 @@
-/*
- * 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.issues.pivot861;
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.apache.pivot.beans.BXML;
-import org.apache.pivot.beans.BXMLSerializer;
-import org.apache.pivot.beans.Bindable;
-import org.apache.pivot.collections.Map;
-import org.apache.pivot.serialization.SerializationException;
-import org.apache.pivot.util.Resources;
-import org.apache.pivot.wtk.Button;
-import org.apache.pivot.wtk.ButtonPressListener;
-import org.apache.pivot.wtk.Dialog;
-import org.apache.pivot.wtk.PushButton;
-
-public class TestDialog extends Dialog implements Bindable {
-
- private static final String DIALOG_MARKUP_FILE = "/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml";
-
- @BXML
- private PushButton okButton;
-
- public static TestDialog create() {
- System.out.println("TestDialog create()");
- TestDialog dialog = null;
- try {
- BXMLSerializer bxmlSerializer = new BXMLSerializer();
- dialog = (TestDialog) bxmlSerializer.readObject(TestDialog.class, DIALOG_MARKUP_FILE);
- } catch (IOException e) {
- e.printStackTrace();
- } catch (SerializationException e) {
- e.printStackTrace();
- }
- return dialog;
- }
-
- public void initialize(Map<String, Object> namespace, URL location, Resources resources) {
- System.out.println("TestDialog initialize(...)");
-
- this.okButton.getButtonPressListeners().add(new ButtonPressListener() {
- public void buttonPressed(Button button) {
- TestDialog.this.close(true);
- }
- });
-
- }
-
-}
+/*
+ * 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.issues.pivot861;
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.apache.pivot.beans.BXML;
+import org.apache.pivot.beans.BXMLSerializer;
+import org.apache.pivot.beans.Bindable;
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.serialization.SerializationException;
+import org.apache.pivot.util.Resources;
+import org.apache.pivot.wtk.Button;
+import org.apache.pivot.wtk.ButtonPressListener;
+import org.apache.pivot.wtk.Dialog;
+import org.apache.pivot.wtk.PushButton;
+
+public class TestDialog extends Dialog implements Bindable {
+
+ private static final String DIALOG_MARKUP_FILE = "/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml";
+
+ @BXML
+ private PushButton okButton;
+
+ public static TestDialog create() {
+ System.out.println("TestDialog create()");
+ TestDialog dialog = null;
+ try {
+ BXMLSerializer bxmlSerializer = new BXMLSerializer();
+ dialog = (TestDialog) bxmlSerializer.readObject(TestDialog.class, DIALOG_MARKUP_FILE);
+ } catch (IOException e) {
+ e.printStackTrace();
+ } catch (SerializationException e) {
+ e.printStackTrace();
+ }
+ return dialog;
+ }
+
+ public void initialize(Map<String, Object> namespace, URL location, Resources resources) {
+ System.out.println("TestDialog initialize(...)");
+
+ this.okButton.getButtonPressListeners().add(new ButtonPressListener() {
+ public void buttonPressed(Button button) {
+ TestDialog.this.close(true);
+ }
+ });
+
+ }
+
+}
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/TestDialog.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/leak_test_window.bxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/leak_test_window.bxml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml Tue Jul 31 20:12:03 2012
@@ -1,50 +1,50 @@
-<?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.
--->
-
-<gui:TestDialog
- title="Click Ok" modal="true"
- icon="/org/apache/pivot/wtk/skin/terra/message_type-error-16x16.png"
- xmlns:bxml="http://pivot.apache.org/bxml"
- xmlns:content="org.apache.pivot.wtk.content"
- xmlns:gui="org.apache.pivot.tests.issues.pivot861"
- xmlns="org.apache.pivot.wtk"
->
-
- <TablePane>
- <columns>
- <TablePane.Column width="1*" />
- </columns>
-
- <TablePane.Row height="1*">
- <Border styles="{padding:10}">
- <BoxPane orientation="vertical" styles="{fill:true}" preferredWidth="150">
- <Label text="Click ok" styles="{wrapText:true,font:{size:14}}"/>
- </BoxPane>
- </Border>
- </TablePane.Row>
-
- <TablePane.Row height="-1">
- <FlowPane styles="{alignment:'center', padding:{top:5}}">
- <PushButton bxml:id="okButton" styles="{padding:{top:3, bottom:3},minimumAspectRatio:3}">
- <content:ButtonData text="Ok"/>
- </PushButton>
- </FlowPane>
- </TablePane.Row>
- </TablePane>
-
-</gui:TestDialog>
+<?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.
+-->
+
+<gui:TestDialog
+ title="Click Ok" modal="true"
+ icon="/org/apache/pivot/wtk/skin/terra/message_type-error-16x16.png"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns:content="org.apache.pivot.wtk.content"
+ xmlns:gui="org.apache.pivot.tests.issues.pivot861"
+ xmlns="org.apache.pivot.wtk"
+>
+
+ <TablePane>
+ <columns>
+ <TablePane.Column width="1*" />
+ </columns>
+
+ <TablePane.Row height="1*">
+ <Border styles="{padding:10}">
+ <BoxPane orientation="vertical" styles="{fill:true}" preferredWidth="150">
+ <Label text="Click ok" styles="{wrapText:true,font:{size:14}}"/>
+ </BoxPane>
+ </Border>
+ </TablePane.Row>
+
+ <TablePane.Row height="-1">
+ <FlowPane styles="{alignment:'center', padding:{top:5}}">
+ <PushButton bxml:id="okButton" styles="{padding:{top:3, bottom:3},minimumAspectRatio:3}">
+ <content:ButtonData text="Ok"/>
+ </PushButton>
+ </FlowPane>
+ </TablePane.Row>
+ </TablePane>
+
+</gui:TestDialog>
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot861/test_dialog.bxml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_843.bxml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_843.bxml?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_843.bxml (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_843.bxml Tue Jul 31 20:12:03 2012
@@ -1,109 +1,109 @@
-<?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-843 Test" maximized="true"
- bxml:id="window"
- xmlns:bxml="http://pivot.apache.org/bxml"
- xmlns="org.apache.pivot.wtk">
- <bxml:script src="../clipboard.js"/>
-
- <windowStateListeners>
- <![CDATA[
- function windowOpened(window) {
- sourceImageButtonGroup.setSelection(sourceImageButton1);
- sourceImageButton1.requestFocus();
- }
- ]]>
- </windowStateListeners>
-
- <TablePane styles="{horizontalSpacing:4, verticalSpacing:4}">
- <columns>
- <TablePane.Column width="1*"/>
- <TablePane.Column width="1*"/>
- </columns>
-
- <TablePane.Row height="1*">
- <Border styles="{padding:2}">
- <CardPane bxml:id="sourceImageCardPane" styles="{padding:4}">
- <ImageView image="/org/apache/pivot/tests/IMG_0725_2.jpg"/>
- <ImageView image="/org/apache/pivot/tests/palette.png"/>
- <ImageView image="/org/apache/pivot/tests/issues/pivot_843_test.dib"/>
- </CardPane>
- </Border>
- <Border styles="{padding:2}">
- <CardPane selectedIndex="0" styles="{padding:4}">
- <ImageView bxml:id="destinationImageView"/>
- </CardPane>
- </Border>
- </TablePane.Row>
-
- <TablePane.Row height="-1">
- <BoxPane orientation="vertical" styles="{fill:true}">
- <BoxPane bxml:id="sourceImageButtonBoxPane"
- styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
- <bxml:define>
- <ButtonGroup bxml:id="sourceImageButtonGroup">
- <buttonGroupListeners>
- <![CDATA[
- function selectionChanged(buttonGroup, previousSelection) {
- var selection = buttonGroup.getSelection();
-
- if (selection != null) {
- var index = sourceImageButtonBoxPane.indexOf(selection);
- sourceImageCardPane.setSelectedIndex(index);
- }
- }
- ]]>
- </buttonGroupListeners>
- </ButtonGroup>
- </bxml:define>
-
- <PushButton bxml:id="sourceImageButton1"
- buttonData="IMG_0725_2.jpg" toggleButton="true"
- buttonGroup="$sourceImageButtonGroup"
- tooltipText="Good Image"
- />
- <PushButton bxml:id="sourceImageButton2"
- buttonData="palette.png" toggleButton="true"
- buttonGroup="$sourceImageButtonGroup"
- tooltipText="palette.png"
- />
- <PushButton bxml:id="sourceImageButton3"
- buttonData="pivot_843_test.dib" toggleButton="true"
- buttonGroup="$sourceImageButtonGroup"
- tooltipText="Sample Image with problems after Paste"
- />
- </BoxPane>
-
- <BoxPane styles="{horizontalAlignment:'center'}">
- <PushButton bxml:id="copyButton" buttonData="Copy"
- ButtonPressListener.buttonPressed="copy()"
- tooltipText="Copy the selected image in memory"
- />
- </BoxPane>
- </BoxPane>
-
- <BoxPane styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
- <PushButton bxml:id="pasteButton" buttonData="Paste"
- ButtonPressListener.buttonPressed="paste()"
- tooltipText="Paste an image from memory (could be from outside this application)"
- />
- </BoxPane>
- </TablePane.Row>
- </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="Pivot-843 Test" maximized="true"
+ bxml:id="window"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns="org.apache.pivot.wtk">
+ <bxml:script src="../clipboard.js"/>
+
+ <windowStateListeners>
+ <![CDATA[
+ function windowOpened(window) {
+ sourceImageButtonGroup.setSelection(sourceImageButton1);
+ sourceImageButton1.requestFocus();
+ }
+ ]]>
+ </windowStateListeners>
+
+ <TablePane styles="{horizontalSpacing:4, verticalSpacing:4}">
+ <columns>
+ <TablePane.Column width="1*"/>
+ <TablePane.Column width="1*"/>
+ </columns>
+
+ <TablePane.Row height="1*">
+ <Border styles="{padding:2}">
+ <CardPane bxml:id="sourceImageCardPane" styles="{padding:4}">
+ <ImageView image="/org/apache/pivot/tests/IMG_0725_2.jpg"/>
+ <ImageView image="/org/apache/pivot/tests/palette.png"/>
+ <ImageView image="/org/apache/pivot/tests/issues/pivot_843_test.dib"/>
+ </CardPane>
+ </Border>
+ <Border styles="{padding:2}">
+ <CardPane selectedIndex="0" styles="{padding:4}">
+ <ImageView bxml:id="destinationImageView"/>
+ </CardPane>
+ </Border>
+ </TablePane.Row>
+
+ <TablePane.Row height="-1">
+ <BoxPane orientation="vertical" styles="{fill:true}">
+ <BoxPane bxml:id="sourceImageButtonBoxPane"
+ styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
+ <bxml:define>
+ <ButtonGroup bxml:id="sourceImageButtonGroup">
+ <buttonGroupListeners>
+ <![CDATA[
+ function selectionChanged(buttonGroup, previousSelection) {
+ var selection = buttonGroup.getSelection();
+
+ if (selection != null) {
+ var index = sourceImageButtonBoxPane.indexOf(selection);
+ sourceImageCardPane.setSelectedIndex(index);
+ }
+ }
+ ]]>
+ </buttonGroupListeners>
+ </ButtonGroup>
+ </bxml:define>
+
+ <PushButton bxml:id="sourceImageButton1"
+ buttonData="IMG_0725_2.jpg" toggleButton="true"
+ buttonGroup="$sourceImageButtonGroup"
+ tooltipText="Good Image"
+ />
+ <PushButton bxml:id="sourceImageButton2"
+ buttonData="palette.png" toggleButton="true"
+ buttonGroup="$sourceImageButtonGroup"
+ tooltipText="palette.png"
+ />
+ <PushButton bxml:id="sourceImageButton3"
+ buttonData="pivot_843_test.dib" toggleButton="true"
+ buttonGroup="$sourceImageButtonGroup"
+ tooltipText="Sample Image with problems after Paste"
+ />
+ </BoxPane>
+
+ <BoxPane styles="{horizontalAlignment:'center'}">
+ <PushButton bxml:id="copyButton" buttonData="Copy"
+ ButtonPressListener.buttonPressed="copy()"
+ tooltipText="Copy the selected image in memory"
+ />
+ </BoxPane>
+ </BoxPane>
+
+ <BoxPane styles="{horizontalAlignment:'center', verticalAlignment:'center'}">
+ <PushButton bxml:id="pasteButton" buttonData="Paste"
+ ButtonPressListener.buttonPressed="paste()"
+ tooltipText="Paste an image from memory (could be from outside this application)"
+ />
+ </BoxPane>
+ </TablePane.Row>
+ </TablePane>
+</Window>
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_843.bxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_843.bxml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_862.bxml
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_862.bxml?rev=1367739&r1=1367738&r2=1367739&view=diff
==============================================================================
--- pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_862.bxml (original)
+++ pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_862.bxml Tue Jul 31 20:12:03 2012
@@ -1,71 +1,71 @@
-<?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-862" maximized="true"
- xmlns:bxml="http://pivot.apache.org/bxml"
- xmlns="org.apache.pivot.wtk"
->
- <Border styles="{padding:6}">
- <TablePane>
- <columns>
- <TablePane.Column width="1*"/>
- </columns>
- <TablePane.Row height="-1">
- <FlowPane styles="{padding:2, alignToBaseline:true}">
- <Label text="1 - "/>
- <Label text="Select a folder:"/>
- <Label text=" "/>
- <PushButton bxml:id="selectFolderButton" buttonData="Open Folder"/>
- <Label text=" "/>
- <TextArea editable="false" preferredWidth="400" styles="{}"
- text="Note: for this test you have to select a folder, and in a different disk than C: (in a Windows environment)"
- />
- </FlowPane>
- </TablePane.Row>
- <TablePane.Row height="-1">
- <Label text=" "/> <!-- spacer -->
- </TablePane.Row>
- <TablePane.Row height="-1">
- <FlowPane styles="{padding:2, alignToBaseline:true}">
- <Label text="2 - "/>
- <Label text="Open the File Browser:"/>
- <Label text=" "/>
- <PushButton bxml:id="openFileButton" buttonData="Open File" enabled="false"/>
- <Label text=" "/>
- <TextArea editable="false" preferredWidth="400" styles="{}"
- text="Note: this File Browser has as root folder the previous selected folder"
- />
- </FlowPane>
- </TablePane.Row>
- <TablePane.Row height="-1">
- <Label text=" "/> <!-- spacer -->
- </TablePane.Row>
- <TablePane.Row height="-1">
- <FlowPane styles="{padding:2, alignToBaseline:true}">
- <Label text="3 - "/>
- <TextArea editable="false" preferredWidth="500" styles="{}"
- text="For this Test to be successful, the File Browser (in row 2) should start from the selected folder (in point 1)"
- />
- </FlowPane>
- </TablePane.Row>
- <TablePane.Row height="-1">
- <Label text=" "/> <!-- spacer -->
- </TablePane.Row>
- </TablePane>
- </Border>
-</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-862" maximized="true"
+ xmlns:bxml="http://pivot.apache.org/bxml"
+ xmlns="org.apache.pivot.wtk"
+>
+ <Border styles="{padding:6}">
+ <TablePane>
+ <columns>
+ <TablePane.Column width="1*"/>
+ </columns>
+ <TablePane.Row height="-1">
+ <FlowPane styles="{padding:2, alignToBaseline:true}">
+ <Label text="1 - "/>
+ <Label text="Select a folder:"/>
+ <Label text=" "/>
+ <PushButton bxml:id="selectFolderButton" buttonData="Open Folder"/>
+ <Label text=" "/>
+ <TextArea editable="false" preferredWidth="400" styles="{}"
+ text="Note: for this test you have to select a folder, and in a different disk than C: (in a Windows environment)"
+ />
+ </FlowPane>
+ </TablePane.Row>
+ <TablePane.Row height="-1">
+ <Label text=" "/> <!-- spacer -->
+ </TablePane.Row>
+ <TablePane.Row height="-1">
+ <FlowPane styles="{padding:2, alignToBaseline:true}">
+ <Label text="2 - "/>
+ <Label text="Open the File Browser:"/>
+ <Label text=" "/>
+ <PushButton bxml:id="openFileButton" buttonData="Open File" enabled="false"/>
+ <Label text=" "/>
+ <TextArea editable="false" preferredWidth="400" styles="{}"
+ text="Note: this File Browser has as root folder the previous selected folder"
+ />
+ </FlowPane>
+ </TablePane.Row>
+ <TablePane.Row height="-1">
+ <Label text=" "/> <!-- spacer -->
+ </TablePane.Row>
+ <TablePane.Row height="-1">
+ <FlowPane styles="{padding:2, alignToBaseline:true}">
+ <Label text="3 - "/>
+ <TextArea editable="false" preferredWidth="500" styles="{}"
+ text="For this Test to be successful, the File Browser (in row 2) should start from the selected folder (in point 1)"
+ />
+ </FlowPane>
+ </TablePane.Row>
+ <TablePane.Row height="-1">
+ <Label text=" "/> <!-- spacer -->
+ </TablePane.Row>
+ </TablePane>
+ </Border>
+</Window>
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_862.bxml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/issues/pivot_862.bxml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/palette.png
------------------------------------------------------------------------------
origination-name = image/png
Propchange: pivot/branches/2.0.x/tests/src/org/apache/pivot/tests/palette.png
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Tue Jul 31 20:12:03 2012
@@ -1 +1 @@
-application/octet-stream
+image/png