Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2C4710F24 for ; Mon, 18 Nov 2013 21:02:58 +0000 (UTC) Received: (qmail 29363 invoked by uid 500); 18 Nov 2013 21:02:57 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 29277 invoked by uid 500); 18 Nov 2013 21:02:57 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 28992 invoked by uid 99); 18 Nov 2013 21:02:56 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Nov 2013 21:02:56 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 6BB6435DE0; Mon, 18 Nov 2013 21:02:56 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Mon, 18 Nov 2013 21:03:04 -0000 Message-Id: <34345a0d06834c198c6ce7724a1ff36c@git.apache.org> In-Reply-To: <8ac04100b51c448eb9e3ca087eb86c82@git.apache.org> References: <8ac04100b51c448eb9e3ca087eb86c82@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/21] move AS code into a projects/FlexJSUI http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/mx/styles/CSSSelector.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/mx/styles/CSSSelector.as b/frameworks/as/src/mx/styles/CSSSelector.as deleted file mode 100644 index dd0ada2..0000000 --- a/frameworks/as/src/mx/styles/CSSSelector.as +++ /dev/null @@ -1,69 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 mx.styles -{ - -/** - * @private - * This class is used to satisfy old MXML codegen - * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output - * it isn't needed so there is no JS equivalent - */ -public class CSSSelector -{ - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - /** - * Constructor. - * - * @param subject The plain representation of this selector without - * conditions or ancestors. This is typically a fully-qualified class name; for example, - * "spark.components.Button". You can use "*" to match all components or "global" for a global selector. - * - * @param conditions An optional Array of objects of type CSSCondition that is used to match a - * subset of component instances. Currently only a single or a pair of - * conditions are supported. - * - * @param ancestor An optional selector to match on a component that - * descends from an arbitrary ancestor. - * - * @langversion 3.0 - * @playerversion Flash 10 - * @playerversion AIR 1.5 - * @productversion Flex 4 - */ - public function CSSSelector(subject:String, - conditions:Array=null, ancestor:CSSSelector=null) - { - } - - //-------------------------------------------------------------------------- - // - // Properties - // - //-------------------------------------------------------------------------- - -} - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/mx/styles/CSSStyleDeclaration.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/mx/styles/CSSStyleDeclaration.as b/frameworks/as/src/mx/styles/CSSStyleDeclaration.as deleted file mode 100644 index 238504f..0000000 --- a/frameworks/as/src/mx/styles/CSSStyleDeclaration.as +++ /dev/null @@ -1,191 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 mx.styles -{ - -/** - * @private - * This class is used to satisfy old MXML codegen - * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output - * it isn't needed so there is no JS equivalent - */ -public class CSSStyleDeclaration -{ - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - /** - * Constructor. - * - * @param selector - If the selector is a CSSSelector then advanced - * CSS selectors are supported. If a String is used for the selector then - * only simple CSS selectors are supported. If the String starts with a - * dot it is interpreted as a universal class selector, otherwise it must - * represent a simple type selector. If not null, this CSSStyleDeclaration - * will be registered with StyleManager. - * - * @param styleManager - The style manager to set this declaration into. If the - * styleManager is null the top-level style manager will be used. - * - * @param autoRegisterWithStyleManager - If true set the selector in the styleManager. The selector - * will only be set if both selector and styleManager are - * both non-null. - * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - public function CSSStyleDeclaration(selector:Object=null, styleManager:IStyleManager2=null, autoRegisterWithStyleManager:Boolean = true) - { - } - - /** - * This function, if it isn't null, - * is usually autogenerated by the MXML compiler. - * It produce copies of a plain Object, such as - * { leftMargin: 10, rightMargin: 10 }, - * containing name/value pairs for style properties; the object is used - * to build a node of the prototype chain for looking up style properties. - * - *

If this CSSStyleDeclaration is owned by a UIComponent - * written in MXML, this function encodes the style attributes - * that were specified on the root tag of the component definition.

- * - *

If the UIComponent was written in ActionScript, - * this property is null.

- * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - public function get defaultFactory():Function - { - return null; - } - - /** - * @private - */ - public function set defaultFactory(f:Function):void - { - } - - //---------------------------------- - // factory - //---------------------------------- - - private var _factory:Function; - - [Inspectable(environment="none")] - - /** - * This function, if it isn't null, - * is usually autogenerated by the MXML compiler. - * It produce copies of a plain Object, such as - * { leftMargin: 10, rightMargin: 10 }, - * containing name/value pairs for style properties; the object is used - * to build a node of the prototype chain for looking up style properties. - * - *

If this CSSStyleDeclaration is owned by a UIComponent, - * this function encodes the style attributes that were specified in MXML - * for an instance of that component.

- * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - public function get factory():Function - { - return _factory; - } - - /** - * @private - */ - public function set factory(f:Function):void - { - _factory = f; - } - - //---------------------------------- - // overrides - //---------------------------------- - - private var _overrides:Object; - - /** - * If the setStyle() method is called on a UIComponent or CSSStyleDeclaration - * at run time, this object stores the name/value pairs that were set; - * they override the name/value pairs in the objects produced by - * the methods specified by the defaultFactory and - * factory properties. - * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - public function get overrides():Object - { - return _overrides; - } - - /** - * @private - */ - public function set overrides(o:Object):void - { - _overrides = o; - } - - //---------------------------------- - // selector - //---------------------------------- - - private var _selector:CSSSelector; - - /** - * This property is the base selector of a potential chain of selectors - * and conditions that are used to match CSS style declarations to - * components. - * - * @langversion 3.0 - * @playerversion Flash 10 - * @playerversion AIR 1.5 - * @productversion Flex 4 - */ - public function get selector():CSSSelector - { - return _selector; - } - - public function set selector(value:CSSSelector):void - { - } -} - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/mx/styles/IStyleManager2.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/mx/styles/IStyleManager2.as b/frameworks/as/src/mx/styles/IStyleManager2.as deleted file mode 100644 index b8cb6f4..0000000 --- a/frameworks/as/src/mx/styles/IStyleManager2.as +++ /dev/null @@ -1,34 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 mx.styles -{ - -/** - * @private - * This class is used to satisfy old MXML codegen - * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output - * it isn't needed so there is no JS equivalent - */ -public interface IStyleManager2 -{ - function getStyleDeclaration(selector:String):CSSStyleDeclaration; -} - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/mx/styles/StyleManager.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/mx/styles/StyleManager.as b/frameworks/as/src/mx/styles/StyleManager.as deleted file mode 100644 index c54d9d2..0000000 --- a/frameworks/as/src/mx/styles/StyleManager.as +++ /dev/null @@ -1,50 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -/** - * @private - * This class is used to satisfy old MXML codegen - * for both Falcon and MXML, but in FlexJS with mxml.children-as-data output - * it isn't needed so there is no JS equivalent - */ -package mx.styles -{ - import mx.core.IFlexModuleFactory; - - public class StyleManager - { - /** - * Returns the style manager for an object. - * - * @param moduleFactory The module factory of an object you want the - * style manager for. If null, the top-level style manager is returned. - * - * @return the style manager for the given module factory. - * - * @langversion 3.0 - * @playerversion Flash 10 - * @playerversion AIR 1.5 - * @productversion Flex 4 - */ - public static function getStyleManager(moduleFactory:IFlexModuleFactory):IStyleManager2 - { - return null; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/binding/ConstantBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/binding/ConstantBinding.as b/frameworks/as/src/org/apache/flex/binding/ConstantBinding.as deleted file mode 100644 index bab1e7b..0000000 --- a/frameworks/as/src/org/apache/flex/binding/ConstantBinding.as +++ /dev/null @@ -1,52 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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.binding -{ - import org.apache.flex.core.IBead; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.IDocument; - - public class ConstantBinding implements IBead, IDocument - { - public function ConstantBinding() - { - } - - protected var source:Object; - protected var document:Object; - protected var destination:Object; - - public var sourceID:String; - public var sourcePropertyName:String; - public var destinationPropertyName:String; - - public function set strand(value:IStrand):void - { - destination = value; - source = document[sourceID]; - destination[destinationPropertyName] = source[sourcePropertyName]; - } - - public function setDocument(document:Object, id:String = null):void - { - this.document = document; - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/binding/GenericBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/binding/GenericBinding.as b/frameworks/as/src/org/apache/flex/binding/GenericBinding.as deleted file mode 100644 index 4cb6f5e..0000000 --- a/frameworks/as/src/org/apache/flex/binding/GenericBinding.as +++ /dev/null @@ -1,112 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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.binding -{ - import flash.events.Event; - - import org.apache.flex.core.IBead; - import org.apache.flex.core.IDocument; - import org.apache.flex.core.IStrand; - - public class GenericBinding implements IBead, IDocument - { - public function GenericBinding() - { - } - - protected var document:Object; - protected var destination:Object; - - public var source:Object; - public var destinationData:Object; - public var destinationFunction:Function; - - public function set strand(value:IStrand):void - { - destination = value; - var val:Object = getValueFromSource(); - applyValue(val); - } - - private function getValueFromSource():Object - { - if (source is Array) - { - var arr:Array = source as Array; - var n:int = arr.length; - var obj:Object = document[arr[0]]; - if (obj == null) - return null; - for (var i:int = 1; i < n; i++) - { - obj = obj[arr[i]]; - if (obj == null) - return null; - } - return obj; - } - else if (source is Function) - { - var fn:Function = source as Function; - obj = fn.apply(document); - return obj; - } - else if (source is String) - { - obj = document[source]; - return obj; - } - return null; - } - - private function applyValue(value:Object):void - { - if (destinationFunction != null) - { - destinationFunction.apply(document, [value]); - } - else if (destinationData is Array) - { - var arr:Array = destinationData as Array; - var n:int = arr.length; - var obj:Object = document[arr[0]]; - if (obj == null) - return; - for (var i:int = 1; i < n - 1; i++) - { - obj = obj[arr[i]]; - if (obj == null) - return; - } - obj[arr[n-1]] = value; - } - } - - public function setDocument(document:Object, id:String = null):void - { - this.document = document; - } - - public function valueChanged(value:Object):void - { - var val:Object = getValueFromSource(); - applyValue(val); - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/binding/PropertyWatcher.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/binding/PropertyWatcher.as b/frameworks/as/src/org/apache/flex/binding/PropertyWatcher.as deleted file mode 100644 index bde39e6..0000000 --- a/frameworks/as/src/org/apache/flex/binding/PropertyWatcher.as +++ /dev/null @@ -1,156 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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.binding -{ - import org.apache.flex.events.Event; - import org.apache.flex.events.IEventDispatcher; - import org.apache.flex.events.ValueChangeEvent; - - public class PropertyWatcher extends WatcherBase - { - public function PropertyWatcher(source:Object, propertyName:String, eventNames:Object, - getterFunction:Function) - { - this.source = source; - this.propertyName = propertyName; - this.getterFunction = getterFunction; - this.eventNames = eventNames; - - } - - public var source:Object; - public var propertyName:String; - public var eventNames:Object; - public var getterFunction:Function; - - protected function changeHandler(event:Event):void - { - if (event is ValueChangeEvent) - { - var propName:String = ValueChangeEvent(event).propertyName; - - if (propName != propertyName) - return; - } - - wrapUpdate(updateProperty); - - notifyListeners(); - - } - - //-------------------------------------------------------------------------- - // - // Overridden methods: Watcher - // - //-------------------------------------------------------------------------- - - /** - * If the parent has changed we need to update ourselves - * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - override public function parentChanged(parent:Object):void - { - if (source && source is IEventDispatcher) - removeEventListeners(); - - source = parent; - - if (source) - addEventListeners(); - - // Now get our property. - wrapUpdate(updateProperty); - } - - private function addEventListeners():void - { - if (eventNames is String) - source.addEventListener(eventNames as String, changeHandler); - else if (eventNames is Array) - { - var arr:Array = eventNames as Array; - var n:int = arr.length; - for (var i:int = 0; i < n; i++) - { - var eventName:String = eventNames[i]; - source.addEventListener(eventName, changeHandler); - } - } - } - - private function removeEventListeners():void - { - if (eventNames is String) - source.removeEventListener(eventNames as String, changeHandler); - else if (eventNames is Array) - { - var arr:Array = eventNames as Array; - var n:int = arr.length; - for (var i:int = 0; i < n; i++) - { - var eventName:String = eventNames[i]; - source.removeEventListener(eventName, changeHandler); - } - } - } - - /** - * Gets the actual property then updates - * the Watcher's children appropriately. - * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - private function updateProperty():void - { - if (source) - { - if (propertyName == "this") - { - value = source; - } - else - { - if (getterFunction != null) - { - value = getterFunction.apply(source, [ propertyName ]); - } - else - { - value = source[propertyName]; - } - } - } - else - { - value = null; - } - - updateChildren(); - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as b/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as deleted file mode 100644 index bab9378..0000000 --- a/frameworks/as/src/org/apache/flex/binding/SimpleBinding.as +++ /dev/null @@ -1,64 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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.binding -{ - import flash.events.IEventDispatcher; - import flash.events.Event; - - import org.apache.flex.core.IBead; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.IDocument; - - public class SimpleBinding implements IBead, IDocument - { - public function SimpleBinding() - { - } - - protected var source:IEventDispatcher; - protected var document:Object; - protected var destination:Object; - - public var sourceID:String; - public var sourcePropertyName:String; - public var eventName:String; - public var destinationPropertyName:String; - - public function set strand(value:IStrand):void - { - destination = value; - if (sourceID != null) - source = document[sourceID] as IEventDispatcher; - else - source = document as IEventDispatcher; - source.addEventListener(eventName, changeHandler); - destination[destinationPropertyName] = source[sourcePropertyName]; - } - - public function setDocument(document:Object, id:String = null):void - { - this.document = document; - } - - private function changeHandler(event:Event):void - { - destination[destinationPropertyName] = source[sourcePropertyName]; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/binding/WatcherBase.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/binding/WatcherBase.as b/frameworks/as/src/org/apache/flex/binding/WatcherBase.as deleted file mode 100644 index 47d4286..0000000 --- a/frameworks/as/src/org/apache/flex/binding/WatcherBase.as +++ /dev/null @@ -1,236 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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.binding -{ - - public class WatcherBase - { - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - /** - * Constructor. - * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - public function WatcherBase() - { - super(); - } - - //-------------------------------------------------------------------------- - // - // Variables - // - //-------------------------------------------------------------------------- - - /** - * @private - * The binding objects that are listening to this Watcher. - * The standard event mechanism isn't used because it's too heavyweight. - */ - protected var listeners:Array; - - /** - * @private - * Children of this watcher are watching sub values. - */ - protected var children:Array; - - /** - * @private - * The value itself. - */ - public var value:Object; - - //-------------------------------------------------------------------------- - // - // Methods - // - //-------------------------------------------------------------------------- - - /** - * @private - * This is an abstract method that subclasses implement. - */ - public function parentChanged(parent:Object):void - { - } - - /** - * @private - * Add a child to this watcher, meaning that the child - * is watching a sub value of ours. - */ - public function addChild(child:WatcherBase):void - { - if (!children) - children = [ child ]; - else - children.push(child); - - child.parentChanged(this); - } - - /** - * @private - * Add a binding to this watcher, meaning that the binding - * is notified when our value changes. - */ - public function addBinding(binding:GenericBinding):void - { - if (!listeners) - listeners = [ binding ]; - else - listeners.push(binding); - - binding.valueChanged(value); - } - - /** - * We have probably changed, so go through - * and make sure our children are updated. - * - * @langversion 3.0 - * @playerversion Flash 9 - * @playerversion AIR 1.1 - * @productversion Flex 3 - */ - public function updateChildren():void - { - if (children) - { - var n:int = children.length; - for (var i:int = 0; i < n; ++i) - { - children[i].parentChanged(this); - } - } - } - - /** - * @private - */ - private function valueChanged(oldval:Object):Boolean - { - if (oldval == null && value == null) - return false; - - var valType:String = typeof(value); - - // The first check is meant to catch the delayed instantiation case - // where a control comes into existence but its value is still - // the equivalent of not having been filled in. - // Otherwise we simply return whether the value has changed. - - if (valType == "string") - { - if (oldval == null && value == "") - return false; - else - return oldval != value; - } - - if (valType == "number") - { - if (oldval == null && value == 0) - return false; - else - return oldval != value; - } - - if (valType == "boolean") - { - if (oldval == null && value == false) - return false; - else - return oldval != value; - } - - return true; - } - - /** - * @private - */ - protected function wrapUpdate(wrappedFunction:Function):void - { - try - { - wrappedFunction.apply(this); - } - catch(error:Error) - { - var n:int = allowedErrorTypes.length; - for (var i:int = 0; i < n; i++) - { - if (error is allowedErrorTypes[i].type) - { - var handler:Function = allowedErrorTypes[i].handler; - if (handler != null) - value = handler(this, wrappedFunction); - else - value = null; - } - } - - if (allowedErrors.indexOf(error.errorID) == -1) - throw error; - } - } - - // Certain errors are normal when executing an update, so we swallow them: - public static var allowedErrors:Array = [ - 1006, // Error #1006: Call attempted on an object that is not a function. - 1009, // Error #1009: null has no properties. - 1010, // Error #1010: undefined has no properties. - 1055, // Error #1055: - has no properties. - 1069, // Error #1069: Property - not found on - and there is no default value - 1507 // Error #1507: - invalid null argument. - ]; - - public static var allowedErrorTypes:Array = [ - { type: RangeError /*, handler: function(w:WatcherBase, wrappedFunction:Function):Object { return null }*/ } - ]; - - /** - * @private - */ - public function notifyListeners():void - { - if (listeners) - { - var n:int = listeners.length; - - for (var i:int = 0; i < n; i++) - { - listeners[i].valueChanged(value); - } - } - } - } - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/Application.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/Application.as b/frameworks/as/src/org/apache/flex/core/Application.as deleted file mode 100644 index a126b6f..0000000 --- a/frameworks/as/src/org/apache/flex/core/Application.as +++ /dev/null @@ -1,167 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import flash.display.DisplayObject; - import flash.display.Sprite; - import flash.display.StageAlign; - import flash.display.StageScaleMode; - import flash.events.IOErrorEvent; - - import org.apache.flex.events.Event; - import org.apache.flex.utils.MXMLDataInterpreter; - - //-------------------------------------- - // Events - //-------------------------------------- - - /** - * Dispatched at startup. - */ - [Event(name="initialize", type="org.apache.flex.events.Event")] - - public class Application extends Sprite implements IStrand, IFlexInfo, IParent - { - public function Application() - { - super(); - if (stage) - { - stage.align = StageAlign.TOP_LEFT; - stage.scaleMode = StageScaleMode.NO_SCALE; - } - - loaderInfo.addEventListener(flash.events.Event.INIT, initHandler); - } - - private function initHandler(event:flash.events.Event):void - { - ValuesManager.valuesImpl = valuesImpl; - ValuesManager.valuesImpl.init(this); - - dispatchEvent(new Event("initialize")); - - initialView.applicationModel = model; - this.addElement(initialView); - dispatchEvent(new Event("viewChanged")); - } - - public var valuesImpl:IValuesImpl; - - public var initialView:ViewBase; - - public var model:Object; - - public var controller:Object; - - public function get MXMLDescriptor():Array - { - return null; - } - - public function generateMXMLAttributes(data:Array):void - { - MXMLDataInterpreter.generateMXMLProperties(this, data); - } - - // beads declared in MXML are added to the strand. - // from AS, just call addBead() - public var beads:Array; - - private var _beads:Vector.; - public function addBead(bead:IBead):void - { - if (!_beads) - _beads = new Vector.; - _beads.push(bead); - bead.strand = this; - } - - public function getBeadByType(classOrInterface:Class):IBead - { - for each (var bead:IBead in _beads) - { - if (bead is classOrInterface) - return bead; - } - return null; - } - - public function removeBead(value:IBead):IBead - { - var n:int = _beads.length; - for (var i:int = 0; i < n; i++) - { - var bead:IBead = _beads[i]; - if (bead == value) - { - _beads.splice(i, 1); - return bead; - } - } - return null; - } - - public function get info():Object - { - return {}; - } - - public function addElement(c:Object):void - { - if (c is IUIBase) - { - addChild(IUIBase(c).element as DisplayObject); - IUIBase(c).addedToParent(); - } - else - addChild(c as DisplayObject); - } - - public function addElementAt(c:Object, index:int):void - { - if (c is IUIBase) - { - addChildAt(IUIBase(c).element as DisplayObject, index); - IUIBase(c).addedToParent(); - } - else - addChildAt(c as DisplayObject, index); - } - - public function getElementIndex(c:Object):int - { - if (c is IUIBase) - return getChildIndex(IUIBase(c).element as DisplayObject); - - return getChildIndex(c as DisplayObject); - } - - public function removeElement(c:Object):void - { - if (c is IUIBase) - { - removeChild(IUIBase(c).element as DisplayObject); - } - else - removeChild(c as DisplayObject); - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/CSSTextField.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/CSSTextField.as b/frameworks/as/src/org/apache/flex/core/CSSTextField.as deleted file mode 100644 index ed1c87b..0000000 --- a/frameworks/as/src/org/apache/flex/core/CSSTextField.as +++ /dev/null @@ -1,59 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import flash.text.TextField; - import flash.text.TextFormat; - - import org.apache.flex.core.ValuesManager; - - public class CSSTextField extends TextField - { - public function CSSTextField() - { - super(); - } - - // if used as the display object in a button, parent is null and - // the css lookup doesn't work. This will be used if parent is - // null. - public var styleParent:Object; - - override public function set text(value:String):void - { - var sp:Object = parent; - if (!sp) - sp = styleParent; - - var tf: TextFormat = new TextFormat(); - tf.font = ValuesManager.valuesImpl.getValue(sp, "fontFamily") as String; - tf.size = ValuesManager.valuesImpl.getValue(sp, "fontSize"); - tf.bold = ValuesManager.valuesImpl.getValue(sp, "fontWeight") == "bold"; - tf.color = ValuesManager.valuesImpl.getValue(sp, "color"); - var padding:Object = ValuesManager.valuesImpl.getValue(sp, "padding"); - if (padding != null) - { - tf.leftMargin = padding; - tf.rightMargin = padding; - } - defaultTextFormat = tf; - super.text = value; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IAlertModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IAlertModel.as b/frameworks/as/src/org/apache/flex/core/IAlertModel.as deleted file mode 100644 index 03707cc..0000000 --- a/frameworks/as/src/org/apache/flex/core/IAlertModel.as +++ /dev/null @@ -1,52 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import org.apache.flex.events.IEventDispatcher; - - public interface IAlertModel extends IEventDispatcher, IBeadModel - { - function get title():String; - function set title(value:String):void; - - function get htmlTitle():String; - function set htmlTitle(value:String):void; - - function get message():String; - function set message(value:String):void; - - function get htmlMessage():String; - function set htmlMessage(value:String):void; - - function get flags():uint; - function set flags(value:uint):void; - - function get okLabel():String; - function set okLabel(value:String):void; - - function get cancelLabel():String; - function set cancelLabel(value:String):void; - - function get yesLabel():String; - function set yesLabel(value:String):void; - - function get noLabel():String; - function set noLabel(value:String):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IBead.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IBead.as b/frameworks/as/src/org/apache/flex/core/IBead.as deleted file mode 100644 index 5367708..0000000 --- a/frameworks/as/src/org/apache/flex/core/IBead.as +++ /dev/null @@ -1,25 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IBead - { - function set strand(value:IStrand):void - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IBeadController.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IBeadController.as b/frameworks/as/src/org/apache/flex/core/IBeadController.as deleted file mode 100644 index fa5a8f8..0000000 --- a/frameworks/as/src/org/apache/flex/core/IBeadController.as +++ /dev/null @@ -1,28 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - /** - * Marker interface for Controllers - */ - public interface IBeadController extends IBead - { - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IBeadLayout.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IBeadLayout.as b/frameworks/as/src/org/apache/flex/core/IBeadLayout.as deleted file mode 100644 index 662c99c..0000000 --- a/frameworks/as/src/org/apache/flex/core/IBeadLayout.as +++ /dev/null @@ -1,28 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - /** - * Marker interface for Layouts - */ - public interface IBeadLayout extends IBead - { - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IBeadModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IBeadModel.as b/frameworks/as/src/org/apache/flex/core/IBeadModel.as deleted file mode 100644 index b339984..0000000 --- a/frameworks/as/src/org/apache/flex/core/IBeadModel.as +++ /dev/null @@ -1,30 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import org.apache.flex.events.IEventDispatcher; - - /** - * Marker interface for models - */ - public interface IBeadModel extends IBead, IEventDispatcher - { - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IBeadView.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IBeadView.as b/frameworks/as/src/org/apache/flex/core/IBeadView.as deleted file mode 100644 index 57704b5..0000000 --- a/frameworks/as/src/org/apache/flex/core/IBeadView.as +++ /dev/null @@ -1,28 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - - /** - * Marker interface for Views - */ - public interface IBeadView extends IBead - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IBorderModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IBorderModel.as b/frameworks/as/src/org/apache/flex/core/IBorderModel.as deleted file mode 100644 index 334ffd8..0000000 --- a/frameworks/as/src/org/apache/flex/core/IBorderModel.as +++ /dev/null @@ -1,27 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import flash.geom.Rectangle; - - public interface IBorderModel extends IBead, IBeadModel - { - function get offsets():Rectangle; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IChrome.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IChrome.as b/frameworks/as/src/org/apache/flex/core/IChrome.as deleted file mode 100644 index c53a94d..0000000 --- a/frameworks/as/src/org/apache/flex/core/IChrome.as +++ /dev/null @@ -1,31 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - /** - * Items that implement IChrome are designating themselves as being attached - * to their parent in a way that's different from normal content. For example, - * to a Container, a child being added that's an IChrome implementor will be - * added outside of the content area. - */ - public interface IChrome - { - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IComboBoxModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IComboBoxModel.as b/frameworks/as/src/org/apache/flex/core/IComboBoxModel.as deleted file mode 100644 index f68638b..0000000 --- a/frameworks/as/src/org/apache/flex/core/IComboBoxModel.as +++ /dev/null @@ -1,40 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import org.apache.flex.events.IEventDispatcher; - - public interface IComboBoxModel extends IEventDispatcher, IBeadModel - { - function get text():String; - function set text(value:String):void; - - function get html():String; - function set html(value:String):void; - - function get dataProvider():Object; - function set dataProvider(value:Object):void; - - function get selectedIndex():int; - function set selectedIndex(value:int):void; - - function get selectedItem():Object; - function set selectedItem(value:Object):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IContainer.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IContainer.as b/frameworks/as/src/org/apache/flex/core/IContainer.as deleted file mode 100644 index 630bdbc..0000000 --- a/frameworks/as/src/org/apache/flex/core/IContainer.as +++ /dev/null @@ -1,25 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IContainer extends IParent - { - function childrenAdded():void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IDataGridModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IDataGridModel.as b/frameworks/as/src/org/apache/flex/core/IDataGridModel.as deleted file mode 100644 index 606d938..0000000 --- a/frameworks/as/src/org/apache/flex/core/IDataGridModel.as +++ /dev/null @@ -1,26 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IDataGridModel extends ISelectionModel - { - function get labelFields():Object; - function set labelFields(value:Object):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IDataGridPresentationModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IDataGridPresentationModel.as b/frameworks/as/src/org/apache/flex/core/IDataGridPresentationModel.as deleted file mode 100644 index 34a5d84..0000000 --- a/frameworks/as/src/org/apache/flex/core/IDataGridPresentationModel.as +++ /dev/null @@ -1,31 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import org.apache.flex.events.IEventDispatcher; - - public interface IDataGridPresentationModel extends IEventDispatcher, IBead - { - function get columnLabels():Array; - function set columnLabels(value:Array):void; - - function get rowHeight():Number; - function set rowHeight(value:Number):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IDocument.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IDocument.as b/frameworks/as/src/org/apache/flex/core/IDocument.as deleted file mode 100644 index 03bdce8..0000000 --- a/frameworks/as/src/org/apache/flex/core/IDocument.as +++ /dev/null @@ -1,25 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IDocument - { - function setDocument(document:Object, id:String = null):void - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IFlexInfo.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IFlexInfo.as b/frameworks/as/src/org/apache/flex/core/IFlexInfo.as deleted file mode 100644 index 0bd8357..0000000 --- a/frameworks/as/src/org/apache/flex/core/IFlexInfo.as +++ /dev/null @@ -1,29 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - /** - * An object of various properties and values that are not otherwise - * linked in by hard class references, like styles, rsls, mixins. - */ - public interface IFlexInfo - { - function get info():Object - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IImageModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IImageModel.as b/frameworks/as/src/org/apache/flex/core/IImageModel.as deleted file mode 100644 index dc924eb..0000000 --- a/frameworks/as/src/org/apache/flex/core/IImageModel.as +++ /dev/null @@ -1,28 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import org.apache.flex.events.IEventDispatcher; - - public interface IImageModel extends IEventDispatcher, IBeadModel - { - function get source():String; - function set source(value:String):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IItemRenderer.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IItemRenderer.as b/frameworks/as/src/org/apache/flex/core/IItemRenderer.as deleted file mode 100644 index 5f7f685..0000000 --- a/frameworks/as/src/org/apache/flex/core/IItemRenderer.as +++ /dev/null @@ -1,40 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import org.apache.flex.events.IEventDispatcher; - - public interface IItemRenderer extends IEventDispatcher - { - function get data():Object; - function set data(value:Object):void; - - function get index():int; - function set index(value:int):void; - - function get selected():Boolean; - function set selected(value:Boolean):void; - - function get hovered():Boolean; - function set hovered(value:Boolean):void; - - function get down():Boolean; - function set down(value:Boolean):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IItemRendererClassFactory.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IItemRendererClassFactory.as b/frameworks/as/src/org/apache/flex/core/IItemRendererClassFactory.as deleted file mode 100644 index 5f8c751..0000000 --- a/frameworks/as/src/org/apache/flex/core/IItemRendererClassFactory.as +++ /dev/null @@ -1,25 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IItemRendererClassFactory extends IBead - { - function createItemRenderer(parent:IItemRendererParent):IItemRenderer; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IItemRendererParent.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IItemRendererParent.as b/frameworks/as/src/org/apache/flex/core/IItemRendererParent.as deleted file mode 100644 index 0095b2e..0000000 --- a/frameworks/as/src/org/apache/flex/core/IItemRendererParent.as +++ /dev/null @@ -1,29 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import flash.display.DisplayObject; - import org.apache.flex.events.IEventDispatcher; - - public interface IItemRendererParent extends IParent, IEventDispatcher - { - function getItemRendererForIndex(index:int):IItemRenderer; - function removeAllElements():void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/ILayoutParent.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/ILayoutParent.as b/frameworks/as/src/org/apache/flex/core/ILayoutParent.as deleted file mode 100644 index 3604b37..0000000 --- a/frameworks/as/src/org/apache/flex/core/ILayoutParent.as +++ /dev/null @@ -1,38 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - import flash.display.DisplayObject; - import flash.display.DisplayObjectContainer; - - import org.apache.flex.html.staticControls.supportClasses.Border; - import org.apache.flex.html.staticControls.supportClasses.ScrollBar; - - public interface ILayoutParent - { - function get contentView():DisplayObjectContainer; - - function get border():Border; - - function get vScrollBar():ScrollBar; - function get hScrollBar():ScrollBar; - - function get resizableView():DisplayObject; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IMeasurementBead.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IMeasurementBead.as b/frameworks/as/src/org/apache/flex/core/IMeasurementBead.as deleted file mode 100644 index 3e294f4..0000000 --- a/frameworks/as/src/org/apache/flex/core/IMeasurementBead.as +++ /dev/null @@ -1,26 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IMeasurementBead extends IBead - { - function get measuredWidth():Number; - function get measuredHeight():Number; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IPanelModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IPanelModel.as b/frameworks/as/src/org/apache/flex/core/IPanelModel.as deleted file mode 100644 index 24fac27..0000000 --- a/frameworks/as/src/org/apache/flex/core/IPanelModel.as +++ /dev/null @@ -1,25 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IPanelModel extends IBeadModel, ITitleBarModel - { - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IParent.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IParent.as b/frameworks/as/src/org/apache/flex/core/IParent.as deleted file mode 100755 index 111c925..0000000 --- a/frameworks/as/src/org/apache/flex/core/IParent.as +++ /dev/null @@ -1,28 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IParent - { - function addElement(c:Object):void; - function addElementAt(c:Object, index:int):void; - function getElementIndex(c:Object):int; - function removeElement(c:Object):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IPopUp.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IPopUp.as b/frameworks/as/src/org/apache/flex/core/IPopUp.as deleted file mode 100644 index 4658554..0000000 --- a/frameworks/as/src/org/apache/flex/core/IPopUp.as +++ /dev/null @@ -1,25 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - // marker interface to differentiate popups from other objects - public interface IPopUp - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IPopUpHost.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IPopUpHost.as b/frameworks/as/src/org/apache/flex/core/IPopUpHost.as deleted file mode 100755 index fc8a89a..0000000 --- a/frameworks/as/src/org/apache/flex/core/IPopUpHost.as +++ /dev/null @@ -1,24 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IPopUpHost extends IParent - { - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66246d8a/frameworks/as/src/org/apache/flex/core/IRangeModel.as ---------------------------------------------------------------------- diff --git a/frameworks/as/src/org/apache/flex/core/IRangeModel.as b/frameworks/as/src/org/apache/flex/core/IRangeModel.as deleted file mode 100644 index 62e886d..0000000 --- a/frameworks/as/src/org/apache/flex/core/IRangeModel.as +++ /dev/null @@ -1,38 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 -{ - public interface IRangeModel extends IBeadModel - { - function get maximum():Number; - function set maximum(value:Number):void; - - function get minimum():Number; - function set minimum(value:Number):void; - - function get snapInterval():Number; - function set snapInterval(value:Number):void; - - function get stepSize():Number; - function set stepSize(value:Number):void; - - function get value():Number; - function set value(value:Number):void; -} -} \ No newline at end of file