You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2016/11/08 15:26:03 UTC

[45/50] git commit: [flex-asjs] [refs/heads/feature-autobuild/example-maven-dirs] - MDL swc tasks for maven and Spacer

MDL swc tasks for maven and Spacer


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0d3b2794
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0d3b2794
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0d3b2794

Branch: refs/heads/feature-autobuild/example-maven-dirs
Commit: 0d3b27946e299ffbf526dc43bff6c5eace9fdfb0
Parents: 06a57c9
Author: Carlos Rovira <ca...@apache.org>
Authored: Mon Nov 7 00:10:28 2016 +0100
Committer: Carlos Rovira <ca...@apache.org>
Committed: Mon Nov 7 00:30:37 2016 +0100

----------------------------------------------------------------------
 examples/flexjs/MDLExample/.vscode/tasks.json   |  7 +--
 .../MaterialDesignLite/.vscode/tasks.json       | 10 +++
 .../src/main/flex/org/apache/flex/mdl/Spacer.as | 65 ++++++++++++++++++++
 .../src/main/resources/mdl-manifest.xml         |  1 +
 4 files changed, 79 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0d3b2794/examples/flexjs/MDLExample/.vscode/tasks.json
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/.vscode/tasks.json b/examples/flexjs/MDLExample/.vscode/tasks.json
index ac2c02d..c207148 100644
--- a/examples/flexjs/MDLExample/.vscode/tasks.json
+++ b/examples/flexjs/MDLExample/.vscode/tasks.json
@@ -1,11 +1,10 @@
 {
 	// See https://go.microsoft.com/fwlink/?LinkId=733558
 	// for the documentation about the tasks.json format
+	//"--flexHome=/Users/carlosrovira/Dev/Flex/sdks/flexjs-0.8.0"
 	"version": "0.1.0",
-	"command": "asconfigc",
+	"command": "mvn",
+	"args": ["clean", "install", "-DskipTests"],
 	"isShellCommand": true,
-	"args": [
-		"--flexHome=/Users/carlosrovira/Dev/Flex/sdks/flexjs-0.8.0"
-	],
 	"showOutput": "always"
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0d3b2794/frameworks/projects/MaterialDesignLite/.vscode/tasks.json
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/.vscode/tasks.json b/frameworks/projects/MaterialDesignLite/.vscode/tasks.json
new file mode 100644
index 0000000..c207148
--- /dev/null
+++ b/frameworks/projects/MaterialDesignLite/.vscode/tasks.json
@@ -0,0 +1,10 @@
+{
+	// See https://go.microsoft.com/fwlink/?LinkId=733558
+	// for the documentation about the tasks.json format
+	//"--flexHome=/Users/carlosrovira/Dev/Flex/sdks/flexjs-0.8.0"
+	"version": "0.1.0",
+	"command": "mvn",
+	"args": ["clean", "install", "-DskipTests"],
+	"isShellCommand": true,
+	"showOutput": "always"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0d3b2794/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Spacer.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Spacer.as b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Spacer.as
new file mode 100644
index 0000000..0a1a44a
--- /dev/null
+++ b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/Spacer.as
@@ -0,0 +1,65 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.mdl
+{
+	import org.apache.flex.core.UIBase;
+    COMPILE::JS
+    {
+        import org.apache.flex.core.WrappedHTMLElement;            
+    }
+	
+    /**
+     *  The Spacer class takes up space in the UI layout.
+     *
+     *  @langversion 3.0
+     *  @playerversion Flash 10.2
+     *  @playerversion AIR 2.6
+     *  @productversion FlexJS 0.0
+     */    
+	public class Spacer extends UIBase
+	{
+        /**
+         *  Constructor.
+         *  
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+		public function Spacer()
+		{
+			super();
+        }
+        
+        /**
+         * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+         */
+        COMPILE::JS
+        override protected function createElement():WrappedHTMLElement
+        {
+            this.element = document.createElement('div') as WrappedHTMLElement;
+            this.element.className = "mdl-layout-spacer";
+            this.positioner = this.element;
+            this.element.flexjs_wrapper = this;
+            
+            return element;
+        }        
+
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0d3b2794/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
----------------------------------------------------------------------
diff --git a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
index 9e4c6c4..8e16025 100644
--- a/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
+++ b/frameworks/projects/MaterialDesignLite/src/main/resources/mdl-manifest.xml
@@ -36,5 +36,6 @@
     <component id="CardMedia" class="org.apache.flex.mdl.CardMedia"/>
     <component id="CardActions" class="org.apache.flex.mdl.CardActions"/>
     <component id="CardMenu" class="org.apache.flex.mdl.CardMenu"/>
+    <component id="Spacer" class="org.apache.flex.mdl.Spacer"/>
 
 </componentPackage>