[MAVEN-BUILD] Royale-typedefs - Build # 551 - Still Failing
The Apache Jenkins build system has built Royale-typedefs (build #551) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-typedefs/551/ to view the results.
[royale-compiler] branch develop updated: fix handling of inline text in TLF MXML markup
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git The following commit(s) were added to refs/heads/develop by this push: new 616517c fix handling of inline text in TLF MXML markup 616517c is described below commit 616517cdb0e7fa0ee7ae2cb5cc0fbe5f712ff083 Author: Alex Harui AuthorDate: Fri Aug 10 15:45:41 2018 -0700 fix handling of inline text in TLF MXML markup --- .../org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java index c910880..aedbbd3 100644 --- a/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java +++ b/compiler/src/main/java/org/apache/royale/compiler/internal/tree/mxml/MXMLTreeBuilder.java @@ -381,6 +381,8 @@ public class MXMLTreeBuilder else if (typeName.equals(IASLanguageConstants.Array)) { result = mxmlDialect.parseArray(project, text, flags); +if (result == null && flags.contains(TextParsingFlags.RICH_TEXT_CONTENT)) +result = mxmlDialect.parseString(project, text, flags); } else if (typeName.equals(IASLanguageConstants.Object) || typeName.equals(IASLanguageConstants.ANY_TYPE))
[royale-asjs] branch feature/MXRoyale updated: Panel needs its styles
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 5843e30 Panel needs its styles 5843e30 is described below commit 5843e30071bcce0160cfe7103a095a7f314e3515 Author: Alex Harui AuthorDate: Fri Aug 10 10:53:04 2018 -0700 Panel needs its styles --- frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as index 232af0d..9b2e0ba 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/containers/Panel.as @@ -527,6 +527,7 @@ public class Panel extends Container public function Panel() { super(); +typeNames += " Panel"; } //--
[royale-asjs] 07/09: SWF code could presume that all collections supported Proxy and handle [] access, but JS code can't so we must use the collection APIs
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit d364682c5ecf5b082de49ab3c65cc1a2c5066a70 Author: Alex Harui AuthorDate: Fri Aug 10 09:48:15 2018 -0700 SWF code could presume that all collections supported Proxy and handle [] access, but JS code can't so we must use the collection APIs --- .../controls/treeClasses/HierarchicalViewCursor.as | 54 -- 1 file changed, 39 insertions(+), 15 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalViewCursor.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalViewCursor.as index fea9433..b89c206 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalViewCursor.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalViewCursor.as @@ -20,13 +20,13 @@ package mx.controls.treeClasses { - import org.apache.royale.events.EventDispatcher; - import mx.collections.CursorBookmark; import mx.collections.ICollectionView; import mx.collections.IViewCursor; import mx.events.CollectionEvent; import mx.events.CollectionEventKind; + + import org.apache.royale.events.EventDispatcher; [ExcludeClass] @@ -312,7 +312,8 @@ public class HierarchicalViewCursor extends EventDispatcher var n:int; var i:int; var childNodes:ICollectionView; - var sameParent:Object; +var cursor:IViewCursor; +var sameParent:Object; var nodeParents:Array = getParentStack(node); var curParents:Array = getParentStack(currentNode); @@ -343,16 +344,17 @@ public class HierarchicalViewCursor extends EventDispatcher childNodes = model; } // Walk it until you hit one or the other. -n = childNodes.length; +cursor = childNodes.createCursor(); +do { -var child:Object = childNodes[i]; +var child:Object = cursor.current; if (child == curParent) return false; if (child == nodeParent) return true; -} +} while (cursor.moveNext()); } } @@ -364,17 +366,18 @@ public class HierarchicalViewCursor extends EventDispatcher // If we get here, they have the same parentage or one or both // had a root parent. Who's first? childNodes = model; -n = childNodes.length; - for (i = 0; i < n; i++) +cursor = childNodes.createCursor(); +do { -child = childNodes[i]; +child = cursor.current; if (child == currentNode) return false; if (child == node) return true; -} +} while (cursor.moveNext()); + return false; } @@ -471,7 +474,7 @@ public class HierarchicalViewCursor extends EventDispatcher dataDescriptor.hasChildren(currentNode, model)) { var previousChildNodes:Object = childNodes; - childNodes = dataDescriptor.getChildren(currentNode, model); + childNodes = arrayLike(dataDescriptor.getChildren(currentNode, model)); if (childNodes.length > 0) { childIndexStack.push(currentChildIndex); @@ -514,7 +517,7 @@ public class HierarchicalViewCursor extends EventDispatcher dataDescriptor.isBranch(grandParent, model) && dataDescriptor.hasChildren(grandParent, model)) { - childNodes = dataDescriptor.getChildren(grandParent, model); + childNodes = arrayLike(dataDescriptor.getChildren(grandParent, model)); } else { @@ -595,7 +598,7 @@ public class HierarchicalViewCursor extends EventDispatcher dataDescriptor.isBranch(grandParent, model) && dataDescriptor.hasChildren(grandParent, model)) { - childNodes = dataDescriptor.getChildren(grandParent, model); + childNodes = arrayLike(dataDescriptor.getChildren(grandParent, model)); } else { @@ -647,7 +650,7
[royale-asjs] 02/09: add more APIs
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit f30fba39981fe0f9e3d6fca32ee7469df2156b96 Author: Alex Harui AuthorDate: Thu Aug 9 17:06:44 2018 -0700 add more APIs --- .../src/main/royale/org/apache/royale/collections/ITreeData.as | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ITreeData.as b/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ITreeData.as index bcb777f..444731e 100644 --- a/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ITreeData.as +++ b/frameworks/projects/Collections/src/main/royale/org/apache/royale/collections/ITreeData.as @@ -32,5 +32,7 @@ package org.apache.royale.collections function getDepth(node:Object):int; function isOpen(node:Object):Boolean; function hasChildren(node:Object):Boolean; +function openNode(node:Object):void; +function closeNode(node:Object):void; } }
[royale-asjs] 03/09: use interface
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit cbc910d02d26a6207acfa11e80360ed3dad20421 Author: Alex Harui AuthorDate: Thu Aug 9 17:06:58 2018 -0700 use interface --- .../html/beads/controllers/TreeSingleSelectionMouseController.as | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as index d5d03ce..8266166 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/controllers/TreeSingleSelectionMouseController.as @@ -18,7 +18,7 @@ package org.apache.royale.html.beads.controllers { - import org.apache.royale.collections.TreeData; + import org.apache.royale.collections.ITreeData; import org.apache.royale.core.IStrand; import org.apache.royale.events.Event; import org.apache.royale.events.IEventDispatcher; @@ -66,15 +66,11 @@ package org.apache.royale.html.beads.controllers */ override protected function selectedHandler(event:ItemClickedEvent):void { - var treeData:TreeData = listModel.dataProvider as TreeData; + var treeData:ITreeData = listModel.dataProvider as ITreeData; if (treeData == null) return; var node:Object = event.data; - // clear any previous selections - listModel.selectedIndex = -1; - IEventDispatcher(_strand).dispatchEvent(new Event("change")); - if (treeData.isOpen(node)) { treeData.closeNode(node); } else {
[royale-asjs] 06/09: refactor PanelView so we can override layout. The flexbox layout did not like children being absolute positioned which fools its size calculations so we will switch to using the F
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit da6f7191b0cb3ad941cc531eb61ad1f48c45e9d1 Author: Alex Harui AuthorDate: Fri Aug 10 00:08:39 2018 -0700 refactor PanelView so we can override layout. The flexbox layout did not like children being absolute positioned which fools its size calculations so we will switch to using the Flex BoxLayout --- .../org/apache/royale/html/beads/PanelView.as | 68 -- .../MXRoyale/src/main/resources/defaults.css | 2 +- .../main/royale/mx/containers/beads/PanelView.as | 18 +- 3 files changed, 54 insertions(+), 34 deletions(-) diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/PanelView.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/PanelView.as index e356e94..ed26d4d 100644 --- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/PanelView.as +++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/PanelView.as @@ -160,21 +160,6 @@ package org.apache.royale.html.beads _titleBar.id = "panelTitleBar"; - COMPILE::SWF { - _titleBar.percentWidth = 100; - - if (_titleBar.style == null) { - _titleBar.style = new SimpleCSSStylesWithFlex(); - } - _titleBar.style.flexGrow = 0; - _titleBar.style.order = 1; - } - - COMPILE::JS { - _titleBar.element.style["flex-grow"] = "0"; - _titleBar.element.style["order"] = "1"; - } - _titleBar.addEventListener("close", handleClose); // replace the TitleBar's model with the Panel's model (it implements ITitleBarModel) so that @@ -197,21 +182,6 @@ package org.apache.royale.html.beads // add the viewport bead to the content area. if (transferViewportBead) _contentArea.addBead(transferViewportBead); - COMPILE::SWF { - _contentArea.percentWidth = 100; - - if (_contentArea.style == null) { - _contentArea.style = new SimpleCSSStylesWithFlex(); - } - _contentArea.style.flexGrow = 1; - _contentArea.style.order = 2; - } - - COMPILE::JS { - _contentArea.element.style["flex-grow"] = "1"; - _contentArea.element.style["order"] = "2"; - _contentArea.element.style["overflow"] = "auto"; // temporary - } } COMPILE::SWF { @@ -228,9 +198,45 @@ package org.apache.royale.html.beads (_strand as IContainerBaseStrandChildrenHost).$addElement(contentArea as IChild); } +setupLayout(); +} + +protected function setupLayout():void +{ +COMPILE::JS { +_titleBar.element.style["flex-grow"] = "0"; +_titleBar.element.style["order"] = "1"; +} + +COMPILE::SWF { +_contentArea.percentWidth = 100; + +if (_contentArea.style == null) { +_contentArea.style = new SimpleCSSStylesWithFlex(); +} +_contentArea.style.flexGrow = 1; +_contentArea.style.order = 2; +} + +COMPILE::SWF { +_titleBar.percentWidth = 100; + +if (_titleBar.style == null) { +_titleBar.style = new SimpleCSSStylesWithFlex(); +} +_titleBar.style.flexGrow = 0; +_titleBar.style.order = 1; +} + +COMPILE::JS { +_contentArea.element.style["flex-grow"] = "1"; +_contentArea.element.style["order"] = "2"; +_contentArea.element.style["overflow"] = "auto"; // temporary +} + // Now give the Panel its own layout var layoutBead:IBeadLayout = new VerticalFlexLayout(); - value.addBead(layoutBead); +
[royale-asjs] 01/09: fix open node
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 495f46593c87708aa7ea191d0b5cc6c8c8a41aa0 Author: Alex Harui AuthorDate: Thu Aug 9 17:06:00 2018 -0700 fix open node --- .../treeClasses/HierarchicalCollectionView.as | 152 + 1 file changed, 94 insertions(+), 58 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as index 6d8fa1e..66ffe55 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as @@ -34,6 +34,7 @@ import mx.events.PropertyChangeEvent; import mx.utils.IXMLNotifiable; import mx.utils.XMLNotifier; +import org.apache.royale.events.CollectionEvent; import org.apache.royale.events.EventDispatcher; import org.apache.royale.collections.ITreeData; @@ -93,10 +94,10 @@ public class HierarchicalCollectionView extends EventDispatcher 0, true); */ -treeData.addEventListener(CollectionEvent.COLLECTION_CHANGE, +treeData.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, collectionChangeHandler); -addEventListener(CollectionEvent.COLLECTION_CHANGE, +addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, expandEventHandler); dataDescriptor = treeDataDescriptor; @@ -412,9 +413,9 @@ public class HierarchicalCollectionView extends EventDispatcher oldValue:Object = null, newValue:Object = null):void { - var event:CollectionEvent = - new CollectionEvent(CollectionEvent.COLLECTION_CHANGE); - event.kind = CollectionEventKind.UPDATE; + var event:mx.events.CollectionEvent = + new mx.events.CollectionEvent(mx.events.CollectionEvent.COLLECTION_CHANGE); + event.kind = mx.events.CollectionEventKind.UPDATE; var objEvent:PropertyChangeEvent = new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE); @@ -431,9 +432,9 @@ public class HierarchicalCollectionView extends EventDispatcher */ public function refresh():Boolean { - var event:CollectionEvent = - new CollectionEvent(CollectionEvent.COLLECTION_CHANGE); - event.kind = CollectionEventKind.REFRESH; + var event:mx.events.CollectionEvent = + new mx.events.CollectionEvent(mx.events.CollectionEvent.COLLECTION_CHANGE); + event.kind = mx.events.CollectionEventKind.REFRESH; dispatchEvent(event); return true; @@ -451,7 +452,7 @@ public class HierarchicalCollectionView extends EventDispatcher { if (oldChildren != null) { - oldChildren.removeEventListener(CollectionEvent.COLLECTION_CHANGE, + oldChildren.removeEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, nestedCollectionChangeHandler); } if (children) @@ -459,7 +460,7 @@ public class HierarchicalCollectionView extends EventDispatcher /* children.addEventListener(CollectionEvent.COLLECTION_CHANGE, nestedCollectionChangeHandler, false, 0, true);*/ -children.addEventListener(CollectionEvent.COLLECTION_CHANGE, + children.addEventListener(mx.events.CollectionEvent.COLLECTION_CHANGE, nestedCollectionChangeHandler); childrenMap.put(node, children); } @@ -573,7 +574,7 @@ public class HierarchicalCollectionView extends EventDispatcher /** * @private */ - public function collectionChangeHandler(event:CollectionEvent):void + public function collectionChangeHandler(event:mx.events.CollectionEvent):void { var i:int; var n:int; @@ -583,21 +584,21 @@ public class HierarchicalCollectionView extends EventDispatcher var node:Object; var items:Array; - var convertedEvent:CollectionEvent; + var
[royale-asjs] 08/09: get tree working
This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git commit 3a28b0a54bb6469b0b1afdceaa0a2f60b61cf823 Author: Alex Harui AuthorDate: Fri Aug 10 09:48:38 2018 -0700 get tree working --- .../royale/mx/controls/treeClasses/HierarchicalCollectionView.as | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as index 66ffe55..77427fb 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/treeClasses/HierarchicalCollectionView.as @@ -1070,7 +1070,7 @@ public class HierarchicalCollectionView extends EventDispatcher var offset:int = getItemIndex(node); //otherwise seek to offset and get the depth var bookmark:CursorBookmark = iterator.bookmark; -iterator.seek(bookmark, offset); +iterator.seek(CursorBookmark.FIRST, offset); var depth:int = getCurrentCursorDepth(); //put the cursor back iterator.seek(bookmark, 0); @@ -1131,6 +1131,7 @@ public class HierarchicalCollectionView extends EventDispatcher private function dispatchAddOrRemoveEvents(node:Object, index:int, type:String):int { +var adding:Boolean = (type == org.apache.royale.events.CollectionEvent.ITEM_ADDED); var children:ICollectionView = getChildren(node); var cursor:IViewCursor = children.createCursor(); do @@ -1140,6 +1141,10 @@ public class HierarchicalCollectionView extends EventDispatcher collectionEvent.item = item; collectionEvent.index = index++; dispatchEvent(collectionEvent); +if (adding) +currentLength++; +else +currentLength--; if (isOpen(item)) { index = dispatchAddOrRemoveEvents(node, index, type);
[royale-asjs] branch feature/MXRoyale updated (735d5ef -> d6b10e0)
This is an automated email from the ASF dual-hosted git repository. aharui pushed a change to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git. from 735d5ef Add RichTextEditor.as new 495f465 fix open node new f30fba3 add more APIs new cbc910d use interface new ff7c97d don't set dimensions if we don't need to new 52b0b0c move initComplete to after layout is setup new da6f719 refactor PanelView so we can override layout. The flexbox layout did not like children being absolute positioned which fools its size calculations so we will switch to using the Flex BoxLayout new d364682 SWF code could presume that all collections supported Proxy and handle [] access, but JS code can't so we must use the collection APIs new 3a28b0a get tree working new d6b10e0 allow for TitleBar substitution The 9 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: .../org/apache/royale/html/beads/PanelView.as | 76 +- .../TreeSingleSelectionMouseController.as | 8 +- .../html/supportClasses/AccordionItemRenderer.as | 2 +- .../org/apache/royale/collections/ITreeData.as | 2 + .../MXRoyale/src/main/resources/defaults.css | 16 ++- .../src/main/resources/mx-royale-manifest.xml | 2 + .../MXRoyale/src/main/royale/MXRoyaleClasses.as| 1 + .../models/PanelModel.as => PanelTitleBar.as} | 30 ++-- .../main/royale/mx/containers/beads/BoxLayout.as | 6 +- .../main/royale/mx/containers/beads/PanelView.as | 21 ++- .../treeClasses/HierarchicalCollectionView.as | 159 + .../controls/treeClasses/HierarchicalViewCursor.as | 54 +-- .../MXRoyale/src/main/royale/mx/core/Container.as | 2 +- 13 files changed, 236 insertions(+), 143 deletions(-) copy frameworks/projects/MXRoyale/src/main/royale/mx/containers/{beads/models/PanelModel.as => PanelTitleBar.as} (73%)
[royale-asjs] branch feature/MXRoyale updated: Add RichTextEditor.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 735d5ef Add RichTextEditor.as 735d5ef is described below commit 735d5ef7aa175b7a2ba2c9156d8aebc32927dd06 Author: alinakazi AuthorDate: Fri Aug 10 17:30:13 2018 +0500 Add RichTextEditor.as --- .../src/main/royale/mx/controls/RichTextEditor.as | 795 + 1 file changed, 795 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as new file mode 100644 index 000..c73fd4b --- /dev/null +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/RichTextEditor.as @@ -0,0 +1,795 @@ + +// +// 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.controls +{ + /* import flash.events.Event; + import flash.events.FocusEvent; + import flash.events.KeyboardEvent; + import flash.events.MouseEvent; + import flash.text.engine.FontPosture; + import flash.text.engine.FontWeight; + import flash.ui.Keyboard; + import flash.utils.Dictionary; + + import mx.events.FlexEvent; + + import spark.components.richTextEditorClasses.AlignTool; + import spark.components.richTextEditorClasses.BoldTool; + import spark.components.richTextEditorClasses.BulletTool; + import spark.components.richTextEditorClasses.ColorTool; + import spark.components.richTextEditorClasses.FontTool; + import spark.components.richTextEditorClasses.ItalicTool; + import spark.components.richTextEditorClasses.LinkTool; + import spark.components.richTextEditorClasses.SizeTool; + import spark.components.richTextEditorClasses.UnderlineTool; + import spark.events.ColorChangeEvent; + import spark.events.IndexChangeEvent; + import spark.events.TextOperationEvent; + + import flashx.textLayout.conversion.ConversionType; + import flashx.textLayout.conversion.TextConverter; + import flashx.textLayout.edit.ElementRange; + import flashx.textLayout.edit.IEditManager; + import flashx.textLayout.edit.ISelectionManager; + import flashx.textLayout.edit.SelectionState; + import flashx.textLayout.elements.FlowGroupElement; + import flashx.textLayout.elements.FlowLeafElement; + import flashx.textLayout.elements.LinkElement; + import flashx.textLayout.elements.ListElement; + import flashx.textLayout.elements.ParagraphElement; + import flashx.textLayout.elements.TextFlow; + import flashx.textLayout.formats.TextAlign; + import flashx.textLayout.formats.TextDecoration; + import flashx.textLayout.formats.TextLayoutFormat; + */ + // for asdoc + /* [Experimental] + [Event(name = "change", type = "flash.events.Event")] + [Style(name = "borderColor", inherit = "no", type = "unit")] + [Style(name = "focusColor", inherit = "yes", type = "unit")] + */ + import mx.core.UIComponent; + + public class RichTextEditor extends UIComponent + { + + + private var _htmlText:String; + private var _text:String; + + /*private var _htmlTextChanged:Boolean = false; + private var _prompt:String = ""; + private var _stylesChanged:Dictionary = new Dictionary; + private var _textFlow:TextFlow; + private var _linkSelected:Boolean = false; + private var _urlRegExpression:RegExp = new RegExp("^(https?://(www\\.)?|www\\.)[-._~:/?#\\[\\]@!$&'()*+,;=a-z0-9]+$", 'i'); + private const _defaultLinkText:String = "http://;; + private var _linkEl:LinkElement + private var _lastRange:ElementRange; + +
[MAVEN-BUILD] Royale-typedefs - Build # 550 - Still Failing
The Apache Jenkins build system has built Royale-typedefs (build #550) Status: Still Failing Check console output at https://builds.apache.org/job/Royale-typedefs/550/ to view the results.
[royale-asjs] branch feature/MXRoyale updated: Update FocusManager.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 3fdcc55 Update FocusManager.as 3fdcc55 is described below commit 3fdcc55318abb005090521bb4e6abf5aa1879e8e Author: alinakazi AuthorDate: Fri Aug 10 17:13:29 2018 +0500 Update FocusManager.as --- .../MXRoyale/src/main/royale/mx/managers/FocusManager.as | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as index a5b6e10..10635a8 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/FocusManager.as @@ -2365,11 +2365,21 @@ public class FocusManager extends EventDispatcher implements IFocusManager if (target is UIComponent) target["element"].focus(); } -public function getNextFocusManagerComponent( + public function getNextFocusManagerComponent( backward:Boolean = false):IFocusManagerComponent { return null; } +public function setFocus(o:IFocusManagerComponent):void +{ +// trace("FM " + this + " setting focus to " + o); + +o.setFocus(); + +if (hasEventListener("setFocus")) + dispatchEvent(new Event("setFocus")); +// trace("FM set focus"); +} } }
[royale-asjs] branch feature/MXRoyale updated: Update IFocusManager.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 553696c Update IFocusManager.as 553696c is described below commit 553696c1eb7f809e16b68782c480b171a7f7c3d9 Author: alinakazi AuthorDate: Fri Aug 10 17:12:19 2018 +0500 Update IFocusManager.as --- .../projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as index 88f5bd6..11314cb 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/managers/IFocusManager.as @@ -49,6 +49,7 @@ public interface IFocusManager extends IEventDispatcher // //-- function getNextFocusManagerComponent(backward:Boolean = false):IFocusManagerComponent; + function setFocus(o:IFocusManagerComponent):void; }
[royale-asjs] branch feature/MXRoyale updated: Update RemoteObject.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new a64fb46 Update RemoteObject.as a64fb46 is described below commit a64fb46f9695f6506400d41162254795da9b7883 Author: alinakazi AuthorDate: Fri Aug 10 17:01:15 2018 +0500 Update RemoteObject.as --- .../main/royale/mx/rpc/remoting/RemoteObject.as| 25 ++ 1 file changed, 25 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/RemoteObject.as b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/RemoteObject.as index cf6a9b0..34b2d22 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/RemoteObject.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/rpc/remoting/RemoteObject.as @@ -32,6 +32,31 @@ import mx.rpc.mxml.Concurrency; use namespace mx_internal; */ + +/** + * The result event is dispatched when a service call successfully returns and + * isn't handled by the Operation itself. + * @eventType mx.rpc.events.ResultEvent.RESULT + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 3 + */ +[Event(name="result", type="mx.rpc.events.ResultEvent")] + +/** + * The fault event is dispatched when a service call fails and isn't handled by + * the Operation itself. + * @eventType mx.rpc.events.FaultEvent.FAULT + * + * @langversion 3.0 + * @playerversion Flash 9 + * @playerversion AIR 1.1 + * @productversion Flex 3 + */ +[Event(name="fault", type="mx.rpc.events.FaultEvent")] + /** * The RemoteObject class gives you access to classes on a remote application server. *
[royale-asjs] branch feature/MXRoyale updated: Update AdvancedDataGridColumn.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 2f4701d Update AdvancedDataGridColumn.as 2f4701d is described below commit 2f4701deac1efe984d6833f4d6b585e88c75e7e3 Author: alinakazi AuthorDate: Fri Aug 10 16:39:44 2018 +0500 Update AdvancedDataGridColumn.as --- .../advancedDataGridClasses/AdvancedDataGridColumn.as | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as index 7be476d..a3b74d1 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/advancedDataGridClasses/AdvancedDataGridColumn.as @@ -42,7 +42,10 @@ import mx.core.mx_internal; import mx.utils.StringUtil; use namespace mx_internal; - +COMPILE::JS +{ +import goog.DEBUG; +} //-- // Styles //-- @@ -359,7 +362,17 @@ public class AdvancedDataGridColumn * @productversion Royale 0.9.3 */ // public var sortDescending:Boolean = false; - +public function get textAlign():Object +{ +if (GOOG::DEBUG) +trace("textAlign not implemented"); +return 0; +} +public function set textAlign(value:Object):void +{ +if (GOOG::DEBUG) +trace("textAlign not implemented"); +} //-- // itemRenderer //-- @@ -2034,4 +2047,4 @@ public class AdvancedDataGridColumn } } -} \ No newline at end of file +}
[MAVEN-BUILD] Royale-typedefs - Build # 549 - Failure
The Apache Jenkins build system has built Royale-typedefs (build #549) Status: Failure Check console output at https://builds.apache.org/job/Royale-typedefs/549/ to view the results.
[royale-asjs] branch feature/MXRoyale updated: Update AdvancedListBase.as
This is an automated email from the ASF dual-hosted git repository. alinakazi pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/feature/MXRoyale by this push: new 122aea1 Update AdvancedListBase.as 122aea1 is described below commit 122aea143c59d1d805fa206aa0e6bd78c10b271e Author: alinakazi AuthorDate: Fri Aug 10 16:04:47 2018 +0500 Update AdvancedListBase.as --- .../main/royale/mx/controls/listClasses/AdvancedListBase.as| 10 ++ 1 file changed, 10 insertions(+) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as index 68dd27b..8574625 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/listClasses/AdvancedListBase.as @@ -1685,7 +1685,17 @@ public class AdvancedListBase extends UIComponent /* extends ScrollControlBase // Properties // //-- + public function get headerStyleName():String +{ +return ""; +} +/** + * @private + */ +public function set headerStyleName(value:String):void +{ +} //-- // allowDragSelection //--
[royale-asjs] branch develop updated: this was left from last fix to blog example 10
This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-asjs.git The following commit(s) were added to refs/heads/develop by this push: new 74ace88 this was left from last fix to blog example 10 74ace88 is described below commit 74ace88685c8861b25d06a32696b0da5c2b08773 Author: Carlos Rovira AuthorDate: Fri Aug 10 11:57:34 2018 +0200 this was left from last fix to blog example 10 --- .../src/main/royale/BE0010_Customization_through_the_Royale_API.mxml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml b/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml index 9f655c3..510e819 100644 --- a/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml +++ b/examples/blog/BE0010_Customization_through_the_Royale_API/src/main/royale/BE0010_Customization_through_the_Royale_API.mxml @@ -55,7 +55,7 @@ private function expandButtons(event:Event = null):void { var alertView:AlertView = alert.getBeadByType(IBeadView) as AlertView; - + if(event == null) { var verticalLayout:VerticalLayout = new VerticalLayout(); @@ -66,7 +66,7 @@ } var layout:HorizontalLayout = alertView.controlBar.getBeadByType(IBeadLayout) as HorizontalLayout; - layout.itemsExpand = check.selected; +layout.itemsExpand = check.selected; } // Event handler function for displaying the selected Alert button.