flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject git commit: [flex-asjs] [refs/heads/develop] - Preparing MDLExample for Dialogs
Date Sun, 15 Jan 2017 18:54:57 GMT
Repository: flex-asjs
Updated Branches:
  refs/heads/develop f41c5fbcf -> 0ffe25530


Preparing MDLExample for Dialogs


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

Branch: refs/heads/develop
Commit: 0ffe25530d0f157fc2ef6bd23382b694b1603e03
Parents: f41c5fb
Author: Carlos Rovira <carlosrovira@apache.org>
Authored: Sun Jan 15 19:54:51 2017 +0100
Committer: Carlos Rovira <carlosrovira@apache.org>
Committed: Sun Jan 15 19:54:51 2017 +0100

----------------------------------------------------------------------
 .../MDLExample/src/main/flex/Dialogs.mxml       | 28 +++++++++++
 .../src/main/flex/MainNavigation.mxml           |  1 +
 .../flexjs/MDLExample/src/main/flex/Tables.mxml |  6 +--
 .../TableItemRendererWithIcons.mxml             | 53 --------------------
 .../TableRowItemRendererWithIcons.mxml          | 53 ++++++++++++++++++++
 .../src/main/flex/models/MainNavigationModel.as |  1 +
 .../src/main/resources/mdl-styles.css           |  6 +--
 7 files changed, 89 insertions(+), 59 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0ffe2553/examples/flexjs/MDLExample/src/main/flex/Dialogs.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/Dialogs.mxml b/examples/flexjs/MDLExample/src/main/flex/Dialogs.mxml
new file mode 100644
index 0000000..287d7a5
--- /dev/null
+++ b/examples/flexjs/MDLExample/src/main/flex/Dialogs.mxml
@@ -0,0 +1,28 @@
+<?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.
+
+-->
+<mdl:TabBarPanel xmlns:fx="http://ns.adobe.com/mxml/2009"
+                 xmlns:mdl="library://ns.apache.org/flexjs/mdl">
+
+    <mdl:Grid>
+        
+
+        
+    </mdl:Grid>
+</mdl:TabBarPanel>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0ffe2553/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
index a2414b8..3548619 100644
--- a/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/MainNavigation.mxml
@@ -73,6 +73,7 @@ limitations under the License.
         <local:TextFields id="textfield_panel"/>
         <local:Toggles id="toggles_panel"/>
         <local:Snackbar id="snackbar_panel"/>
+        <local:Dialogs id="dialogs_panel"/>
         <local:Lists id="lists_panel"/>
         <local:Tables id="tables_panel"/>
         <local:Loading id="loading_panel"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0ffe2553/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/Tables.mxml b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
index 3d9ae3a..d788cd0 100644
--- a/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
+++ b/examples/flexjs/MDLExample/src/main/flex/Tables.mxml
@@ -29,7 +29,7 @@ limitations under the License.
 
     <mdl:Grid width="450" className="center-items">
 
-        <mdl:Table shadow="2" selectable="true" className="tableRowItemRenderer">
+        <mdl:Table shadow="2" selectable="true" className="customTableRowItemRenderer">
             <mdl:columns>
                 <mdl:TableColumn headerText="Material" nonNumeric="true"/>
                 <mdl:TableColumn headerText="Quantity"/>
@@ -48,7 +48,7 @@ limitations under the License.
                 <mdl:CardTitleText text="Card Header"/>
             </mdl:CardTitle>
 
-            <mdl:Table className="tableRowItemRenderer" width="100%">
+            <mdl:Table className="customTableRowItemRenderer" width="100%">
                 <mdl:columns>
                     <mdl:TableColumn headerText="Material" nonNumeric="true"/>
                     <mdl:TableColumn headerText="Quantity"/>
@@ -68,7 +68,7 @@ limitations under the License.
             </mdl:CardActions>
         </mdl:Card>
 
