Repository: flex-asjs Updated Branches: refs/heads/develop e5b1ae790 -> 36f1ce4ca
add IMXMLDocument interface Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/95473095 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/95473095 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/95473095 Branch: refs/heads/develop Commit: 95473095cfda88a683a1df17dc8003487400cd73 Parents: c1bd651 Author: Alex Harui <[email protected]> Authored: Thu Oct 2 12:41:53 2014 -0700 Committer: Alex Harui <[email protected]> Committed: Thu Oct 2 12:58:44 2014 -0700 ---------------------------------------------------------------------- .../src/org/apache/flex/core/ContainerBase.as | 8 +-- .../src/org/apache/flex/core/IMXMLDocument.as | 53 ++++++++++++++++++++ 2 files changed, 58 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/95473095/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/ContainerBase.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/ContainerBase.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/ContainerBase.as index d83a601..3e14705 100644 --- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/ContainerBase.as +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/ContainerBase.as @@ -20,7 +20,8 @@ package org.apache.flex.core { import mx.states.State; - import org.apache.flex.core.ValuesManager; + import org.apache.flex.core.IMXMLDocument; + import org.apache.flex.core.ValuesManager; import org.apache.flex.events.Event; import org.apache.flex.events.ValueChangeEvent; import org.apache.flex.utils.MXMLDataInterpreter; @@ -71,7 +72,7 @@ package org.apache.flex.core * @playerversion AIR 2.6 * @productversion FlexJS 0.0 */ - public class ContainerBase extends UIBase + public class ContainerBase extends UIBase implements IMXMLDocument { /** * Constructor. @@ -204,6 +205,7 @@ package org.apache.flex.core private var _currentState:String; + [Bindable("currentStateChange")] /** * The name of the current state. * @@ -222,7 +224,7 @@ package org.apache.flex.core */ public function set currentState(value:String):void { - var event:ValueChangeEvent = new ValueChangeEvent("currentStateChanged", false, false, _currentState, value) + var event:ValueChangeEvent = new ValueChangeEvent("currentStateChange", false, false, _currentState, value) _currentState = value; dispatchEvent(event); } http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/95473095/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/IMXMLDocument.as ---------------------------------------------------------------------- diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/IMXMLDocument.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/IMXMLDocument.as new file mode 100644 index 0000000..d9e0edd --- /dev/null +++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/core/IMXMLDocument.as @@ -0,0 +1,53 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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.core +{ + /** + * The IMXMLDocument interface is an interface for a component that + * supports being written in MXML. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + public interface IMXMLDocument + { + /** + * @copy org.apache.flex.core.Application#MXMLDescriptor + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + function get MXMLDescriptor():Array; + + /** + * @copy org.apache.flex.core.Application#generateMXMLAttributes() + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion FlexJS 0.0 + */ + function generateMXMLAttributes(data:Array):void + + } +} \ No newline at end of file
