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/09/25 18:03:46 UTC
[04/50] git commit: [flex-asjs] [refs/heads/develop] - get
MXMLBeadViewBase up and running. Allows Views to be specified in MXML
get MXMLBeadViewBase up and running. Allows Views to be specified in MXML
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/b3795669
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/b3795669
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/b3795669
Branch: refs/heads/develop
Commit: b37956695ffeca1be3ba3b3eb4e5354d93416b95
Parents: fea0a05
Author: Alex Harui <ah...@apache.org>
Authored: Mon Sep 15 13:37:02 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 23 14:49:40 2014 -0700
----------------------------------------------------------------------
.../org/apache/flex/core/MXMLBeadViewBase.as | 45 ++++++++++++++++----
1 file changed, 37 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/b3795669/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/MXMLBeadViewBase.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/MXMLBeadViewBase.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/MXMLBeadViewBase.as
index 7e3ec39..7d45d57 100644
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/MXMLBeadViewBase.as
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/MXMLBeadViewBase.as
@@ -18,14 +18,17 @@
////////////////////////////////////////////////////////////////////////////////
package org.apache.flex.core
{
+ import flash.display.DisplayObject;
+ import flash.display.DisplayObjectContainer;
+
import mx.states.State;
import org.apache.flex.core.IBead;
import org.apache.flex.core.IStrand;
- import org.apache.flex.core.ValuesManager;
- import org.apache.flex.events.Event;
- import org.apache.flex.events.ValueChangeEvent;
- import org.apache.flex.utils.MXMLDataInterpreter;
+ import org.apache.flex.core.ValuesManager;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.ValueChangeEvent;
+ import org.apache.flex.utils.MXMLDataInterpreter;
[DefaultProperty("mxmlContent")]
@@ -66,12 +69,12 @@ package org.apache.flex.core
*/
override public function set strand(value:IStrand):void
{
+ super.strand = value;
// each MXML file can also have styles in fx:Style block
ValuesManager.valuesImpl.init(this);
MXMLDataInterpreter.generateMXMLProperties(this, mxmlProperties);
- super.strand = value;
dispatchEvent(new Event("strandChanged"));
MXMLDataInterpreter.generateMXMLInstances(this, IParent(value), MXMLDescriptor);
@@ -83,7 +86,7 @@ package org.apache.flex.core
* @private
* Needed for databinding expressions
*/
- protected function get strand():IStrand
+ public function get strand():IStrand
{
return _strand;
}
@@ -92,7 +95,7 @@ package org.apache.flex.core
/**
* The model object.
*/
- protected function get model():Object
+ public function get model():Object
{
return _strand["model"];
}
@@ -310,5 +313,31 @@ package org.apache.flex.core
return null;
}
- }
+ /**
+ * The parent of the children.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get contentView():DisplayObjectContainer
+ {
+ return _strand as DisplayObjectContainer;
+ }
+
+ /**
+ * The host component, which can resize to different slots.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get resizableView():DisplayObject
+ {
+ return _strand as DisplayObject;
+ }
+
+ }
}
\ No newline at end of file