-        <mdl:Table shadow="8" className="tableItemRendererWithIcons">
+        <mdl:Table shadow="8" className="tableRowItemRendererWithIcons">
             <mdl:columns>
                 <mdl:TableColumn headerText="Material" nonNumeric="true"/>
                 <mdl:TableColumn headerText="Quantity"/>

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0ffe2553/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableItemRendererWithIcons.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableItemRendererWithIcons.mxml
b/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableItemRendererWithIcons.mxml
deleted file mode 100644
index b70f412..0000000
--- a/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableItemRendererWithIcons.mxml
+++ /dev/null
@@ -1,53 +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.
-
--->
-<mdl:TableRowItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
-                       xmlns:js="library://ns.apache.org/flexjs/basic"
-                       xmlns:mdl="library://ns.apache.org/flexjs/mdl"
-                       xmlns="http://www.w3.org/1999/xhtml">
-
-    <fx:Script>
-		<![CDATA[
-			import vos.MaterialVO;
-            
-            [Bindable("dataChange")]
-            public function get material():MaterialVO
-            {
-                return data as MaterialVO;
-            }
-		]]>
-	</fx:Script>
-
-    <mdl:beads>
-        <js:ItemRendererDataBinding />
-    </mdl:beads>
-    
-    <mdl:TableCell text="{material.materialName}" nonNumeric="true"/>
-    <mdl:TableCell text="{material.quantity}"/>
-    <mdl:TableCell text="{material.unitPrice}"/>
-    <mdl:TableCell>
-        <mdl:Button icon="true" colored="true">
-            <mdl:materialIcon>
-                <mdl:MaterialIconMood/>
-            </mdl:materialIcon>
-        </mdl:Button>
-    </mdl:TableCell>
-    
-</mdl:TableRowItemRenderer>
-

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0ffe2553/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableRowItemRendererWithIcons.mxml
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableRowItemRendererWithIcons.mxml
b/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableRowItemRendererWithIcons.mxml
new file mode 100644
index 0000000..b70f412
--- /dev/null
+++ b/examples/flexjs/MDLExample/src/main/flex/itemRenderers/TableRowItemRendererWithIcons.mxml
@@ -0,0 +1,53 @@
+<?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.
+
+-->
+<mdl:TableRowItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
+                       xmlns:js="library://ns.apache.org/flexjs/basic"
+                       xmlns:mdl="library://ns.apache.org/flexjs/mdl"
+                       xmlns="http://www.w3.org/1999/xhtml">
+
+    <fx:Script>
+		<![CDATA[
+			import vos.MaterialVO;
+            
+            [Bindable("dataChange")]
+            public function get material():MaterialVO
+            {
+                return data as MaterialVO;
+            }
+		]]>
+	</fx:Script>
+
+    <mdl:beads>
+        <js:ItemRendererDataBinding />
+    </mdl:beads>
+    
+    <mdl:TableCell text="{material.materialName}" nonNumeric="true"/>
+    <mdl:TableCell text="{material.quantity}"/>
+    <mdl:TableCell text="{material.unitPrice}"/>
+    <mdl:TableCell>
+        <mdl:Button icon="true" colored="true">
+            <mdl:materialIcon>
+                <mdl:MaterialIconMood/>
+            </mdl:materialIcon>
+        </mdl:Button>
+    </mdl:TableCell>
+    
+</mdl:TableRowItemRenderer>
+

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0ffe2553/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
index 12fbbf3..26b9a6f 100644
--- a/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
+++ b/examples/flexjs/MDLExample/src/main/flex/models/MainNavigationModel.as
@@ -61,6 +61,7 @@ package models
             new NavigationLinkVO("Buttons", "buttons_panel"),
             new NavigationLinkVO("TextFields", "textfield_panel"),
             new NavigationLinkVO("Snackbar", "snackbar_panel"),
+            new NavigationLinkVO("Dialogs", "dialogs_panel"),
             new NavigationLinkVO("Toggles", "toggles_panel"),
             new NavigationLinkVO("Lists", "lists_panel"),
             new NavigationLinkVO("Tables", "tables_panel"),

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0ffe2553/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
----------------------------------------------------------------------
diff --git a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
index d667f83..eb6a690 100644
--- a/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
+++ b/examples/flexjs/MDLExample/src/main/resources/mdl-styles.css
@@ -83,14 +83,14 @@ js|Image
     IItemRenderer: ClassReference("itemRenderers.CustomListItemRenderer");
 }
 
-.tableRowItemRenderer
+.customTableRowItemRenderer
 {
     IItemRenderer: ClassReference("itemRenderers.CustomTableRowItemRenderer");
 }
 
-.tableItemRendererWithIcons
+.tableRowItemRendererWithIcons
 {
-    IItemRenderer: ClassReference("itemRenderers.TableItemRendererWithIcons");
+    IItemRenderer: ClassReference("itemRenderers.TableRowItemRendererWithIcons");
 }
 
 .footerMiniLinkListItemRenderer


Mime
View raw message