flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [3/6] git commit: [flex-asjs] [refs/heads/develop] - add single value event
Date Sat, 24 May 2014 15:42:38 GMT
add single value event


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

Branch: refs/heads/develop
Commit: 29a0fe6f669253ad41eaf80376aede318507ff03
Parents: 086d363
Author: Alex Harui <aharui@apache.org>
Authored: Sat May 24 08:37:48 2014 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Sat May 24 08:37:48 2014 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/events/ValueEvent.as    | 59 +++++++++++++++++
 .../src/org/apache/flex/events/ValueEvent.js    | 69 ++++++++++++++++++++
 2 files changed, 128 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/29a0fe6f/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/ValueEvent.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/ValueEvent.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/ValueEvent.as
new file mode 100644
index 0000000..c4d11c2
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/events/ValueEvent.as
@@ -0,0 +1,59 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.events
+{
+    
+    /**
+     *  The ValueEvent class is used for dispatching an event
+	 *  that has one useful value
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */
+	public class ValueEvent extends Event
+	{
+        /**
+         *  Constructor.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public function ValueEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false,

+										 value:Object = null)
+		{
+			super(type, bubbles, cancelable);
+			this.value = value;
+		}
+		
+        /**
+         *  The value.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public var value:Object;
+
+	}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/29a0fe6f/frameworks/js/FlexJS/src/org/apache/flex/events/ValueEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/ValueEvent.js b/frameworks/js/FlexJS/src/org/apache/flex/events/ValueEvent.js
new file mode 100644
index 0000000..7c721f1
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/ValueEvent.js
@@ -0,0 +1,69 @@
+/**
+ * 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.
+ */
+
+goog.provide('org.apache.flex.events.ValueEvent');
+
+goog.require('goog.events.Event');
+
+
+
+/**
+ * @constructor
+ * @extends {goog.events.Event}
+ * @param {string} type The event type.
+ * @param {*} v The value.
+ */
+org.apache.flex.events.ValueEvent = function(type, v) {
+  goog.base(this, type);
+
+  this.type = type;
+  this.value = v;
+};
+goog.inherits(org.apache.flex.events.ValueEvent,
+    goog.events.Event);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org.apache.flex.events.ValueEvent.prototype.FLEXJS_CLASS_INFO =
+    { names: [{ name: 'ValueEvent',
+                qName: 'org.apache.flex.events.ValueEvent' }] };
+
+
+/**
+ * @expose
+ * @param {string} type The event type.
+ */
+org.apache.flex.events.ValueEvent.prototype.init = function(type) {
+  this.type = type;
+};
+
+
+/**
+ * @expose
+ * @type {string} type The event type.
+ */
+org.apache.flex.events.ValueEvent.prototype.type = '';
+
+
+/**
+ * @expose
+ * @type {*} value The old value.
+ */
+org.apache.flex.events.ValueEvent.prototype.value = null;
+
+


Mime
View raw message