You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/05/11 02:09:59 UTC

git commit: [flex-asjs] [refs/heads/develop] - Add wrapper class for JQuery apps so we can someday try to inject the JQuery files automatically.

Updated Branches:
  refs/heads/develop b0367dde8 -> f26ed418b


Add wrapper class for JQuery apps so we can someday try to inject the JQuery files automatically.


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f26ed418
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f26ed418
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f26ed418

Branch: refs/heads/develop
Commit: f26ed418bbe39fc5d6d4150bb5cce0220330b6bb
Parents: b0367dd
Author: Alex Harui <ah...@apache.org>
Authored: Fri May 10 17:09:41 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Fri May 10 17:09:41 2013 -0700

----------------------------------------------------------------------
 examples/FlexJSTest_jquery/src/jQuerySample.mxml   |   24 ++++----
 frameworks/as/jquery-manifest.xml                  |    1 +
 .../as/src/org/apache/flex/jquery/Application.as   |   30 +++++++++++
 .../src/org/apache/flex/jquery/Application.js      |   40 +++++++++++++++
 4 files changed, 83 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f26ed418/examples/FlexJSTest_jquery/src/jQuerySample.mxml
----------------------------------------------------------------------
diff --git a/examples/FlexJSTest_jquery/src/jQuerySample.mxml b/examples/FlexJSTest_jquery/src/jQuerySample.mxml
index 100e24b..87718ec 100644
--- a/examples/FlexJSTest_jquery/src/jQuerySample.mxml
+++ b/examples/FlexJSTest_jquery/src/jQuerySample.mxml
@@ -18,7 +18,7 @@
 //
 ////////////////////////////////////////////////////////////////////////////////
 -->
-<basic:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+<jquery:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
 				   xmlns:local="*"
 				   xmlns:basic="library://ns.apache.org/flexjs/basic"
 				   xmlns:jquery="library://ns.apache.org/flexjs/jquery"
@@ -36,19 +36,19 @@
 	-->
 	
 	
-	<basic:valuesImpl>
+	<jquery:valuesImpl>
 		<basic:SimpleCSSValuesImpl />
-	</basic:valuesImpl>
-	<basic:initialView>
+	</jquery:valuesImpl>
+	<jquery:initialView>
 		<local:MyInitialView />
-	</basic:initialView>
-	<basic:model>
+	</jquery:initialView>
+	<jquery:model>
 		<models:MyModel />
-	</basic:model>
-	<basic:controller>
+	</jquery:model>
+	<jquery:controller>
 		<controllers:MyController />
-	</basic:controller>
-	<basic:beads>
+	</jquery:controller>
+	<jquery:beads>
 		<basic:HTTPService id="service">
 			<basic:LazyCollection id="collection">
 				<basic:inputParser>
@@ -59,6 +59,6 @@
 				</basic:itemConverter> 
 			</basic:LazyCollection>
 		</basic:HTTPService>
-	</basic:beads>
+	</jquery:beads>
 	
-</basic:Application>
\ No newline at end of file
+</jquery:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f26ed418/frameworks/as/jquery-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/as/jquery-manifest.xml b/frameworks/as/jquery-manifest.xml
index d760aff..cdb9dd5 100644
--- a/frameworks/as/jquery-manifest.xml
+++ b/frameworks/as/jquery-manifest.xml
@@ -21,6 +21,7 @@
 
 <componentPackage>
 
+    <component id="Application" class="org.apache.flex.jquery.Application"/>
     <component id="TextButton" class="org.apache.flex.jquery.staticControls.TextButton"/>
     <component id="CheckBox" class="org.apache.flex.jquery.staticControls.CheckBox"/>
     <component id="RadioButton" class="org.apache.flex.jquery.staticControls.RadioButton"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f26ed418/frameworks/as/src/org/apache/flex/jquery/Application.as
----------------------------------------------------------------------
diff --git a/frameworks/as/src/org/apache/flex/jquery/Application.as b/frameworks/as/src/org/apache/flex/jquery/Application.as
new file mode 100644
index 0000000..aec704f
--- /dev/null
+++ b/frameworks/as/src/org/apache/flex/jquery/Application.as
@@ -0,0 +1,30 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.flex.jquery
+{
+    import org.apache.flex.core.Application;
+	
+	public class Application extends org.apache.flex.core.Application
+	{
+		public function Application()
+		{
+			super();
+		}
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f26ed418/frameworks/js/FlexJS/src/org/apache/flex/jquery/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/Application.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/Application.js
new file mode 100644
index 0000000..c2cacc3
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/Application.js
@@ -0,0 +1,40 @@
+/**
+ * Licensed 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.
+ */
+
+// ------------------------------------------------------------------
+// jquery
+// ------------------------------------------------------------------
+
+// <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" />
+//	<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
+//	<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
+
+// ------------------------------------------------------------------
+// end jquery
+// ------------------------------------------------------------------
+
+goog.provide('org.apache.flex.jquery.Application');
+
+goog.require('org.apache.flex.core.Application');
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.Application}
+ */
+org.apache.flex.jquery.Application = function() {
+    goog.base(this);
+};
+goog.inherits(org.apache.flex.jquery.Application,
+    org.apache.flex.core.Application);
+