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 37c3e7a6f982e6503447f2a90c9f29228b823e06
Author: Alex Harui <[email protected]>
AuthorDate: Mon Aug 13 23:29:37 2018 -0700

    add TLF and Reflection to SparkRoyale
---
 .../src/main/config/compile-js-config.xml          |   5 +-
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |   3 +-
 .../src/main/royale/mx/styles/IStyleClient.as      | 268 +++++++++++++++++++++
 .../src/main/config/compile-swf-config.xml         |   3 +
 4 files changed, 277 insertions(+), 2 deletions(-)

diff --git 
a/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml 
b/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml
index 5efdd15..c9785ab 100644
--- a/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml
+++ b/frameworks/js/projects/SparkRoyaleJS/src/main/config/compile-js-config.xml
@@ -68,10 +68,13 @@
             <path-element>../../../../../libs/EffectsJS.swc</path-element>
             <path-element>../../../../../libs/ExpressJS.swc</path-element>
             <path-element>../../../../../libs/GraphicsJS.swc</path-element>
+            <path-element>../../../../../libs/NetworkJS.swc</path-element>
             <path-element>../../../../../libs/ChartsJS.swc</path-element>
             <path-element>../../../../../libs/MXRoyaleJS.swc</path-element>
+            <path-element>../../../../../libs/ReflectionJS.swc</path-element>
+            <path-element>../../../../../libs/TextJS.swc</path-element>
+            <path-element>../../../../../libs/TLFJS.swc</path-element>
             <path-element>../../../../../libs/XMLJS.swc</path-element>
-           <path-element>../../../../../libs/NetworkJS.swc</path-element>
         </library-path>
         
         <namespaces>
diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as 
b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index e8f89a2..b9a17b9 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -105,7 +105,8 @@ internal class MXRoyaleClasses
        import mx.rpc.Responder; Responder;
        import mx.printing.FlexPrintJobScaleType; FlexPrintJobScaleType; 
        import mx.skins.RectangularBorder; RectangularBorder;
-       import mx.styles.ISimpleStyleClient; ISimpleStyleClient; 
+       import mx.styles.IStyleClient; IStyleClient; 
+    import mx.styles.ISimpleStyleClient; ISimpleStyleClient; 
        import mx.styles.StyleProxy; StyleProxy;
     import mx.styles.StyleManagerImpl; StyleManagerImpl;
        import mx.modules.IModuleInfo; IModuleInfo;
diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/styles/IStyleClient.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/styles/IStyleClient.as
new file mode 100644
index 0000000..6728e4e
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/styles/IStyleClient.as
@@ -0,0 +1,268 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+
+package mx.styles
+{
+
+import mx.styles.CSSStyleDeclaration;
+import mx.styles.ISimpleStyleClient;
+
+/**
+ *  This interface describes the properties and methods that an object 
+ *  must implement so that it can fully participate in the style subsystem. 
+ *  This interface is implemented by UIComponent.
+ *
+ *  <p>If the object does not need to store style values locally, it can 
+ *  implement the <code>ISimpleStyleClient</code> interface instead.</p>
+ *
+ *  @see mx.styles.ISimpleStyleClient
+ *  @see mx.styles.CSSStyleDeclaration
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+public interface IStyleClient extends ISimpleStyleClient
+{
+    
//--------------------------------------------------------------------------
+    //
+    //  Properties
+    //
+    
//--------------------------------------------------------------------------
+
+    //----------------------------------
+    //  className
+    //----------------------------------
+
+    /**
+     *  The name of the component class.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function get className():String;
+
+    //----------------------------------
+    //  inheritingStyles
+    //----------------------------------
+
+    /**
+     *  An object containing the inheritable styles for this component.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function get inheritingStyles():Object;
+
+    /**
+     *  @private
+     */
+    //function set inheritingStyles(value:Object):void;
+
+    //----------------------------------
+    //  nonInheritingStyles
+    //----------------------------------
+
+    /**
+     *  An object containing the noninheritable styles for this component.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function get nonInheritingStyles():Object;
+
+    /**
+     *  @private
+     */
+    //function set nonInheritingStyles(value:Object):void;
+
+    //----------------------------------
+    //  styleDeclaration
+    //----------------------------------
+
+    /**
+     *  The style declaration that holds the inline styles declared by this
+     *  object.
+     *
+     *  @see mx.styles.CSSStyleDeclaration
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function get styleDeclaration():CSSStyleDeclaration;
+
+    /**
+     *  @private
+     */
+    //function set styleDeclaration(value:CSSStyleDeclaration):void;
+
+    
//--------------------------------------------------------------------------
+    //
+    //  Methods
+    //
+    
//--------------------------------------------------------------------------
+
+    /**
+     *  Gets a style property that has been set anywhere in this
+     *  component's style lookup chain.
+     *
+     *  <p>This same method is used to get any kind of style property,
+     *  so the value returned may be a Boolean, String, Number, int,
+     *  uint (for an RGB color), Class (for a skin), or any kind of object.
+     *  Therefore the return type is specified as ~~.</p>
+     *
+     *  <p>If you are getting a particular style property, you will
+     *  know its type and will often want to store the result in a
+     *  variable of that type. You can use either the <code>as</code>
+     *  operator or coercion to do this. For example:</p>
+     *
+     *  <pre>
+     *  var backgroundColor:uint = getStyle("backgroundColor") as int;
+     *  
+     *  or
+     *  
+     *  var backgroundColor:uint = int(getStyle("backgroundColor"));
+     *  </pre>
+     *
+     *  <p>If the style property has not been set anywhere in the
+     *  style lookup chain, the value returned by the <code>getStyle()</code> 
method
+     *  is <code>undefined</code>.
+     *  Note that <code>undefined</code> is a special value that is
+     *  not the same as <code>false</code>, the empty String (<code>""</code>),
+     *  <code>NaN</code>, 0, or <code>null</code>.
+     *  No valid style value is ever <code>undefined</code>.
+     *  You can use the static method
+     *  <code>StyleManager.isValidStyleValue()</code>
+     *  to test whether the value was set.</p>
+     *
+     *  @param styleProp Name of the style property.
+     *
+     *  @return Style value.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    function getStyle(styleProp:String):*;
+
+    /**
+     *  Sets a style property on this component instance.
+     *
+     *  <p>This may override a style that was set globally.</p>
+     *
+     *  <p>Calling the <code>setStyle()</code> method can result in decreased 
performance.
+     *  Use it only when necessary.</p>
+     *
+     *  @param styleProp Name of the style property.
+     *
+     *  @param newValue New value for the style.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function setStyle(styleProp:String, newValue:*):void
+
+    /**
+     *  Deletes a style property from this component instance.
+     *
+     *  <p>This does not necessarily cause the <code>getStyle()</code> method 
to return
+     *  <code>undefined</code>.</p>
+     *
+     *  @param styleProp Name of the style property.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function clearStyle(styleProp:String):void;
+
+    /**
+     *  Returns an Array of CSSStyleDeclaration objects for the type selector
+     *  that applies to this component, or <code>null</code> if none exist.
+     *
+     *  <p>For example, suppose that component MyButton extends Button.
+     *  This method first looks for a MyButton selector; then, it looks for a 
Button type selector;
+     *  finally, it looks for a UIComponent type selector.</p>
+     *
+     *  @return Array of CSSStyleDeclaration objects.
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function getClassStyleDeclarations():Array; // of CSSStyleDeclaration;
+
+    /**
+     *  Propagates style changes to the children of this component.
+     *
+     *  @param styleProp Name of the style property.
+     *
+     *  @param recursive Whether to propagate the style changes to the 
children's children. 
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function notifyStyleChangeInChildren(styleProp:String,
+    //                                     recursive:Boolean):void;
+
+    /**
+     *  Sets up the internal style cache values so that the 
<code>getStyle()</code> 
+     *  method functions.
+     *  If this object already has children, then reinitialize the children's
+     *  style caches.
+     *
+     *  @param recursive Regenerate the proto chains of the children. 
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function regenerateStyleCache(recursive:Boolean):void;
+
+    /**
+     *  Registers the EffectManager as one of the event listeners for each 
effect event.
+     *
+     *  @param effects An Array of Strings of effect names. 
+     *  
+     *  @langversion 3.0
+     *  @playerversion Flash 9
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    //function registerEffects(effects:Array /* of String */):void
+}
+
+}
diff --git 
a/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml 
b/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml
index 99547c5..20a0a17 100644
--- a/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml
+++ b/frameworks/projects/SparkRoyale/src/main/config/compile-swf-config.xml
@@ -36,6 +36,9 @@
             <path-element>../../../../../libs/Collections.swc</path-element>
             <path-element>../../../../../libs/Graphics.swc</path-element>
             <path-element>../../../../../libs/MXRoyale.swc</path-element>
+            <path-element>../../../../../libs/Reflection.swc</path-element>
+            <path-element>../../../../../libs/Text.swc</path-element>
+            <path-element>../../../../../libs/TLF.swc</path-element>
             <path-element>../../../../../libs/XML.swc</path-element>
            <path-element>../../../../../libs/Network.swc</path-element>
         </external-library-path>

Reply via email to