You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ca...@apache.org on 2020/08/22 16:40:11 UTC

[royale-asjs] branch develop updated: jewel: refactor ApplicationResponsiveView to ResponsiveView

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 8fabcc0  jewel: refactor ApplicationResponsiveView to ResponsiveView
8fabcc0 is described below

commit 8fabcc0ae1d91dddbc0ef409923e8e7c9dba511d
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sat Aug 22 18:40:01 2020 +0200

    jewel: refactor ApplicationResponsiveView to ResponsiveView
---
 examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml    |  4 ++--
 frameworks/projects/Jewel/src/main/resources/defaults.css      |  7 +------
 .../projects/Jewel/src/main/resources/jewel-manifest.xml       |  2 +-
 .../jewel/{ApplicationResponsiveView.as => ResponsiveView.as}  |  8 ++++----
 .../Jewel/src/main/royale/org/apache/royale/jewel/View.as      |  4 ++--
 frameworks/projects/Jewel/src/main/sass/_global.sass           | 10 +++++-----
 6 files changed, 15 insertions(+), 20 deletions(-)

diff --git a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
index cbaa0ac..bb741a0 100644
--- a/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
+++ b/examples/jewel/TourDeJewel/src/main/royale/MainContent.mxml
@@ -17,7 +17,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 
 -->
-<j:ApplicationResponsiveView xmlns:fx="http://ns.adobe.com/mxml/2009"
+<j:ResponsiveView xmlns:fx="http://ns.adobe.com/mxml/2009"
     xmlns:j="library://ns.apache.org/royale/jewel"
     xmlns:js="library://ns.apache.org/royale/basic"
     xmlns:html="library://ns.apache.org/royale/html"
@@ -382,4 +382,4 @@ limitations under the License.
     </j:ApplicationMainContent>
 
     <!-- <j:ResponsiveSizeMonitor/> -->
-</j:ApplicationResponsiveView>
+</j:ResponsiveView>
diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css
index 866e8d6..65da0b7 100644
--- a/frameworks/projects/Jewel/src/main/resources/defaults.css
+++ b/frameworks/projects/Jewel/src/main/resources/defaults.css
@@ -53,12 +53,7 @@ j|View {
   IBeadLayout: ClassReference("org.apache.royale.jewel.beads.layouts.ViewLayout");
 }
 
-j|ApplicationResponsiveView {
-  IBeadView: ClassReference("org.apache.royale.html.beads.GroupView");
-  IBeadLayout: ClassReference("org.apache.royale.jewel.beads.layouts.NullLayout");
-}
-
-.applicationResponsiveView {
+.responsive-view {
   display: inline-flex;
   width: 100%;
   height: 100%;
diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
index 8cb029b..ea7a87b 100644
--- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
+++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml
@@ -129,7 +129,7 @@
 
     <component id="DateChooserModel" class="org.apache.royale.jewel.beads.models.DateChooserModel"/>
 
-    <component id="ApplicationResponsiveView" class="org.apache.royale.jewel.ApplicationResponsiveView"/>
+    <component id="ResponsiveView" class="org.apache.royale.jewel.ResponsiveView"/>
 
     <component id="Bar" class="org.apache.royale.jewel.Bar"/>
     <component id="TopAppBar" class="org.apache.royale.jewel.TopAppBar"/>
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ApplicationResponsiveView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ResponsiveView.as
similarity index 85%
rename from frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ApplicationResponsiveView.as
rename to frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ResponsiveView.as
index 4c4b1fa..ea09190 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ApplicationResponsiveView.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/ResponsiveView.as
@@ -21,7 +21,7 @@ package org.apache.royale.jewel
 	import org.apache.royale.jewel.View;
 
 	/**
-	 *  The ApplicationResponsiveView class is the main Container component capable of parenting other
+	 *  The ResponsiveView class is the main Container component capable of parenting other
 	 *  components in an Application
 	 *  It normaly can host a TopAppBar, a Drawer and a Container with other organized content for
 	 *  navigation
@@ -31,7 +31,7 @@ package org.apache.royale.jewel
 	 *  @playerversion AIR 2.6
 	 *  @productversion Royale 0.9.4
 	 */
-	public class ApplicationResponsiveView extends View
+	public class ResponsiveView extends View
 	{
 		/**
 		 *  constructor.
@@ -41,11 +41,11 @@ package org.apache.royale.jewel
 		 *  @playerversion AIR 2.6
 		 *  @productversion Royale 0.9.4
 		 */
-		public function ApplicationResponsiveView()
+		public function ResponsiveView()
 		{
 			super();
 
-            typeNames = "applicationResponsiveView";
+            typeNames = "responsive-view";
 		}
 	}
 }
diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/View.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/View.as
index 4ca4da7..8dedef3 100644
--- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/View.as
+++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/View.as
@@ -35,9 +35,9 @@ package org.apache.royale.jewel
      *  Application.  It is generally used as the root tag of MXML
      *  documents and UI controls and containers are added to it.
 	 * 
-	 *  For responsive applications you can use ApplicationResponsiveView instead.
+	 *  For responsive applications you can use ResponsiveView instead.
 	 * 
-	 *  @see org.apache.royale.jewel.ApplicationResponsiveView
+	 *  @see org.apache.royale.jewel.ResponsiveView
      *  
      *  @langversion 3.0
      *  @playerversion Flash 10.2
diff --git a/frameworks/projects/Jewel/src/main/sass/_global.sass b/frameworks/projects/Jewel/src/main/sass/_global.sass
index cc43255..1a50509 100644
--- a/frameworks/projects/Jewel/src/main/sass/_global.sass
+++ b/frameworks/projects/Jewel/src/main/sass/_global.sass
@@ -51,11 +51,11 @@ j|View
 	IBeadView: ClassReference("org.apache.royale.html.beads.GroupView")
 	IBeadLayout: ClassReference("org.apache.royale.jewel.beads.layouts.ViewLayout")
 
-j|ApplicationResponsiveView
-	IBeadView: ClassReference("org.apache.royale.html.beads.GroupView")
-	IBeadLayout: ClassReference("org.apache.royale.jewel.beads.layouts.NullLayout")
+j|ResponsiveView
+	// IBeadView: ClassReference("org.apache.royale.html.beads.GroupView")
+	// IBeadLayout: ClassReference("org.apache.royale.jewel.beads.layouts.NullLayout")
 
-.applicationResponsiveView
+.responsive-view
 	display: inline-flex
 	width: 100%
 	height: 100%
@@ -164,4 +164,4 @@ hr
 	width: 250px
 	
 	strong
-		color: yellow
\ No newline at end of file
+		color: yellow