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 2014/12/09 06:17:08 UTC

[21/31] git commit: [flex-asjs] [refs/heads/develop] - add states and transitions

add states and transitions


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

Branch: refs/heads/develop
Commit: c960c42e03ac71879da272574bd2248f4b7abc0b
Parents: 9de33e2
Author: Alex Harui <ah...@apache.org>
Authored: Mon Dec 8 17:33:13 2014 -0800
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Dec 8 20:47:44 2014 -0800

----------------------------------------------------------------------
 .../src/org/apache/flex/core/ContainerBase.js   | 73 ++++++++++++++++++++
 1 file changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c960c42e/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
index 16bbfcf..643cd29 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/core/ContainerBase.js
@@ -32,6 +32,25 @@ org.apache.flex.core.ContainerBase = function() {
    */
   this.initialized_ = false;
 
+  /**
+   * @private
+   * @type {Array}
+   */
+  this.states_ = null;
+
+  /**
+   * @private
+   * @type {Array}
+   */
+  this.transitions_ = null;
+
+  /**
+   * @private
+   * @type {?String}
+   */
+  this.currentState_ = null;
+
+
   this.document = this;
 
 };
@@ -117,3 +136,57 @@ org.apache.flex.core.ContainerBase.prototype.setMXMLDescriptor =
 };
 
 
+/**
+ * @expose
+ * @return {Array} An array of states.
+ */
+org.apache.flex.core.ContainerBase.prototype.get_states = function() {
+  return this.states_;
+};
+
+
+/**
+ * @expose
+ * @param {Array} s An array of states.
+ */
+org.apache.flex.core.ContainerBase.prototype.set_states = function(s) {
+  this.states_ = s;
+};
+
+
+/**
+ * @expose
+ * @return {String} The current state.
+ */
+org.apache.flex.core.ContainerBase.prototype.get_currentState = function() {
+  return this.currentState_;
+};
+
+
+/**
+ * @expose
+ * @param {String} s The current state.
+ */
+org.apache.flex.core.ContainerBase.prototype.set_currentState = function(s) {
+  this.currentState_ = s;
+};
+
+
+/**
+ * @expose
+ * @return {Array} An array of states.
+ */
+org.apache.flex.core.ContainerBase.prototype.get_transitions = function() {
+  return this.transitions_;
+};
+
+
+/**
+ * @expose
+ * @param {Array} s An array of states.
+ */
+org.apache.flex.core.ContainerBase.prototype.set_transitions = function(s) {
+  this.transitions_ = s;
+};
+
+