http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as deleted file mode 100644 index 4d90c03..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/GraphicsItemRenderer.as +++ /dev/null @@ -1,295 +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.html.supportClasses -{ - import org.apache.flex.core.ISelectableItemRenderer; - import org.apache.flex.core.ValuesManager; - import org.apache.flex.core.graphics.GraphicsContainer; - import org.apache.flex.events.Event; - import org.apache.flex.utils.MXMLDataInterpreter; - - /** - * The GraphicsItemRenderer provides a base class for itemRenderers that use graphics rather than - * components. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class GraphicsItemRenderer extends GraphicsContainer implements ISelectableItemRenderer - { - /** - * Constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function GraphicsItemRenderer() - { - super(); - } - - /** - * @private - */ - override public function addedToParent():void - { - super.addedToParent(); - - // very common for item renderers to be resized by their containers, - addEventListener("widthChanged", sizeChangeHandler); - addEventListener("heightChanged", sizeChangeHandler); - - // each MXML file can also have styles in fx:Style block - ValuesManager.valuesImpl.init(this); - - MXMLDataInterpreter.generateMXMLProperties(this, mxmlProperties); - MXMLDataInterpreter.generateMXMLInstances(this, this, MXMLDescriptor); - - dispatchEvent(new Event("initBindings")); - dispatchEvent(new Event("initComplete")); - - } - - private var _labelField:String = "label"; - - /** - * The name of the field within the data to use as a label. Some itemRenderers use this field to - * identify the value they should show while other itemRenderers ignore this if they are showing - * complex information. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get labelField():String - { - return _labelField; - } - public function set labelField(value:String):void - { - _labelField = value; - } - - private var _index:int; - - /** - * The position with the dataProvider being shown by the itemRenderer instance. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get index():int - { - return _index; - } - public function set index(value:int):void - { - _index = value; - } - - private var _selected:Boolean; - - /** - * Whether or not the itemRenderer is in a selected state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get selected():Boolean - { - return _selected; - } - public function set selected(value:Boolean):void - { - _selected = value; - updateRenderer(); - } - - private var _hovered:Boolean; - - /** - * Whether or not the itemRenderer is in a hovered state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get hovered():Boolean - { - return _hovered; - } - public function set hovered(value:Boolean):void - { - _hovered = value; - updateRenderer(); - } - - private var _down:Boolean; - - /** - * Whether or not the itemRenderer is in a down (or pre-selected) state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get down():Boolean - { - return _down; - } - public function set down(value:Boolean):void - { - _down = value; - updateRenderer(); - } - - private var _data:Object; - - [Bindable("__NoChangeEvent__")] - /** - * The data being represented by this itemRenderer. This can be something simple like a String or - * a Number or something very complex. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get data():Object - { - return _data; - } - public function set data(value:Object):void - { - _data = value; - } - - private var _dataField:String; - - /** - * The name of the field within the data the itemRenderer should use. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get dataField():String - { - return _dataField; - } - public function set dataField(value:String):void - { - _dataField = value; - } - - private var _itemRendererParent:Object; - - /** - * The parent container for the itemRenderer instance. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get itemRendererParent():Object - { - return _itemRendererParent; - } - public function set itemRendererParent(value:Object):void - { - _itemRendererParent = value; - } - - /** - * @private - */ - public function updateRenderer():void - { -// if (down) -// backgroundColor = downColor; -// else if (hovered) -// backgroundColor = highlightColor; -// else if (selected) -// backgroundColor = selectedColor; - } - - /** - * @copy org.apache.flex.core.ItemRendererClassFactory#mxmlContent - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public var mxmlContent:Array; - - /** - * @private - */ - public function get MXMLDescriptor():Array - { - return null; - } - - private var mxmlProperties:Array ; - - /** - * @private - */ - public function generateMXMLAttributes(data:Array):void - { - mxmlProperties = data; - } - - /** - * @private - */ - private function sizeChangeHandler(event:Event):void - { - adjustSize(); - } - - /** - * This function is called whenever the itemRenderer changes size. Sub-classes should override - * this method an handle the size change. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function adjustSize():void - { - // handle in subclass - } - } -} \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/HScrollBar.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/HScrollBar.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/HScrollBar.as deleted file mode 100644 index 0b56925..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/HScrollBar.as +++ /dev/null @@ -1,49 +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.html.supportClasses -{ - import org.apache.flex.core.IChrome; - import org.apache.flex.core.IViewportScroller; - - /** - * The ScrollBar class represents either a vertical or horizontal control - * that allows the user to quickly scan through a component that does not - * wholly fit within its container. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class HScrollBar extends ScrollBar implements IChrome, IViewportScroller - { - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function HScrollBar() - { - super(); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollBar.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollBar.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollBar.as deleted file mode 100644 index 0bef2e6..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollBar.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. -// -//////////////////////////////////////////////////////////////////////////////// -package org.apache.flex.html.supportClasses -{ - import org.apache.flex.core.UIBase; - import org.apache.flex.core.IChrome; - import org.apache.flex.core.IViewportScroller; - - /** - * The ScrollBar class represents either a vertical or horizontal control - * that allows the user to quickly scan through a component that does not - * wholly fit within its container. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class ScrollBar extends UIBase implements IChrome, IViewportScroller - { - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function ScrollBar() - { - super(); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollingViewport.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollingViewport.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollingViewport.as deleted file mode 100644 index 395fea0..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/ScrollingViewport.as +++ /dev/null @@ -1,351 +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.html.supportClasses -{ - COMPILE::AS3 - { - import flash.geom.Rectangle; - } - import org.apache.flex.core.IBead; - import org.apache.flex.core.IBeadLayout; - import org.apache.flex.core.IContentViewHost; - import org.apache.flex.core.IParentIUIBase; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.IUIBase; - import org.apache.flex.core.IViewport; - import org.apache.flex.core.IViewportModel; - COMPILE::AS3 - { - import org.apache.flex.core.IViewportScroller; - } - import org.apache.flex.core.UIBase; - import org.apache.flex.events.Event; - import org.apache.flex.geom.Size; - import org.apache.flex.html.beads.ScrollBarView; - import org.apache.flex.html.beads.models.ScrollBarModel; - - /** - * The ScrollingViewport extends the Viewport class by adding horizontal and - * vertical scroll bars, if needed, to the content area of a Container. In - * addition, the content of the Container is clipped so that items extending - * outside the Container are hidden and reachable only by scrolling. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class ScrollingViewport extends Viewport implements IBead, IViewport - { - /** - * Constructor - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function ScrollingViewport() - { - } - - COMPILE::AS3 - private var _verticalScroller:ScrollBar; - - COMPILE::AS3 - public function get verticalScroller():IViewportScroller - { - return _verticalScroller; - } - - COMPILE::AS3 - private var _horizontalScroller:ScrollBar - - COMPILE::AS3 - public function get horizontalScroller():IViewportScroller - { - return _horizontalScroller; - } - - COMPILE::AS3 - private var _verticalScrollPosition:Number = 0; - - public function get verticalScrollPosition():Number - { - COMPILE::AS3 - { - return _verticalScrollPosition; - } - COMPILE::JS - { - return this.contentView.positioner.scrollTop; - } - } - public function set verticalScrollPosition(value:Number):void - { - COMPILE::AS3 - { - _verticalScrollPosition = value; - handleVerticalScrollChange(); - } - COMPILE::JS - { - this.contentView.positioner.scrollTop = value; - } - } - - COMPILE::AS3 - private var _horizontalScrollPosition:Number = 0; - - public function get horizontalScrollPosition():Number - { - COMPILE::AS3 - { - return _horizontalScrollPosition; - } - COMPILE::JS - { - return this.contentView.positioner.scrollLeft; - } - } - public function set horizontalScrollPosition(value:Number):void - { - COMPILE::AS3 - { - _horizontalScrollPosition = value; - handleHorizontalScrollChange(); - } - COMPILE::JS - { - this.contentView.positioner.scrollLeft = value; - } - } - - COMPILE::JS - override public function set strand(value:IStrand):void - { - super.strand = value; - contentView.element.style.overflow = 'auto'; - } - - private var viewportWidth:Number; - private var viewportHeight:Number; - - /** - * @copy org.apache.flex.core.IViewport - */ - override public function layoutViewportBeforeContentLayout(width:Number, height:Number):void - { - super.layoutViewportBeforeContentLayout(width, height); - viewportWidth = width; - viewportHeight = height; - } - - /** - * @copy org.apache.flex.core.IViewport - */ - override public function layoutViewportAfterContentLayout():Size - { - COMPILE::AS3 - { - var hadV:Boolean = _verticalScroller != null && _verticalScroller.visible; - var hadH:Boolean = _horizontalScroller != null && _horizontalScroller.visible; - var contentSize:Size; - do - { - contentSize = super.layoutViewportAfterContentLayout(); - if (isNaN(viewportHeight)) - viewportHeight = contentSize.height; - if (isNaN(viewportWidth)) - viewportWidth = contentSize.width; - - var host:UIBase = UIBase(_strand); - var visibleWidth:Number; - var visibleHeight:Number; - var needV:Boolean = contentSize.height > viewportHeight; - var needH:Boolean = contentSize.width > viewportWidth; - - if (needV) - { - if (_verticalScroller == null) { - _verticalScroller = createVerticalScrollBar(); - (host as IContentViewHost).strandChildren.addElement(_verticalScroller); - } - } - if (needH) - { - if (_horizontalScroller == null) { - _horizontalScroller = createHorizontalScrollBar(); - (host as IContentViewHost).strandChildren.addElement(_horizontalScroller); - } - } - - if (needV) - { - _verticalScroller.visible = true; - _verticalScroller.x = contentArea.x + viewportWidth - _verticalScroller.width; - _verticalScroller.y = contentArea.y; - _verticalScroller.setHeight(viewportHeight - (needH ? _horizontalScroller.height : 0), true); - visibleWidth = _verticalScroller.x; - } - else if (_verticalScroller) - _verticalScroller.visible = false; - - if (needH) - { - _horizontalScroller.visible = true; - _horizontalScroller.x = contentArea.x; - _horizontalScroller.y = contentArea.y + viewportHeight - _horizontalScroller.height; - _horizontalScroller.setWidth(viewportWidth - (needV ? _verticalScroller.width : 0), true); - visibleHeight = _horizontalScroller.y; - } - - var needsLayout:Boolean = false; - // resize content area if needed to get out from under scrollbars - if (!isNaN(visibleWidth) || !isNaN(visibleHeight)) - { - if (!isNaN(visibleWidth)) - needsLayout = visibleWidth != contentView.width; - if (!isNaN(visibleHeight)) - needsLayout = visibleHeight != contentView.height; - if (!isNaN(visibleWidth) && !isNaN(visibleHeight)) - contentArea.setWidthAndHeight(visibleWidth, visibleHeight, false); - else if (!isNaN(visibleWidth)) - contentArea.setWidth(visibleWidth, false); - else if (!isNaN(visibleHeight)) - contentArea.setHeight(visibleHeight, false); - } - if (needsLayout) - { - var layout:IBeadLayout = host.getBeadByType(IBeadLayout) as IBeadLayout; - layout.layout(); - } - } while (needsLayout && (needV != hadV || needH == hadH)); - if (_verticalScroller) - { - ScrollBarModel(_verticalScroller.model).maximum = contentSize.height; - ScrollBarModel(_verticalScroller.model).pageSize = contentArea.height; - ScrollBarModel(_verticalScroller.model).pageStepSize = contentArea.height; - if (contentSize.height > contentArea.height && - (contentSize.height - contentArea.height) < _verticalScrollPosition) - _verticalScrollPosition = contentSize.height - contentArea.height; - } - if (_horizontalScroller) - { - ScrollBarModel(_horizontalScroller.model).maximum = contentSize.width; - ScrollBarModel(_horizontalScroller.model).pageSize = contentArea.width; - ScrollBarModel(_horizontalScroller.model).pageStepSize = contentArea.width; - if (contentSize.width > contentArea.width && - (contentSize.width - contentArea.width) < _horizontalScrollPosition) - _horizontalScrollPosition = contentSize.width - contentArea.width; - } - - var rect:Rectangle = new Rectangle(_horizontalScrollPosition, _verticalScrollPosition, - (_verticalScroller != null && _verticalScroller.visible) ? - _verticalScroller.x : viewportWidth, - (_horizontalScroller != null && _horizontalScroller.visible) ? - _horizontalScroller.y : viewportHeight); - contentArea.scrollRect = rect; - return contentSize; - - } - COMPILE::JS - { - return new Size(contentView.width, contentView.height); - } - - } - - COMPILE::AS3 - private function createVerticalScrollBar():ScrollBar - { - var vsbm:ScrollBarModel = new ScrollBarModel(); - vsbm.minimum = 0; - vsbm.snapInterval = 1; - vsbm.stepSize = 1; - vsbm.value = 0; - - var vsb:VScrollBar; - vsb = new VScrollBar(); - vsb.model = vsbm; - vsb.visible = false; - - vsb.addEventListener("scroll",handleVerticalScroll); - return vsb; - } - - COMPILE::AS3 - private function createHorizontalScrollBar():ScrollBar - { - var hsbm:ScrollBarModel = new ScrollBarModel(); - hsbm.minimum = 0; - hsbm.snapInterval = 1; - hsbm.stepSize = 1; - hsbm.value = 0; - - var hsb:HScrollBar; - hsb = new HScrollBar(); - hsb.model = hsbm; - hsb.visible = false; - - hsb.addEventListener("scroll",handleHorizontalScroll); - return hsb; - } - - COMPILE::AS3 - private function handleVerticalScroll(event:Event):void - { - var host:UIBase = UIBase(_strand); - var vpos:Number = ScrollBarModel(_verticalScroller.model).value; - var rect:Rectangle = contentArea.scrollRect; - rect.y = vpos; - contentArea.scrollRect = rect; - - _verticalScrollPosition = vpos; - } - - COMPILE::AS3 - private function handleHorizontalScroll(event:Event):void - { - var host:UIBase = UIBase(_strand); - var hpos:Number = ScrollBarModel(_horizontalScroller.model).value; - var rect:Rectangle = contentArea.scrollRect; - rect.x = hpos; - contentArea.scrollRect = rect; - - _horizontalScrollPosition = hpos; - } - - COMPILE::AS3 - private function handleVerticalScrollChange():void - { - if (_verticalScroller) { - ScrollBarModel(_verticalScroller.model).value = verticalScrollPosition; - } - } - - COMPILE::AS3 - private function handleHorizontalScrollChange():void - { - if (_horizontalScroller) { - ScrollBarModel(_horizontalScroller.model).value = horizontalScrollPosition; - } - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as deleted file mode 100644 index 9568932..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/StringItemRenderer.as +++ /dev/null @@ -1,183 +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.html.supportClasses -{ - COMPILE::AS3 - { - import flash.text.TextFieldAutoSize; - import flash.text.TextFieldType; - - import org.apache.flex.core.CSSTextField; - } - COMPILE::JS - { - import org.apache.flex.core.WrappedHTMLElement; - import org.apache.flex.html.beads.controllers.ItemRendererMouseController; - } - import org.apache.flex.events.Event; - import org.apache.flex.html.beads.ITextItemRenderer; - - /** - * The StringItemRenderer class displays data in string form using the data's toString() - * function. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class StringItemRenderer extends DataItemRenderer implements ITextItemRenderer - { - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function StringItemRenderer() - { - super(); - - COMPILE::AS3 - { - textField = new CSSTextField(); - textField.type = TextFieldType.DYNAMIC; - textField.autoSize = TextFieldAutoSize.LEFT; - textField.selectable = false; - textField.parentDrawsBackground = true; - } - } - - COMPILE::AS3 - public var textField:CSSTextField; - - /** - * @private - */ - COMPILE::AS3 - override public function addedToParent():void - { - super.addedToParent(); - - addChild(textField); - - adjustSize(); - } - - /** - * @private - */ - COMPILE::AS3 - override public function adjustSize():void - { - var cy:Number = height/2; - - textField.x = 0; - textField.y = cy - textField.height/2; - textField.width = width; - - updateRenderer(); - } - - /** - * The text currently displayed by the itemRenderer instance. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get text():String - { - COMPILE::AS3 - { - return textField.text; - } - COMPILE::JS - { - return this.element.innerHTML; - } - } - - public function set text(value:String):void - { - COMPILE::AS3 - { - textField.text = value; - } - COMPILE::JS - { - this.element.innerHTML = value; - } - } - - /** - * Sets the data value and uses the String version of the data for display. - * - * @param Object data The object being displayed by the itemRenderer instance. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - override public function set data(value:Object):void - { - super.data = value; - var text:String; - if (labelField) text = String(value[labelField]); - else if (dataField) text = String(value[dataField]); - else text = String(value); - - this.text = text; - } - - COMPILE::JS - private var controller:ItemRendererMouseController; - - COMPILE::JS - private var backgroundView:WrappedHTMLElement; - - /** - * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement - */ - COMPILE::JS - override protected function createElement():WrappedHTMLElement - { - element = document.createElement('div') as WrappedHTMLElement; - positioner = element; - positioner.style.position = 'relative'; - - element.flexjs_wrapper = this; - className = 'StringItemRenderer'; - - // itemRenderers should provide something for the background to handle - // the selection and highlight - backgroundView = element; - - controller = new ItemRendererMouseController(); - controller.strand = this; - - return element; - } - - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as deleted file mode 100644 index a19fc2f..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/TextFieldItemRenderer.as +++ /dev/null @@ -1,541 +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.html.supportClasses -{ - import flash.text.TextFieldType; - - import org.apache.flex.core.CSSTextField; - import org.apache.flex.core.IBead; - import org.apache.flex.core.IBeadController; - import org.apache.flex.core.IFlexJSElement; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.IUIBase; - import org.apache.flex.core.UIBase; - import org.apache.flex.core.ValuesManager; - import org.apache.flex.events.Event; - import org.apache.flex.events.IEventDispatcher; - import org.apache.flex.events.MouseEvent; - import org.apache.flex.events.utils.MouseEventConverter; - import org.apache.flex.geom.Rectangle; - import org.apache.flex.html.beads.ITextItemRenderer; - import org.apache.flex.utils.CSSContainerUtils; - - /** - * The TextFieldItemRenderer class provides a org.apache.flex.html.TextField as an itemRenderer. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class TextFieldItemRenderer extends CSSTextField implements ITextItemRenderer, IStrand, IUIBase, IFlexJSElement - { - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function TextFieldItemRenderer() - { - super(); - type = TextFieldType.DYNAMIC; - selectable = false; - - MouseEventConverter.setupInstanceConverters(this); - } - - public var highlightColor:uint = 0xCEDBEF; - public var selectedColor:uint = 0xA8C6EE; - public var downColor:uint = 0x808080; - - private var _explicitWidth:Number; - - /** - * The explicitly set width (as opposed to measured width - * or percentage width). - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get explicitWidth():Number - { - if (isNaN(_explicitWidth)) - { - var value:* = ValuesManager.valuesImpl.getValue(this, "width"); - if (value !== undefined) { - _explicitWidth = Number(value); - } - } - - return _explicitWidth; - } - - /** - * @private - */ - public function set explicitWidth(value:Number):void - { - if (_explicitWidth == value) - return; - - // width can be pixel or percent not both - if (!isNaN(value)) - _percentWidth = NaN; - - _explicitWidth = value; - - dispatchEvent(new Event("explicitWidthChanged")); - } - - private var _explicitHeight:Number; - - /** - * The explicitly set width (as opposed to measured width - * or percentage width). - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get explicitHeight():Number - { - if (isNaN(_explicitHeight)) - { - var value:* = ValuesManager.valuesImpl.getValue(this, "height"); - if (value !== undefined) { - _explicitHeight = Number(value); - } - } - - return _explicitHeight; - } - - /** - * @private - */ - public function set explicitHeight(value:Number):void - { - if (_explicitHeight == value) - return; - - // height can be pixel or percent not both - if (!isNaN(value)) - _percentHeight = NaN; - - _explicitHeight = value; - - dispatchEvent(new Event("explicitHeightChanged")); - } - - private var _percentWidth:Number; - - /** - * The requested percentage width this component - * should have in the parent container. Note that - * the actual percentage may be different if the - * total is more than 100% or if there are other - * components with explicitly set widths. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get percentWidth():Number - { - return _percentWidth; - } - - /** - * @private - */ - public function set percentWidth(value:Number):void - { - if (_percentWidth == value) - return; - - if (!isNaN(value)) - _explicitWidth = NaN; - - _percentWidth = value; - - dispatchEvent(new Event("percentWidthChanged")); - } - - private var _percentHeight:Number; - - /** - * The requested percentage height this component - * should have in the parent container. Note that - * the actual percentage may be different if the - * total is more than 100% or if there are other - * components with explicitly set heights. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get percentHeight():Number - { - return _percentHeight; - } - - /** - * @private - */ - public function set percentHeight(value:Number):void - { - if (_percentHeight == value) - return; - - if (!isNaN(value)) - _explicitHeight = NaN; - - _percentHeight = value; - - dispatchEvent(new Event("percentHeightChanged")); - } - - private var _width:Number; - - /** - * @private - */ - override public function get width():Number - { - if (isNaN(explicitWidth)) - { - var w:Number = _width; - if (isNaN(w)) w = $width; - var metrics:Rectangle = CSSContainerUtils.getBorderAndPaddingMetrics(this); - return w + metrics.left + metrics.right; - } - else - return explicitWidth; - } - override public function set width(value:Number):void - { - if (explicitWidth != value) - { - explicitWidth = value; - } - - if (value != _width) { - _width = value; - dispatchEvent( new Event("widthChanged") ); - } - } - - /** - * @private - */ - protected function get $width():Number - { - return super.width; - } - - private var _height:Number; - - /** - * @private - */ - override public function get height():Number - { - if (isNaN(explicitHeight)) - { - var h:Number = _height; - if (isNaN(h)) h = $height; - var metrics:Rectangle = CSSContainerUtils.getBorderAndPaddingMetrics(this); - return h + metrics.top + metrics.bottom; - } - else - return explicitHeight; - } - - override public function set height(value:Number):void - { - if (explicitHeight != value) - { - explicitHeight = value; - } - - if (_height != value) { - _height = value; - dispatchEvent(new Event("heightChanged")); - } - } - - /** - * @private - */ - protected function get $height():Number - { - return super.height; - } - - /** - * The String(data) for the itemRenderer instance. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get data():Object - { - return text; - } - public function set data(value:Object):void - { - text = String(value); - } - - /** - * @private - */ - public function get labelField():String - { - return null; - } - public function set labelField(value:String):void - { - // nothing to do for this - } - - private var _index:int; - - /** - * An index value for the itemRenderer corresponding the data's position with its dataProvider. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get index():int - { - return _index; - } - public function set index(value:int):void - { - _index = value; - } - - private var _hovered:Boolean; - - /** - * Returns whether or not the itemRenderer is a "hovered" state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get hovered():Boolean - { - return _hovered; - } - public function set hovered(value:Boolean):void - { - _hovered = value; - updateRenderer(); - } - - private var _selected:Boolean; - - /** - * Whether or not the itemRenderer should be represented in a selected state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get selected():Boolean - { - return _selected; - } - public function set selected(value:Boolean):void - { - _selected = value; - updateRenderer(); - } - - private var _down:Boolean; - - /** - * Whether or not the itemRenderer should be represented in a down (or pre-selected) state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get down():Boolean - { - return _down; - } - public function set down(value:Boolean):void - { - _down = value; - updateRenderer(); - } - - private var _itemRendererParent:Object; - - /** - * The parent component of the itemRenderer instance. This is the container that houses - * all of the itemRenderers. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get itemRendererParent():Object - { - return _itemRendererParent; - } - public function set itemRendererParent(value:Object):void - { - _itemRendererParent = value; - } - - /** - * @private - */ - public function updateRenderer():void - { - background = (down || selected || hovered); - if (down) - backgroundColor = downColor; - else if (hovered) - backgroundColor = highlightColor; - else if (selected) - backgroundColor = selectedColor; - } - - /** - * @private - */ - public function get element():IFlexJSElement - { - return this; - } - - // beads declared in MXML are added to the strand. - // from AS, just call addBead() - public var beads:Array; - - private var _beads:Vector.<IBead>; - - /** - * @private - */ - public function addBead(bead:IBead):void - { - if (!_beads) - _beads = new Vector.<IBead>; - _beads.push(bead); - bead.strand = this; - } - - /** - * @private - */ - public function getBeadByType(classOrInterface:Class):IBead - { - for each (var bead:IBead in _beads) - { - if (bead is classOrInterface) - return bead; - } - return null; - } - - /** - * @private - */ - 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; - } - - /** - * @private - */ - public function addedToParent():void - { - var c:Class; - - for each (var bead:IBead in beads) - addBead(bead); - - dispatchEvent(new Event("beadsAdded")); - - // renderer has a default model (the 'data' property) - // and it is essentially a view of that model, so it - // only needs an assignable controller - - if (getBeadByType(IBeadController) == null) - { - c = ValuesManager.valuesImpl.getValue(this, "iBeadController") as Class; - if (c) - { - var controller:IBeadController = new c as IBeadController; - if (controller) - addBead(controller); - } - } - } - - /** - * @copy org.apache.flex.core.IUIBase#topMostEventDispatcher - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get topMostEventDispatcher():IEventDispatcher - { - if (!parent) - return null; - return IUIBase(parent).topMostEventDispatcher; - } - - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/UIItemRendererBase.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/UIItemRendererBase.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/UIItemRendererBase.as deleted file mode 100644 index 90c66fa..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/UIItemRendererBase.as +++ /dev/null @@ -1,282 +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.html.supportClasses -{ - import org.apache.flex.core.ISelectableItemRenderer; - import org.apache.flex.core.UIBase; - import org.apache.flex.core.ValuesManager; - import org.apache.flex.events.Event; - import org.apache.flex.utils.MXMLDataInterpreter; - - [DefaultProperty("mxmlContent")] - - /** - * The UIItemRendererBase class is the base class for all itemRenderers. An itemRenderer is used to - * display a single datum within a collection of data. Components such as a List use itemRenderers to - * show their dataProviders. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class UIItemRendererBase extends UIBase implements ISelectableItemRenderer - { - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function UIItemRendererBase() - { - } - - /** - * @private - */ - override public function addedToParent():void - { - super.addedToParent(); - - // very common for item renderers to be resized by their containers, - addEventListener("widthChanged", sizeChangeHandler); - addEventListener("heightChanged", sizeChangeHandler); - addEventListener("sizeChanged", sizeChangeHandler); - - // each MXML file can also have styles in fx:Style block - ValuesManager.valuesImpl.init(this); - - MXMLDataInterpreter.generateMXMLProperties(this, mxmlProperties); - MXMLDataInterpreter.generateMXMLInstances(this, this, MXMLDescriptor); - - dispatchEvent(new Event("initBindings")); - dispatchEvent(new Event("initComplete")); - - } - - private var _itemRendererParent:Object; - - /** - * The parent container for the itemRenderer instance. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get itemRendererParent():Object - { - return _itemRendererParent; - } - public function set itemRendererParent(value:Object):void - { - _itemRendererParent = value; - } - - /** - * @copy org.apache.flex.core.ItemRendererClassFactory#mxmlContent - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public var mxmlContent:Array; - - /** - * @private - */ - public function get MXMLDescriptor():Array - { - return null; - } - - private var mxmlProperties:Array ; - - /** - * @private - */ - public function generateMXMLAttributes(data:Array):void - { - mxmlProperties = data; - } - - public var backgroundColor:uint = 0xFFFFFF; - public var highlightColor:uint = 0xCEDBEF; - public var selectedColor:uint = 0xA8C6EE; - public var downColor:uint = 0x808080; - protected var useColor:uint = backgroundColor; - - private var _data:Object; - - [Bindable("__NoChangeEvent__")] - /** - * The data being represented by this itemRenderer. This can be something simple like a String or - * a Number or something very complex. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get data():Object - { - return _data; - } - public function set data(value:Object):void - { - _data = value; - } - - private var _labelField:String = "label"; - - /** - * The name of the field within the data to use as a label. Some itemRenderers use this field to - * identify the value they should show while other itemRenderers ignore this if they are showing - * complex information. - */ - public function get labelField():String - { - return _labelField; - } - public function set labelField(value:String):void - { - _labelField = value; - } - - private var _index:int; - - /** - * The position with the dataProvider being shown by the itemRenderer instance. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get index():int - { - return _index; - } - public function set index(value:int):void - { - _index = value; - } - - private var _hovered:Boolean; - - /** - * Whether or not the itemRenderer is in a hovered state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get hovered():Boolean - { - return _hovered; - } - public function set hovered(value:Boolean):void - { - _hovered = value; - updateRenderer(); - } - - private var _selected:Boolean; - - /** - * Whether or not the itemRenderer is in a selected state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get selected():Boolean - { - return _selected; - } - public function set selected(value:Boolean):void - { - _selected = value; - updateRenderer(); - } - - private var _down:Boolean; - - /** - * Whether or not the itemRenderer is in a down (or pre-selected) state. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get down():Boolean - { - return _down; - } - public function set down(value:Boolean):void - { - _down = value; - updateRenderer(); - } - - /** - * @private - */ - public function updateRenderer():void - { - if (down) - useColor = downColor; - else if (hovered) - useColor = highlightColor; - else if (selected) - useColor = selectedColor; - else - useColor = backgroundColor; - } - - /** - * @private - */ - private function sizeChangeHandler(event:Event):void - { - adjustSize(); - } - - /** - * This function is called whenever the itemRenderer changes size. Sub-classes should override - * this method an handle the size change. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function adjustSize():void - { - // handle in subclass - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/VScrollBar.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/VScrollBar.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/VScrollBar.as deleted file mode 100644 index a72c64c..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/VScrollBar.as +++ /dev/null @@ -1,49 +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.html.supportClasses -{ - import org.apache.flex.core.IChrome; - import org.apache.flex.core.IViewportScroller; - - /** - * The ScrollBar class represents either a vertical or horizontal control - * that allows the user to quickly scan through a component that does not - * wholly fit within its container. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class VScrollBar extends ScrollBar implements IChrome, IViewportScroller - { - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function VScrollBar() - { - super(); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/Viewport.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/Viewport.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/Viewport.as deleted file mode 100644 index 285282a..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/supportClasses/Viewport.as +++ /dev/null @@ -1,151 +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.html.supportClasses -{ - import org.apache.flex.core.IBead; - import org.apache.flex.core.IContentView; - import org.apache.flex.core.IParentIUIBase; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.IUIBase; - import org.apache.flex.core.IViewport; - import org.apache.flex.core.IViewportModel; - import org.apache.flex.core.UIBase; - import org.apache.flex.core.ValuesManager; - import org.apache.flex.events.Event; - import org.apache.flex.geom.Rectangle; - import org.apache.flex.geom.Size; - import org.apache.flex.html.beads.models.ScrollBarModel; - import org.apache.flex.utils.CSSContainerUtils; - - /** - * A Viewport is the area of a Container set aside for displaying - * content and any scrolling controls. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class Viewport implements IBead, IViewport - { - /** - * Constructor - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function Viewport() - { - } - - protected var contentArea:UIBase; - - /** - * Get the actual parent of the container's content. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get contentView():IUIBase - { - return contentArea; - } - - protected var _strand:IStrand; - - /** - * @flexjsignorecoercion Class - */ - public function set strand(value:IStrand):void - { - _strand = value; - contentArea = _strand.getBeadByType(IContentView) as UIBase; - if (!contentArea) - { - var c:Class = ValuesManager.valuesImpl.getValue(_strand, 'iContentView') as Class; - contentArea = new c() as UIBase; - } - } - - /** - * @copy org.apache.flex.core.IViewport#setPosition() - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function setPosition(x:Number, y:Number):void - { - contentArea.x = x; - contentArea.y = y; - } - - /** - * @copy org.apache.flex.core.IViewport#layoutViewportBeforeContentLayout() - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function layoutViewportBeforeContentLayout(width:Number, height:Number):void - { - if (!isNaN(width)) - contentArea.width = width; - if (!isNaN(height)) - contentArea.height = height; - } - - /** - * @copy org.apache.flex.core.IViewport#layoutViewportAfterContentLayout() - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function layoutViewportAfterContentLayout():Size - { - // pass through all of the children and determine the maxWidth and maxHeight - // note: this is not done on the JavaScript side because the browser handles - // this automatically. - var maxWidth:Number = 0; - var maxHeight:Number = 0; - var num:Number = contentArea.numElements; - - for (var i:int=0; i < num; i++) { - var child:IUIBase = contentArea.getElementAt(i) as IUIBase; - if (child == null || !child.visible) continue; - var childXMax:Number = child.x + child.width; - var childYMax:Number = child.y + child.height; - maxWidth = Math.max(maxWidth, childXMax); - maxHeight = Math.max(maxHeight, childYMax); - } - - var padding:Rectangle = CSSContainerUtils.getPaddingMetrics(this._strand); - return new Size(maxWidth + padding.right, maxHeight + padding.bottom); - } - - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/svg/TextButton.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/svg/TextButton.as b/frameworks/projects/HTML/as/src/org/apache/flex/svg/TextButton.as deleted file mode 100644 index 83a2821..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/svg/TextButton.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.svg -{ - import org.apache.flex.html.TextButton; - - public class TextButton extends org.apache.flex.html.TextButton - { - public function TextButton() - { - super(); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml b/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml deleted file mode 100644 index 06ad1d6..0000000 --- a/frameworks/projects/HTML/as/tests/FlexUnitFlexJSApplication.mxml +++ /dev/null @@ -1,46 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -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. - ---> - -<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - applicationComplete="runTests()" - > - <fx:Script> - <![CDATA[ - import flexUnitTests.DataGridColumnTesterTest; - import flexUnitTests.DataGridColumnTester; - - import org.flexunit.listeners.CIListener; - import org.flexunit.runner.FlexUnitCore; - - public function runTests() : void - { - var core : FlexUnitCore = new FlexUnitCore(); - core.addListener(new CIListener()); - core.run(DataGridColumnTester); - } - - ]]> - </fx:Script> - <js:valuesImpl> - <js:SimpleValuesImpl /> - </js:valuesImpl> - -</js:Application> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/tests/build.xml ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/tests/build.xml b/frameworks/projects/HTML/as/tests/build.xml deleted file mode 100644 index fda6c62..0000000 --- a/frameworks/projects/HTML/as/tests/build.xml +++ /dev/null @@ -1,159 +0,0 @@ -<?xml version="1.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. - ---> - - -<project name="HTML.test" default="main" basedir="."> - <property name="FLEXJS_HOME" location="../../../../.."/> - - <property file="${FLEXJS_HOME}/env.properties"/> - <property environment="env"/> - <property file="${FLEXJS_HOME}/build.properties"/> - <property name="FLEX_HOME" value="${env.FLEX_HOME}"/> - <property name="FALCON_HOME" value="${env.FALCON_HOME}"/> - - <condition property="browser" value="C:/Program Files/Internet Explorer/iexplore.exe"> - <os family="windows"/> - </condition> - <condition property="browser" value="/Applications/Safari.app/Contents/MacOS/Safari"> - <os family="mac"/> - </condition> - - <property name="report.dir" value="${basedir}/out" /> - - <available file="${FLEXJS_HOME}/../flex-flexunit" - type="dir" - property="FLEXUNIT_HOME" - value="${FLEXJS_HOME}/../flex-flexunit" /> - - <available file="${FLEXJS_HOME}/../flexunit" - type="dir" - property="FLEXUNIT_HOME" - value="${FLEXJS_HOME}/../flexunit" /> - - <available file="${env.FLEXUNIT_HOME}" - type="dir" - property="FLEXUNIT_HOME" - value="${env.FLEXUNIT_HOME}"/> - - <available file="${FLEXUNIT_HOME}/FlexUnit4/target" - type="dir" - property="FLEXUNIT_LIBPATH1" - value="-library-path+=${FLEXUNIT_HOME}/FlexUnit4/target/flexunit-4.3.0-20140410-as3_4.12.0.swc" /> - <property name="FLEXUNIT_LIBPATH1" value="-library-path+=${FLEXUNIT_HOME}/flexunit" /> - - <available file="${FLEXUNIT_HOME}/FlexUnit4CIListener/target" - type="dir" - property="FLEXUNIT_LIBPATH2" - value="-library-path+=${FLEXUNIT_HOME}/FlexUnit4CIListener/target" /> - <property name="FLEXUNIT_LIBPATH2" value="-define=CONFIG::dummy,false" /> - - <available file="${FLEXUNIT_HOME}/FlexUnit4AntTasks/target" - type="dir" - property="FLEXUNIT_CLASSPATH" - value="${FLEXUNIT_HOME}/FlexUnit4AntTasks/target" /> - <property name="FLEXUNIT_CLASSPATH" value="${FLEXUNIT_HOME}/flexunit" /> - - <target name="main" depends="clean,compile,test" description="Clean test of FlexJSUI.swc"> - </target> - - <target name="clean"> - <delete failonerror="false"> - <fileset dir="${basedir}"> - <include name="FlexUnitFlexJSApplication.swf"/> - </fileset> - </delete> - </target> - - <path id="lib.path"> - <fileset dir="${FALCON_HOME}/lib" includes="falcon-flexTasks.jar"/> - </path> - - <target name="compile" description="Compiles FlexUnitApplication.swf"> - <echo message="Compiling FlexUnitFlexJSApplication.swf"/> - <echo message="FLEX_HOME: ${FLEX_HOME}"/> - <echo message="FALCON_HOME: ${FALCON_HOME}"/> - <echo message="FLEXUNIT_HOME: ${FLEXUNIT_HOME}"/> - <echo message="playerglobal.version: ${playerglobal.version}"/> - - <!-- Load the <compc> task. We can't do this at the <project> level --> - <!-- because targets that run before flexTasks.jar gets built would fail. --> - <taskdef resource="flexTasks.tasks" classpathref="lib.path"/> - <!-- - Link in the classes (and their dependencies) for the MXML tags - listed in this project's manifest.xml. - Also link the additional classes (and their dependencies) - listed in FlexJSUIClasses.as, - because these aren't referenced by the manifest classes. - Keep the standard metadata when compiling. - Include the appropriate CSS files and assets in the SWC. - Don't include any resources in the SWC. - Write a bundle list of referenced resource bundles - into the file bundles.properties in this directory. - --> - <mxmlc fork="true" - file="${basedir}/FlexUnitFlexJSApplication.mxml" - output="${basedir}/FlexUnitFlexJSApplication.swf"> - <jvmarg line="${mxmlc.jvm.args}"/> - <arg value="+flexlib=${FLEXJS_HOME}/frameworks" /> - <arg value="-debug" /> - <arg value="-compiler.mxml.children-as-data" /> - <arg value="-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent" /> - <arg value="-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent" /> - <arg value="-compiler.binding-value-change-event-type=valueChange" /> - <arg value="+playerglobal.version=${playerglobal.version}" /> - <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" /> - <arg value="-source-path+=${FLEXJS_HOME}/frameworks/projects/HTML/as/src" /> - <arg value="-library-path+=${FLEXJS_HOME}/frameworks/libs" /> - <arg value="${FLEXUNIT_LIBPATH1}" /> - <arg value="${FLEXUNIT_LIBPATH2}" /> - </mxmlc> - </target> - - <target name="test"> - <taskdef resource="flexUnitTasks.tasks"> - <classpath> - <fileset dir="${FLEXUNIT_CLASSPATH}"> - <include name="flexUnitTasks*.jar" /> - </fileset> - </classpath> - </taskdef> - <mkdir dir="${report.dir}" /> - <flexunit - swf="${basedir}/FlexUnitFlexJSApplication.swf" - workingDir="${basedir}" - toDir="${report.dir}" - haltonfailure="false" - verbose="true" - localTrusted="true" - timeout="90000"> - <source dir="${FLEXJS_HOME}/frameworks/projects/HTML/as/src" /> - <library dir="${FLEXJS_HOME}/frameworks/libs" /> - </flexunit> - - <!-- Generate readable JUnit-style reports --> - <junitreport todir="${report.dir}"> - <fileset dir="${report.dir}"> - <include name="TEST-*.xml" /> - </fileset> - <report format="frames" todir="${report.dir}/html" /> - </junitreport> - - </target> -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.as b/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.as deleted file mode 100644 index e060b1f..0000000 --- a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTester.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 flexUnitTests -{ - [Suite] - [RunWith("org.flexunit.runners.Suite")] - public class DataGridColumnTester - { - public var dataGridColumnTesterTest:DataGridColumnTesterTest; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as b/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as deleted file mode 100644 index 1a3cc0f..0000000 --- a/frameworks/projects/HTML/as/tests/flexUnitTests/DataGridColumnTesterTest.as +++ /dev/null @@ -1,55 +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 flexUnitTests -{ - import flexunit.framework.Assert; - - import org.apache.flex.html.supportClasses.DataGridColumn; - - public class DataGridColumnTesterTest - { - [Before] - public function setUp():void - { - } - - [After] - public function tearDown():void - { - } - - [BeforeClass] - public static function setUpBeforeClass():void - { - } - - [AfterClass] - public static function tearDownAfterClass():void - { - } - - [Test] - public function testLabelProperty():void - { - var column:DataGridColumn = new DataGridColumn(); - column.label = "foo"; - Assert.assertEquals("Error testing DataGridColumn.label", column.label, "foo"); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/basic-as-manifest.xml ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/basic-as-manifest.xml b/frameworks/projects/HTML/basic-as-manifest.xml deleted file mode 100644 index 26b7d42..0000000 --- a/frameworks/projects/HTML/basic-as-manifest.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.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. - ---> - - -<componentPackage> - - <!-- component id="ListViewNoSelectionState" class="org.apache.flex.html.beads.ListViewNoSelectionState"/ --> - <!--<component id="MultilineTextFieldView" class="org.apache.flex.html.beads.MultilineTextFieldView"/>--> - - <component id="TextFieldItemRenderer" class="org.apache.flex.html.supportClasses.TextFieldItemRenderer"/> - <component id="HScrollBar" class="org.apache.flex.html.supportClasses.HScrollBar"/> - <component id="VScrollBar" class="org.apache.flex.html.supportClasses.VScrollBar"/> - <!-- - <component id="HRuleView" class="org.apache.flex.html.beads.HRuleView" /> - <component id="VRuleView" class="org.apache.flex.html.beads.VRuleView" /> - --> - <!-- - <component id="ImageAndTextButtonView" class="org.apache.flex.html.beads.ImageAndTextButtonView" /> - --> -</componentPackage> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/basic-manifest.xml ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/basic-manifest.xml b/frameworks/projects/HTML/basic-manifest.xml deleted file mode 100644 index 23dcccc..0000000 --- a/frameworks/projects/HTML/basic-manifest.xml +++ /dev/null @@ -1,105 +0,0 @@ -<?xml version="1.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. - ---> - - -<componentPackage> - - <component id="Button" class="org.apache.flex.html.Button"/> - <component id="CloseButton" class="org.apache.flex.html.CloseButton"/> - <component id="ButtonBar" class="org.apache.flex.html.ButtonBar"/> - <component id="DropDownList" class="org.apache.flex.html.DropDownList"/> - <component id="DropDownListList" class="org.apache.flex.html.supportClasses.DropDownListList"/> - <component id="Image" class="org.apache.flex.html.Image"/> - <component id="Label" class="org.apache.flex.html.Label"/> - <component id="MultilineLabel" class="org.apache.flex.html.MultilineLabel"/> - <component id="ImageAndTextButton" class="org.apache.flex.html.ImageAndTextButton"/> - <component id="TextButton" class="org.apache.flex.html.TextButton"/> - <component id="ToggleTextButton" class="org.apache.flex.html.ToggleTextButton"/> - <component id="TextInput" class="org.apache.flex.html.TextInput"/> - <component id="TextArea" class="org.apache.flex.html.TextArea"/> - <component id="List" class="org.apache.flex.html.List"/> - <component id="SimpleList" class="org.apache.flex.html.SimpleList"/> - <component id="CheckBox" class="org.apache.flex.html.CheckBox"/> - <component id="RadioButton" class="org.apache.flex.html.RadioButton"/> - <component id="ComboBox" class="org.apache.flex.html.ComboBox"/> - <component id="Container" class="org.apache.flex.html.Container"/> - <component id="HContainer" class="org.apache.flex.html.HContainer"/> - <component id="VContainer" class="org.apache.flex.html.VContainer"/> - <component id="Panel" class="org.apache.flex.html.Panel"/> - <component id="PanelView" class="org.apache.flex.html.beads.PanelView"/> - <component id="PanelWithControlBar" class="org.apache.flex.html.PanelWithControlBar"/> - <component id="ControlBar" class="org.apache.flex.html.ControlBar"/> - <component id="TitleBar" class="org.apache.flex.html.TitleBar"/> - <component id="TitleBarModel" class="org.apache.flex.html.beads.models.TitleBarModel"/> - <component id="ToolTip" class="org.apache.flex.html.ToolTip"/> - <component id="BasicLayout" class="org.apache.flex.html.beads.layouts.BasicLayout"/> - <component id="VerticalLayout" class="org.apache.flex.html.beads.layouts.VerticalLayout"/> - <component id="HorizontalLayout" class="org.apache.flex.html.beads.layouts.HorizontalLayout"/> - <component id="TileLayout" class="org.apache.flex.html.beads.layouts.TileLayout"/> - <component id="ListView" class="org.apache.flex.html.beads.ListView"/> - <!--<component id="MultilineTextFieldView" class="org.apache.flex.html.beads.MultilineTextFieldView"/>--> - - <component id="SimpleAlert" class="org.apache.flex.html.SimpleAlert"/> - <component id="Alert" class="org.apache.flex.html.Alert"/> - <component id="Spinner" class="org.apache.flex.html.Spinner"/> - <component id="Slider" class="org.apache.flex.html.Slider"/> - <component id="NumericStepper" class="org.apache.flex.html.NumericStepper" /> - <component id="StringItemRenderer" class="org.apache.flex.html.supportClasses.StringItemRenderer"/> - <component id="DataItemRenderer" class="org.apache.flex.html.supportClasses.DataItemRenderer"/> - <component id="ButtonBarButtonItemRenderer" class="org.apache.flex.html.supportClasses.ButtonBarButtonItemRenderer"/> - <!-- - <component id="TextFieldItemRenderer" class="org.apache.flex.html.supportClasses.TextFieldItemRenderer"/> - <component id="HScrollBar" class="org.apache.flex.html.supportClasses.HScrollBar"/> - <component id="VScrollBar" class="org.apache.flex.html.supportClasses.VScrollBar"/> - <component id="HRuleView" class="org.apache.flex.html.beads.HRuleView" /> - <component id="VRuleView" class="org.apache.flex.html.beads.VRuleView" /> - --> - <component id="NumericOnlyTextInputBead" class="org.apache.flex.html.accessories.NumericOnlyTextInputBead" /> - <component id="PasswordInputBead" class="org.apache.flex.html.accessories.PasswordInputBead" /> - <component id="TextPromptBead" class="org.apache.flex.html.accessories.TextPromptBead" /> - <component id="HRule" class="org.apache.flex.html.HRule" /> - <component id="VRule" class="org.apache.flex.html.VRule" /> - <component id="Spacer" class="org.apache.flex.html.Spacer" /> - <!-- - <component id="ImageAndTextButtonView" class="org.apache.flex.html.beads.ImageAndTextButtonView" /> - --> - <component id="ScrollingViewport" class="org.apache.flex.html.supportClasses.ScrollingViewport" /> - - <component id="DataGrid" class="org.apache.flex.html.DataGrid"/> - <component id="DataProviderChangeNotifier" class="org.apache.flex.html.beads.DataProviderChangeNotifier"/> - <component id="DataGridColumn" class="org.apache.flex.html.supportClasses.DataGridColumn"/> - <component id="DataGridLinesBead" class="org.apache.flex.html.beads.DataGridLinesBead"/> - - <component id="DateChooser" class="org.apache.flex.html.DateChooser"/> - <component id="DateField" class="org.apache.flex.html.DateField"/> - <component id="VerticalColumnLayout" class="org.apache.flex.html.beads.layouts.VerticalColumnLayout" /> - - <component id="ToolTipBead" class="org.apache.flex.html.accessories.ToolTipBead" /> - - <component id="LayoutChangeNotifier" class="org.apache.flex.html.beads.layouts.LayoutChangeNotifier"/> - <component id="ImageButton" class="org.apache.flex.html.ImageButton"/> - <component id="FlexibleFirstChildHorizontalLayout" class="org.apache.flex.html.beads.layouts.FlexibleFirstChildHorizontalLayout"/> - <component id="OneFlexibleChildVerticalLayout" class="org.apache.flex.html.beads.layouts.OneFlexibleChildVerticalLayout"/> - <component id="OneFlexibleChildHorizontalLayout" class="org.apache.flex.html.beads.layouts.OneFlexibleChildHorizontalLayout"/> - <component id="MXMLBeadViewBase" class="org.apache.flex.html.MXMLBeadViewBase"/> - - <component id="Border" class="org.apache.flex.html.supportClasses.Border"/> - -</componentPackage>
