- Refactored the directory structure of the example projects to be maven-style
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/e75059f7 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/e75059f7 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/e75059f7 Branch: refs/heads/feature/mdl Commit: e75059f7bce0ec1a3d70eef40233400dca409efe Parents: 4c78873 Author: Christofer Dutz <[email protected]> Authored: Thu Oct 27 17:14:54 2016 +0200 Committer: Christofer Dutz <[email protected]> Committed: Thu Oct 27 17:14:55 2016 +0200 ---------------------------------------------------------------------- .../flexjs/ChartExample/src/ChartExample.mxml | 39 -- .../flexjs/ChartExample/src/MyInitialView.mxml | 312 ----------- .../flexjs/ChartExample/src/SpeedTestView.mxml | 187 ------- .../src/main/flex/ChartExample.mxml | 39 ++ .../src/main/flex/MyInitialView.mxml | 312 +++++++++++ .../src/main/flex/SpeedTestView.mxml | 187 +++++++ .../src/main/flex/models/ProductsModel.as | 79 +++ .../src/main/flex/products/Product.as | 45 ++ .../ChartExample/src/models/ProductsModel.as | 79 --- .../flexjs/ChartExample/src/products/Product.as | 45 -- .../CordovaCameraExample/resources/config.xml | 44 -- .../src/CordovaCameraExample.mxml | 39 -- .../CordovaCameraExample/src/MyInitialView.mxml | 75 --- .../src/main/flex/CordovaCameraExample.mxml | 39 ++ .../src/main/flex/MyInitialView.mxml | 75 +++ .../src/main/resources/config.xml | 44 ++ .../CreateJSExample/src/CreateJSExample.mxml | 69 --- .../src/main/flex/CreateJSExample.mxml | 69 +++ .../src/main/flex/models/MyModel.as | 34 ++ .../CreateJSExample/src/models/MyModel.as | 34 -- .../src/DataBindingExample.mxml | 53 -- .../DataBindingExample/src/MyInitialView.mxml | 144 ----- .../src/StockDataJSONItemConverter.as | 40 -- .../src/controllers/MyController.as | 92 ---- .../src/main/flex/DataBindingExample.mxml | 53 ++ .../src/main/flex/MyInitialView.mxml | 144 +++++ .../src/main/flex/StockDataJSONItemConverter.as | 40 ++ .../src/main/flex/controllers/MyController.as | 92 ++++ .../src/main/flex/models/MyModel.as | 125 +++++ .../DataBindingExample/src/models/MyModel.as | 125 ----- .../src/DataBindingExample.mxml | 53 -- .../src/MyInitialView.mxml | 145 ----- .../src/StockDataJSONItemConverter.as | 40 -- .../src/controllers/MyController.as | 92 ---- .../src/main/flex/DataBindingExample.mxml | 53 ++ .../src/main/flex/MyInitialView.mxml | 145 +++++ .../src/main/flex/StockDataJSONItemConverter.as | 40 ++ .../src/main/flex/controllers/MyController.as | 92 ++++ .../src/main/flex/models/MyModel.as | 125 +++++ .../src/models/MyModel.as | 125 ----- .../src/DataBindingExample.as | 290 ---------- .../DataBindingExample_as/src/MyInitialView.as | 282 ---------- .../src/StockDataJSONItemConverter.as | 40 -- .../src/controllers/MyController.as | 92 ---- .../src/main/flex/DataBindingExample.as | 290 ++++++++++ .../src/main/flex/MyInitialView.as | 282 ++++++++++ .../src/main/flex/StockDataJSONItemConverter.as | 40 ++ .../src/main/flex/controllers/MyController.as | 92 ++++ .../src/main/flex/models/MyModel.as | 127 +++++ .../DataBindingExample_as/src/models/MyModel.as | 127 ----- .../DataGridExample/src/DataGridExample.mxml | 36 -- .../DataGridExample/src/MyInitialView.mxml | 68 --- .../src/assets/smallbluerect.jpg | Bin 13500 -> 0 bytes .../src/assets/smallgreenrect.jpg | Bin 13542 -> 0 bytes .../src/assets/smallorangerect.gif | Bin 821 -> 0 bytes .../src/assets/smallorangerect.jpg | Bin 13571 -> 0 bytes .../src/assets/smallpurplerect.jpg | Bin 13517 -> 0 bytes .../DataGridExample/src/assets/smallredrect.jpg | Bin 13477 -> 0 bytes .../src/assets/smallyellowrect.jpg | Bin 13598 -> 0 bytes .../src/main/flex/DataGridExample.mxml | 36 ++ .../src/main/flex/MyInitialView.mxml | 68 +++ .../src/main/flex/assets/smallbluerect.jpg | Bin 0 -> 13500 bytes .../src/main/flex/assets/smallgreenrect.jpg | Bin 0 -> 13542 bytes .../src/main/flex/assets/smallorangerect.gif | Bin 0 -> 821 bytes .../src/main/flex/assets/smallorangerect.jpg | Bin 0 -> 13571 bytes .../src/main/flex/assets/smallpurplerect.jpg | Bin 0 -> 13517 bytes .../src/main/flex/assets/smallredrect.jpg | Bin 0 -> 13477 bytes .../src/main/flex/assets/smallyellowrect.jpg | Bin 0 -> 13598 bytes .../src/main/flex/models/ProductsModel.as | 55 ++ .../src/main/flex/products/Product.as | 43 ++ .../main/flex/products/ProductItemRenderer.as | 66 +++ .../DataGridExample/src/models/ProductsModel.as | 55 -- .../DataGridExample/src/products/Product.as | 43 -- .../src/products/ProductItemRenderer.as | 66 --- examples/flexjs/DesktopMap/src/DesktopMap.mxml | 46 -- .../flexjs/DesktopMap/src/MyInitialView.mxml | 147 ----- .../DesktopMap/src/main/flex/DesktopMap.mxml | 46 ++ .../DesktopMap/src/main/flex/MyInitialView.mxml | 147 +++++ .../DesktopMap/src/main/flex/models/MyModel.as | 58 ++ .../flexjs/DesktopMap/src/models/MyModel.as | 58 -- .../flexjs/FlexJSStore/src/FlexJSStore.mxml | 268 --------- examples/flexjs/FlexJSStore/src/HomeView.mxml | 194 ------- .../FlexJSStore/src/ProductJSONItemConverter.as | 41 -- .../flexjs/FlexJSStore/src/ProductsView.mxml | 121 ---- .../flexjs/FlexJSStore/src/SupportView.mxml | 149 ----- .../src/assets/427px-Bayarea_map.png | Bin 122661 -> 0 bytes .../flexjs/FlexJSStore/src/assets/akotter.jpg | Bin 19395 -> 0 bytes .../flexjs/FlexJSStore/src/assets/bcrater.jpg | Bin 22670 -> 0 bytes .../FlexJSStore/src/assets/beige_background.jpg | Bin 12533 -> 0 bytes .../FlexJSStore/src/assets/beige_dotted_map.png | Bin 216598 -> 0 bytes .../FlexJSStore/src/assets/blue_background.jpg | Bin 12868 -> 0 bytes .../FlexJSStore/src/assets/blue_dotted_map.png | Bin 217088 -> 0 bytes .../src/assets/button_cart_empty.png | Bin 289 -> 0 bytes .../FlexJSStore/src/assets/button_cart_full.png | Bin 308 -> 0 bytes .../FlexJSStore/src/assets/button_compare.png | Bin 304 -> 0 bytes .../FlexJSStore/src/assets/button_details.png | Bin 284 -> 0 bytes .../FlexJSStore/src/assets/button_tiles.png | Bin 218 -> 0 bytes examples/flexjs/FlexJSStore/src/assets/grip.png | Bin 19836 -> 0 bytes .../FlexJSStore/src/assets/icon_cart_empty.png | Bin 29594 -> 0 bytes .../FlexJSStore/src/assets/icon_compare.png | Bin 30218 -> 0 bytes .../FlexJSStore/src/assets/icon_magnifier.png | Bin 30454 -> 0 bytes .../FlexJSStore/src/assets/icon_tiles.png | Bin 27988 -> 0 bytes .../flexjs/FlexJSStore/src/assets/jproctor.jpg | Bin 21684 -> 0 bytes .../flexjs/FlexJSStore/src/assets/logo_blue.png | Bin 33677 -> 0 bytes .../FlexJSStore/src/assets/logo_orange.png | Bin 34166 -> 0 bytes .../FlexJSStore/src/assets/pic/abrilliam.jpg | Bin 18903 -> 0 bytes .../FlexJSStore/src/assets/pic/akotter.jpg | Bin 19395 -> 0 bytes .../FlexJSStore/src/assets/pic/bcrater.jpg | Bin 22670 -> 0 bytes .../FlexJSStore/src/assets/pic/bleporte.jpg | Bin 23363 -> 0 bytes .../FlexJSStore/src/assets/pic/bvanbrocklin.jpg | Bin 18066 -> 0 bytes .../FlexJSStore/src/assets/pic/ccarpenter.jpg | Bin 19219 -> 0 bytes .../FlexJSStore/src/assets/pic/clampberto.jpg | Bin 18611 -> 0 bytes .../FlexJSStore/src/assets/pic/davenon.jpg | Bin 20028 -> 0 bytes .../FlexJSStore/src/assets/pic/dmcgoyal.jpg | Bin 19395 -> 0 bytes .../FlexJSStore/src/assets/pic/dwillhelm.jpg | Bin 22670 -> 0 bytes .../FlexJSStore/src/assets/pic/esunderland.jpg | Bin 23363 -> 0 bytes .../FlexJSStore/src/assets/pic/jproctor.jpg | Bin 21684 -> 0 bytes .../FlexJSStore/src/assets/pic/mfields.jpg | Bin 18066 -> 0 bytes .../FlexJSStore/src/assets/pic/pdempsey.jpg | Bin 18611 -> 0 bytes .../FlexJSStore/src/assets/pic/ptranep.jpg | Bin 19627 -> 0 bytes .../FlexJSStore/src/assets/pic/rcrawley.jpg | Bin 23692 -> 0 bytes .../FlexJSStore/src/assets/pic/rdreifus.jpg | Bin 20028 -> 0 bytes .../flexjs/FlexJSStore/src/assets/pic/twong.jpg | Bin 19395 -> 0 bytes .../src/assets/support_mapmarker_a.png | Bin 834 -> 0 bytes .../src/assets/support_mapmarker_b.png | Bin 822 -> 0 bytes .../src/assets/support_mapmarker_c.png | Bin 817 -> 0 bytes .../src/assets/support_mapmarker_plus.png | Bin 827 -> 0 bytes .../flexjs/FlexJSStore/src/assets/trashcan.png | Bin 182 -> 0 bytes examples/flexjs/FlexJSStore/src/beige.css | 171 ------ examples/flexjs/FlexJSStore/src/blue.css | 165 ------ .../flexjs/FlexJSStore/src/data/catalog.json | 236 -------- .../flexjs/FlexJSStore/src/data/catalog.xml | 256 --------- examples/flexjs/FlexJSStore/src/main.css | 100 ---- .../FlexJSStore/src/main/flex/FlexJSStore.mxml | 268 +++++++++ .../FlexJSStore/src/main/flex/HomeView.mxml | 194 +++++++ .../src/main/flex/ProductJSONItemConverter.as | 41 ++ .../FlexJSStore/src/main/flex/ProductsView.mxml | 121 ++++ .../FlexJSStore/src/main/flex/SupportView.mxml | 149 +++++ .../src/main/flex/assets/427px-Bayarea_map.png | Bin 0 -> 122661 bytes .../src/main/flex/assets/akotter.jpg | Bin 0 -> 19395 bytes .../src/main/flex/assets/bcrater.jpg | Bin 0 -> 22670 bytes .../src/main/flex/assets/beige_background.jpg | Bin 0 -> 12533 bytes .../src/main/flex/assets/beige_dotted_map.png | Bin 0 -> 216598 bytes .../src/main/flex/assets/blue_background.jpg | Bin 0 -> 12868 bytes .../src/main/flex/assets/blue_dotted_map.png | Bin 0 -> 217088 bytes .../src/main/flex/assets/button_cart_empty.png | Bin 0 -> 289 bytes .../src/main/flex/assets/button_cart_full.png | Bin 0 -> 308 bytes .../src/main/flex/assets/button_compare.png | Bin 0 -> 304 bytes .../src/main/flex/assets/button_details.png | Bin 0 -> 284 bytes .../src/main/flex/assets/button_tiles.png | Bin 0 -> 218 bytes .../FlexJSStore/src/main/flex/assets/grip.png | Bin 0 -> 19836 bytes .../src/main/flex/assets/icon_cart_empty.png | Bin 0 -> 29594 bytes .../src/main/flex/assets/icon_compare.png | Bin 0 -> 30218 bytes .../src/main/flex/assets/icon_magnifier.png | Bin 0 -> 30454 bytes .../src/main/flex/assets/icon_tiles.png | Bin 0 -> 27988 bytes .../src/main/flex/assets/jproctor.jpg | Bin 0 -> 21684 bytes .../src/main/flex/assets/logo_blue.png | Bin 0 -> 33677 bytes .../src/main/flex/assets/logo_orange.png | Bin 0 -> 34166 bytes .../src/main/flex/assets/pic/abrilliam.jpg | Bin 0 -> 18903 bytes .../src/main/flex/assets/pic/akotter.jpg | Bin 0 -> 19395 bytes .../src/main/flex/assets/pic/bcrater.jpg | Bin 0 -> 22670 bytes .../src/main/flex/assets/pic/bleporte.jpg | Bin 0 -> 23363 bytes .../src/main/flex/assets/pic/bvanbrocklin.jpg | Bin 0 -> 18066 bytes .../src/main/flex/assets/pic/ccarpenter.jpg | Bin 0 -> 19219 bytes .../src/main/flex/assets/pic/clampberto.jpg | Bin 0 -> 18611 bytes .../src/main/flex/assets/pic/davenon.jpg | Bin 0 -> 20028 bytes .../src/main/flex/assets/pic/dmcgoyal.jpg | Bin 0 -> 19395 bytes .../src/main/flex/assets/pic/dwillhelm.jpg | Bin 0 -> 22670 bytes .../src/main/flex/assets/pic/esunderland.jpg | Bin 0 -> 23363 bytes .../src/main/flex/assets/pic/jproctor.jpg | Bin 0 -> 21684 bytes .../src/main/flex/assets/pic/mfields.jpg | Bin 0 -> 18066 bytes .../src/main/flex/assets/pic/pdempsey.jpg | Bin 0 -> 18611 bytes .../src/main/flex/assets/pic/ptranep.jpg | Bin 0 -> 19627 bytes .../src/main/flex/assets/pic/rcrawley.jpg | Bin 0 -> 23692 bytes .../src/main/flex/assets/pic/rdreifus.jpg | Bin 0 -> 20028 bytes .../src/main/flex/assets/pic/twong.jpg | Bin 0 -> 19395 bytes .../main/flex/assets/support_mapmarker_a.png | Bin 0 -> 834 bytes .../main/flex/assets/support_mapmarker_b.png | Bin 0 -> 822 bytes .../main/flex/assets/support_mapmarker_c.png | Bin 0 -> 817 bytes .../main/flex/assets/support_mapmarker_plus.png | Bin 0 -> 827 bytes .../src/main/flex/assets/trashcan.png | Bin 0 -> 182 bytes .../flexjs/FlexJSStore/src/main/flex/beige.css | 171 ++++++ .../flexjs/FlexJSStore/src/main/flex/blue.css | 165 ++++++ .../FlexJSStore/src/main/flex/data/catalog.json | 236 ++++++++ .../FlexJSStore/src/main/flex/data/catalog.xml | 256 +++++++++ .../flexjs/FlexJSStore/src/main/flex/main.css | 100 ++++ .../flex/productsView/CatalogTitleButtons.mxml | 72 +++ .../src/main/flex/productsView/Grip.mxml | 48 ++ .../src/main/flex/productsView/ProductCart.mxml | 117 ++++ .../flex/productsView/ProductCatalogPanel.mxml | 546 +++++++++++++++++++ .../ProductCatalogPanelTitleBarView.mxml | 49 ++ .../productsView/ProductCatalogThumbnail.mxml | 220 ++++++++ .../main/flex/productsView/ProductDetails.mxml | 145 +++++ .../flex/productsView/ProductFilterPanel.mxml | 215 ++++++++ .../src/main/flex/productsView/ProductList.mxml | 219 ++++++++ .../main/flex/productsView/ProductListItem.mxml | 140 +++++ .../main/flex/productsView/ProductSupport.mxml | 90 +++ .../samples/flexstore/ButtonBarButtonSkin.as | 298 ++++++++++ .../src/main/flex/samples/flexstore/Product.as | 78 +++ .../flex/samples/flexstore/ProductFilter.as | 56 ++ .../samples/flexstore/ProductFilterEvent.as | 39 ++ .../flex/samples/flexstore/ProductListEvent.as | 42 ++ .../flex/samples/flexstore/ProductThumbEvent.as | 45 ++ .../src/productsView/CatalogTitleButtons.mxml | 72 --- .../FlexJSStore/src/productsView/Grip.mxml | 48 -- .../src/productsView/ProductCart.mxml | 117 ---- .../src/productsView/ProductCatalogPanel.mxml | 546 ------------------- .../ProductCatalogPanelTitleBarView.mxml | 49 -- .../productsView/ProductCatalogThumbnail.mxml | 220 -------- .../src/productsView/ProductDetails.mxml | 145 ----- .../src/productsView/ProductFilterPanel.mxml | 215 -------- .../src/productsView/ProductList.mxml | 219 -------- .../src/productsView/ProductListItem.mxml | 140 ----- .../src/productsView/ProductSupport.mxml | 90 --- .../samples/flexstore/ButtonBarButtonSkin.as | 298 ---------- .../src/samples/flexstore/Product.as | 78 --- .../src/samples/flexstore/ProductFilter.as | 56 -- .../src/samples/flexstore/ProductFilterEvent.as | 39 -- .../src/samples/flexstore/ProductListEvent.as | 42 -- .../src/samples/flexstore/ProductThumbEvent.as | 45 -- .../FlexJSStore_jquery/src/FlexJSStore.mxml | 268 --------- .../flexjs/FlexJSStore_jquery/src/HomeView.mxml | 195 ------- .../src/ProductJSONItemConverter.as | 41 -- .../FlexJSStore_jquery/src/ProductsView.mxml | 121 ---- .../FlexJSStore_jquery/src/SupportView.mxml | 149 ----- .../src/assets/427px-Bayarea_map.png | Bin 122661 -> 0 bytes .../FlexJSStore_jquery/src/assets/akotter.jpg | Bin 19395 -> 0 bytes .../FlexJSStore_jquery/src/assets/bcrater.jpg | Bin 22670 -> 0 bytes .../src/assets/beige_background.jpg | Bin 12533 -> 0 bytes .../src/assets/beige_dotted_map.png | Bin 216598 -> 0 bytes .../src/assets/blue_background.jpg | Bin 12868 -> 0 bytes .../src/assets/blue_dotted_map.png | Bin 217088 -> 0 bytes .../src/assets/button_cart_empty.png | Bin 289 -> 0 bytes .../src/assets/button_cart_full.png | Bin 308 -> 0 bytes .../src/assets/button_compare.png | Bin 304 -> 0 bytes .../src/assets/button_details.png | Bin 284 -> 0 bytes .../src/assets/button_tiles.png | Bin 218 -> 0 bytes .../FlexJSStore_jquery/src/assets/grip.png | Bin 19836 -> 0 bytes .../src/assets/icon_cart_empty.png | Bin 29594 -> 0 bytes .../src/assets/icon_compare.png | Bin 30218 -> 0 bytes .../src/assets/icon_magnifier.png | Bin 30454 -> 0 bytes .../src/assets/icon_tiles.png | Bin 27988 -> 0 bytes .../FlexJSStore_jquery/src/assets/jproctor.jpg | Bin 21684 -> 0 bytes .../FlexJSStore_jquery/src/assets/logo_blue.png | Bin 33677 -> 0 bytes .../src/assets/logo_orange.png | Bin 34199 -> 0 bytes .../src/assets/pic/abrilliam.jpg | Bin 18903 -> 0 bytes .../src/assets/pic/akotter.jpg | Bin 19395 -> 0 bytes .../src/assets/pic/bcrater.jpg | Bin 22670 -> 0 bytes .../src/assets/pic/bleporte.jpg | Bin 23363 -> 0 bytes .../src/assets/pic/bvanbrocklin.jpg | Bin 18066 -> 0 bytes .../src/assets/pic/ccarpenter.jpg | Bin 19219 -> 0 bytes .../src/assets/pic/clampberto.jpg | Bin 18611 -> 0 bytes .../src/assets/pic/davenon.jpg | Bin 20028 -> 0 bytes .../src/assets/pic/dmcgoyal.jpg | Bin 19395 -> 0 bytes .../src/assets/pic/dwillhelm.jpg | Bin 22670 -> 0 bytes .../src/assets/pic/esunderland.jpg | Bin 23363 -> 0 bytes .../src/assets/pic/jproctor.jpg | Bin 21684 -> 0 bytes .../src/assets/pic/mfields.jpg | Bin 18066 -> 0 bytes .../src/assets/pic/pdempsey.jpg | Bin 18611 -> 0 bytes .../src/assets/pic/ptranep.jpg | Bin 19627 -> 0 bytes .../src/assets/pic/rcrawley.jpg | Bin 23692 -> 0 bytes .../src/assets/pic/rdreifus.jpg | Bin 20028 -> 0 bytes .../FlexJSStore_jquery/src/assets/pic/twong.jpg | Bin 19395 -> 0 bytes .../src/assets/support_mapmarker_a.png | Bin 834 -> 0 bytes .../src/assets/support_mapmarker_b.png | Bin 822 -> 0 bytes .../src/assets/support_mapmarker_c.png | Bin 817 -> 0 bytes .../src/assets/support_mapmarker_plus.png | Bin 827 -> 0 bytes .../FlexJSStore_jquery/src/assets/trashcan.png | Bin 182 -> 0 bytes .../flexjs/FlexJSStore_jquery/src/beige.css | 171 ------ examples/flexjs/FlexJSStore_jquery/src/blue.css | 165 ------ .../FlexJSStore_jquery/src/data/catalog.json | 236 -------- .../FlexJSStore_jquery/src/data/catalog.xml | 256 --------- examples/flexjs/FlexJSStore_jquery/src/main.css | 100 ---- .../src/main/flex/FlexJSStore.mxml | 268 +++++++++ .../src/main/flex/HomeView.mxml | 195 +++++++ .../src/main/flex/ProductJSONItemConverter.as | 41 ++ .../src/main/flex/ProductsView.mxml | 121 ++++ .../src/main/flex/SupportView.mxml | 149 +++++ .../src/main/flex/assets/427px-Bayarea_map.png | Bin 0 -> 122661 bytes .../src/main/flex/assets/akotter.jpg | Bin 0 -> 19395 bytes .../src/main/flex/assets/bcrater.jpg | Bin 0 -> 22670 bytes .../src/main/flex/assets/beige_background.jpg | Bin 0 -> 12533 bytes .../src/main/flex/assets/beige_dotted_map.png | Bin 0 -> 216598 bytes .../src/main/flex/assets/blue_background.jpg | Bin 0 -> 12868 bytes .../src/main/flex/assets/blue_dotted_map.png | Bin 0 -> 217088 bytes .../src/main/flex/assets/button_cart_empty.png | Bin 0 -> 289 bytes .../src/main/flex/assets/button_cart_full.png | Bin 0 -> 308 bytes .../src/main/flex/assets/button_compare.png | Bin 0 -> 304 bytes .../src/main/flex/assets/button_details.png | Bin 0 -> 284 bytes .../src/main/flex/assets/button_tiles.png | Bin 0 -> 218 bytes .../src/main/flex/assets/grip.png | Bin 0 -> 19836 bytes .../src/main/flex/assets/icon_cart_empty.png | Bin 0 -> 29594 bytes .../src/main/flex/assets/icon_compare.png | Bin 0 -> 30218 bytes .../src/main/flex/assets/icon_magnifier.png | Bin 0 -> 30454 bytes .../src/main/flex/assets/icon_tiles.png | Bin 0 -> 27988 bytes .../src/main/flex/assets/jproctor.jpg | Bin 0 -> 21684 bytes .../src/main/flex/assets/logo_blue.png | Bin 0 -> 33677 bytes .../src/main/flex/assets/logo_orange.png | Bin 0 -> 34199 bytes .../src/main/flex/assets/pic/abrilliam.jpg | Bin 0 -> 18903 bytes .../src/main/flex/assets/pic/akotter.jpg | Bin 0 -> 19395 bytes .../src/main/flex/assets/pic/bcrater.jpg | Bin 0 -> 22670 bytes .../src/main/flex/assets/pic/bleporte.jpg | Bin 0 -> 23363 bytes .../src/main/flex/assets/pic/bvanbrocklin.jpg | Bin 0 -> 18066 bytes .../src/main/flex/assets/pic/ccarpenter.jpg | Bin 0 -> 19219 bytes .../src/main/flex/assets/pic/clampberto.jpg | Bin 0 -> 18611 bytes .../src/main/flex/assets/pic/davenon.jpg | Bin 0 -> 20028 bytes .../src/main/flex/assets/pic/dmcgoyal.jpg | Bin 0 -> 19395 bytes .../src/main/flex/assets/pic/dwillhelm.jpg | Bin 0 -> 22670 bytes .../src/main/flex/assets/pic/esunderland.jpg | Bin 0 -> 23363 bytes .../src/main/flex/assets/pic/jproctor.jpg | Bin 0 -> 21684 bytes .../src/main/flex/assets/pic/mfields.jpg | Bin 0 -> 18066 bytes .../src/main/flex/assets/pic/pdempsey.jpg | Bin 0 -> 18611 bytes .../src/main/flex/assets/pic/ptranep.jpg | Bin 0 -> 19627 bytes .../src/main/flex/assets/pic/rcrawley.jpg | Bin 0 -> 23692 bytes .../src/main/flex/assets/pic/rdreifus.jpg | Bin 0 -> 20028 bytes .../src/main/flex/assets/pic/twong.jpg | Bin 0 -> 19395 bytes .../main/flex/assets/support_mapmarker_a.png | Bin 0 -> 834 bytes .../main/flex/assets/support_mapmarker_b.png | Bin 0 -> 822 bytes .../main/flex/assets/support_mapmarker_c.png | Bin 0 -> 817 bytes .../main/flex/assets/support_mapmarker_plus.png | Bin 0 -> 827 bytes .../src/main/flex/assets/trashcan.png | Bin 0 -> 182 bytes .../FlexJSStore_jquery/src/main/flex/beige.css | 171 ++++++ .../FlexJSStore_jquery/src/main/flex/blue.css | 165 ++++++ .../src/main/flex/data/catalog.json | 236 ++++++++ .../src/main/flex/data/catalog.xml | 256 +++++++++ .../FlexJSStore_jquery/src/main/flex/main.css | 100 ++++ .../flex/productsView/CatalogTitleButtons.mxml | 72 +++ .../src/main/flex/productsView/Grip.mxml | 48 ++ .../src/main/flex/productsView/ProductCart.mxml | 117 ++++ .../flex/productsView/ProductCatalogPanel.mxml | 546 +++++++++++++++++++ .../ProductCatalogPanelTitleBarView.mxml | 49 ++ .../productsView/ProductCatalogThumbnail.mxml | 220 ++++++++ .../main/flex/productsView/ProductDetails.mxml | 145 +++++ .../flex/productsView/ProductFilterPanel.mxml | 215 ++++++++ .../src/main/flex/productsView/ProductList.mxml | 219 ++++++++ .../main/flex/productsView/ProductListItem.mxml | 140 +++++ .../main/flex/productsView/ProductSupport.mxml | 90 +++ .../samples/flexstore/ButtonBarButtonSkin.as | 298 ++++++++++ .../src/main/flex/samples/flexstore/Product.as | 78 +++ .../flex/samples/flexstore/ProductFilter.as | 56 ++ .../samples/flexstore/ProductFilterEvent.as | 39 ++ .../flex/samples/flexstore/ProductListEvent.as | 42 ++ .../flex/samples/flexstore/ProductThumbEvent.as | 45 ++ .../src/productsView/CatalogTitleButtons.mxml | 72 --- .../src/productsView/Grip.mxml | 48 -- .../src/productsView/ProductCart.mxml | 117 ---- .../src/productsView/ProductCatalogPanel.mxml | 546 ------------------- .../ProductCatalogPanelTitleBarView.mxml | 49 -- .../productsView/ProductCatalogThumbnail.mxml | 220 -------- .../src/productsView/ProductDetails.mxml | 145 ----- .../src/productsView/ProductFilterPanel.mxml | 215 -------- .../src/productsView/ProductList.mxml | 219 -------- .../src/productsView/ProductListItem.mxml | 140 ----- .../src/productsView/ProductSupport.mxml | 90 --- .../samples/flexstore/ButtonBarButtonSkin.as | 298 ---------- .../src/samples/flexstore/Product.as | 78 --- .../src/samples/flexstore/ProductFilter.as | 56 -- .../src/samples/flexstore/ProductFilterEvent.as | 39 -- .../src/samples/flexstore/ProductListEvent.as | 42 -- .../src/samples/flexstore/ProductThumbEvent.as | 45 -- .../src/FlexWebsiteStatsViewer.mxml | 55 -- .../FlexWebsiteStatsViewer/src/StatsView.mxml | 87 --- .../src/controllers/GAJSONInputParser.as | 38 -- .../controllers/GAStatsDataJSONItemConverter.as | 41 -- .../src/controllers/StatsController.as | 77 --- .../src/main/flex/FlexWebsiteStatsViewer.mxml | 55 ++ .../src/main/flex/StatsView.mxml | 87 +++ .../main/flex/controllers/GAJSONInputParser.as | 38 ++ .../controllers/GAStatsDataJSONItemConverter.as | 41 ++ .../main/flex/controllers/StatsController.as | 77 +++ .../src/main/flex/models/StatsModel.as | 55 ++ .../src/models/StatsModel.as | 55 -- examples/flexjs/HelloWorld/src/HelloWorld.mxml | 30 - .../HelloWorld/src/main/flex/HelloWorld.mxml | 30 + examples/flexjs/MapSearch/src/MapSearch.mxml | 46 -- .../flexjs/MapSearch/src/MyInitialView.mxml | 211 ------- .../MapSearch/src/main/flex/MapSearch.mxml | 46 ++ .../MapSearch/src/main/flex/MyInitialView.mxml | 211 +++++++ .../MapSearch/src/main/flex/models/MyModel.as | 71 +++ examples/flexjs/MapSearch/src/models/MyModel.as | 71 --- examples/flexjs/MobileMap/resources/config.xml | 44 -- examples/flexjs/MobileMap/src/MobileMap.mxml | 71 --- .../MobileMap/src/main/flex/MobileMap.mxml | 71 +++ .../MobileMap/src/main/resources/config.xml | 44 ++ .../flexjs/MobileStocks/resources/config.xml | 44 -- .../flexjs/MobileStocks/src/MobileStocks.mxml | 50 -- .../flexjs/MobileStocks/src/MyInitialView.mxml | 253 --------- .../src/StockDataJSONItemConverter.as | 41 -- .../src/VerticalLayoutTextView.mxml | 68 --- .../MobileStocks/src/assets/arrow_left_24.png | Bin 47785 -> 0 bytes .../MobileStocks/src/assets/background.png | Bin 49376 -> 0 bytes .../flexjs/MobileStocks/src/assets/logo.png | Bin 55223 -> 0 bytes .../src/controller/LaunchViewController.as | 150 ----- .../src/controller/WatchListController.as | 139 ----- .../src/main/flex/MobileStocks.mxml | 50 ++ .../src/main/flex/MyInitialView.mxml | 253 +++++++++ .../src/main/flex/StockDataJSONItemConverter.as | 41 ++ .../src/main/flex/VerticalLayoutTextView.mxml | 68 +++ .../src/main/flex/assets/arrow_left_24.png | Bin 0 -> 47785 bytes .../src/main/flex/assets/background.png | Bin 0 -> 49376 bytes .../MobileStocks/src/main/flex/assets/logo.png | Bin 0 -> 55223 bytes .../flex/controller/LaunchViewController.as | 150 +++++ .../main/flex/controller/WatchListController.as | 139 +++++ .../src/main/flex/models/ProductsModel.as | 271 +++++++++ .../MobileStocks/src/main/flex/models/Stock.as | 168 ++++++ .../src/main/flex/renderers/AlertRenderer.as | 44 ++ .../main/flex/renderers/CompanyNameRenderer.as | 37 ++ .../main/flex/renderers/SharesTotalRenderer.as | 37 ++ .../src/main/flex/renderers/StockRenderer.as | 47 ++ .../src/main/flex/views/LaunchView.mxml | 204 +++++++ .../src/main/flex/views/StockView.mxml | 102 ++++ .../src/main/flex/views/WatchListView.mxml | 135 +++++ .../MobileStocks/src/main/resources/config.xml | 44 ++ .../MobileStocks/src/models/ProductsModel.as | 271 --------- .../flexjs/MobileStocks/src/models/Stock.as | 168 ------ .../MobileStocks/src/renderers/AlertRenderer.as | 44 -- .../src/renderers/CompanyNameRenderer.as | 37 -- .../src/renderers/SharesTotalRenderer.as | 37 -- .../MobileStocks/src/renderers/StockRenderer.as | 47 -- .../MobileStocks/src/views/LaunchView.mxml | 204 ------- .../MobileStocks/src/views/StockView.mxml | 102 ---- .../MobileStocks/src/views/WatchListView.mxml | 135 ----- .../flexjs/MobileTrader/resources/config.xml | 44 -- .../flexjs/MobileTrader/src/MobileTrader.mxml | 39 -- .../flexjs/MobileTrader/src/MyInitialView.mxml | 256 --------- .../src/StockDataJSONItemConverter.as | 40 -- .../MobileTrader/src/assets/arrow_left_24.png | Bin 47785 -> 0 bytes .../MobileTrader/src/assets/background.png | Bin 49376 -> 0 bytes .../flexjs/MobileTrader/src/assets/logo.png | Bin 55223 -> 0 bytes .../src/controller/AlertsViewController.as | 141 ----- .../src/controller/WatchListController.as | 138 ----- .../src/main/flex/MobileTrader.mxml | 39 ++ .../src/main/flex/MyInitialView.mxml | 256 +++++++++ .../src/main/flex/StockDataJSONItemConverter.as | 40 ++ .../src/main/flex/assets/arrow_left_24.png | Bin 0 -> 47785 bytes .../src/main/flex/assets/background.png | Bin 0 -> 49376 bytes .../MobileTrader/src/main/flex/assets/logo.png | Bin 0 -> 55223 bytes .../flex/controller/AlertsViewController.as | 141 +++++ .../main/flex/controller/WatchListController.as | 138 +++++ .../MobileTrader/src/main/flex/models/Alert.as | 94 ++++ .../MobileTrader/src/main/flex/models/Asset.as | 77 +++ .../src/main/flex/models/AssetsModel.as | 57 ++ .../src/main/flex/models/ProductsModel.as | 165 ++++++ .../MobileTrader/src/main/flex/models/Stock.as | 148 +++++ .../src/main/flex/renderers/AlertRenderer.as | 44 ++ .../src/main/flex/renderers/StockRenderer.as | 47 ++ .../src/main/flex/views/AlertsView.mxml | 101 ++++ .../src/main/flex/views/AssetsView.mxml | 89 +++ .../src/main/flex/views/SearchView.mxml | 37 ++ .../src/main/flex/views/StockView.mxml | 98 ++++ .../src/main/flex/views/WatchListView.mxml | 151 +++++ .../MobileTrader/src/main/resources/config.xml | 44 ++ .../flexjs/MobileTrader/src/models/Alert.as | 94 ---- .../flexjs/MobileTrader/src/models/Asset.as | 77 --- .../MobileTrader/src/models/AssetsModel.as | 57 -- .../MobileTrader/src/models/ProductsModel.as | 165 ------ .../flexjs/MobileTrader/src/models/Stock.as | 148 ----- .../MobileTrader/src/renderers/AlertRenderer.as | 44 -- .../MobileTrader/src/renderers/StockRenderer.as | 47 -- .../MobileTrader/src/views/AlertsView.mxml | 101 ---- .../MobileTrader/src/views/AssetsView.mxml | 89 --- .../MobileTrader/src/views/SearchView.mxml | 37 -- .../MobileTrader/src/views/StockView.mxml | 98 ---- .../MobileTrader/src/views/WatchListView.mxml | 151 ----- .../flexjs/StorageExample/resources/config.xml | 44 -- .../StorageExample/src/MyInitialView.mxml | 245 --------- .../StorageExample/src/StorageExample.mxml | 42 -- .../src/main/flex/MyInitialView.mxml | 245 +++++++++ .../src/main/flex/StorageExample.mxml | 42 ++ .../src/main/flex/models/MyModel.as | 58 ++ .../src/main/resources/config.xml | 44 ++ .../flexjs/StorageExample/src/models/MyModel.as | 58 -- .../flexjs/StyleExample/src/MyInitialView.mxml | 427 --------------- .../flexjs/StyleExample/src/StyleExample.mxml | 34 -- .../src/main/flex/MyInitialView.mxml | 427 +++++++++++++++ .../src/main/flex/StyleExample.mxml | 34 ++ .../src/main/flex/models/MyModel.as | 53 ++ .../flexjs/StyleExample/src/models/MyModel.as | 53 -- .../src/TodoListSampleApp.mxml | 43 -- .../src/main/flex/TodoListSampleApp.mxml | 43 ++ .../todo/controllers/TodoListController.as | 77 +++ .../flex/sample/todo/events/TodoListEvent.as | 42 ++ .../flex/sample/todo/models/TodoListModel.as | 99 ++++ .../sample/todo/renderers/TodoItemRenderer.as | 90 +++ .../flex/sample/todo/views/TodoListView.mxml | 172 ++++++ .../todo/controllers/TodoListController.as | 77 --- .../src/sample/todo/events/TodoListEvent.as | 42 -- .../src/sample/todo/models/TodoListModel.as | 99 ---- .../sample/todo/renderers/TodoItemRenderer.as | 90 --- .../src/sample/todo/views/TodoListView.mxml | 172 ------ .../flexjs/TreeExample/src/MyInitialView.mxml | 37 -- .../flexjs/TreeExample/src/TreeExample.mxml | 36 -- .../src/main/flex/MyInitialView.mxml | 37 ++ .../TreeExample/src/main/flex/TreeExample.mxml | 36 ++ .../TreeExample/src/main/flex/models/MyModel.as | 72 +++ .../flexjs/TreeExample/src/models/MyModel.as | 72 --- examples/pom.xml | 4 +- pom.xml | 90 ++- src/site/site.xml | 46 +- 499 files changed, 17503 insertions(+), 17389 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/ChartExample.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/ChartExample.mxml b/examples/flexjs/ChartExample/src/ChartExample.mxml deleted file mode 100644 index 57bc2a4..0000000 --- a/examples/flexjs/ChartExample/src/ChartExample.mxml +++ /dev/null @@ -1,39 +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. -// -//////////////////////////////////////////////////////////////////////////////// ---> -<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:models="models.*" - xmlns:js="library://ns.apache.org/flexjs/basic" - > - <js:beads> - <js:BrowserScroller /> - </js:beads> - <js:valuesImpl> - <js:SimpleCSSValuesImpl /> - </js:valuesImpl> - <js:model> - <models:ProductsModel /> - </js:model> - <js:initialView> - <local:MyInitialView /> - </js:initialView> -</js:Application> - http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/MyInitialView.mxml b/examples/flexjs/ChartExample/src/MyInitialView.mxml deleted file mode 100644 index 17e2e09..0000000 --- a/examples/flexjs/ChartExample/src/MyInitialView.mxml +++ /dev/null @@ -1,312 +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. - ---> -<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*" - initComplete="testit()" - > - <fx:Script> - <![CDATA[ - - import models.ProductsModel; - - private function testit():void - { - var m:ProductsModel = applicationModel as ProductsModel; - m.generateWaves(50); - waveChart.dataProvider = m.wave1; - } - - ]]> - </fx:Script> - - <fx:Style> - @namespace js "library://ns.apache.org/flexjs/basic"; - .AllCharts { - border-width: 0px; - padding-left: 2px; - padding-top: 10px; - padding-bottom: 2px; - padding-right: 10px; - } - </fx:Style> - - <js:Label id="output" x="50" y="30" width="100" /> - - <js:ColumnChart id="columnChart" x="20" y="20" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:HorizontalCategoryAxisBead categoryField="title" /> - <js:VerticalLinearAxisBead valueField="sales2013" /> - </js:beads> - <js:series> - <js:ColumnSeries yField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - <js:ColumnSeries yField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - </js:series> - </js:ColumnChart> - - <js:BarChart id="barChart" x="500" y="20" width="400" height="300" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:VerticalCategoryAxisBead categoryField="title" /> - <js:HorizontalLinearAxisBead valueField="sales2013" /> - </js:beads> - <js:series> - <js:BarSeries xField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - <js:BarSeries xField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="1.0" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - </js:series> - </js:BarChart> - - <js:StackedColumnChart id="stackedChart" x="20" y="300" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:HorizontalCategoryAxisBead categoryField="title" /> - </js:beads> - <js:series> - <js:ColumnSeries yField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - <js:ColumnSeries yField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:ColumnSeries> - </js:series> - </js:StackedColumnChart> - - <js:StackedBarChart id="stackedBarChart" x="500" y="400" width="400" height="300" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:VerticalCategoryAxisBead categoryField="title" /> - </js:beads> - <js:series> - <js:BarSeries xField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - <js:BarSeries xField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="0.5" /> - </js:fill> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="2" /> - </js:stroke> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - </js:BarSeries> - </js:series> - </js:StackedBarChart> - - <js:PieChart id="pieChart" x="20" y="550" width="200" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - </js:beads> - <js:series> - <js:PieSeries dataField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:WedgeItemRenderer /> - </fx:Component> - </js:itemRenderer> - </js:PieSeries> - </js:series> - </js:PieChart> - - <js:LineChart id="lineChart" x="500" y="750" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:HorizontalLinearAxisBead valueField="detail" /> - <js:VerticalLinearAxisBead valueField="sales2013" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="detail" yField="sales2013"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF964D" alpha="1" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="3" alpha="0.8" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - <js:LineSeries xField="detail" yField="sales2014"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#964DFF" alpha="1" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="3" alpha="0.8" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - - <js:LineChart id="waveChart" x="20" y="800" width="400" height="200" className="AllCharts"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="wave1" - destinationPropertyName="dataProvider" /> - <js:HorizontalLinearAxisBead valueField="x" /> - <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="x" yField="sin"> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="5" alpha="1" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - <js:LineSeries xField="x" yField="cos"> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#FF964D" weight="5" alpha="1" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - -</js:View> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/SpeedTestView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/SpeedTestView.mxml b/examples/flexjs/ChartExample/src/SpeedTestView.mxml deleted file mode 100644 index 4b8f77d..0000000 --- a/examples/flexjs/ChartExample/src/SpeedTestView.mxml +++ /dev/null @@ -1,187 +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. - ---> -<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*" - > - <fx:Script> - <![CDATA[ - import models.ProductsModel; - - import org.apache.flex.events.Event; - - private var startTime:Date; - private var endTime:Date; - - private function startTimingSVG():void - { - var n:Number = Number(numPoints.text); - - var m:ProductsModel = applicationModel as ProductsModel; - m.generateWaves(n); - - trace("Will start timing"); - startTime = new Date(); - svgChart.addEventListener("layoutComplete",wave1Complete); - svgChart.dataProvider = m.wave1; - } - - private function wave1Complete(event:org.apache.flex.events.Event):void - { - endTime = new Date(); - var diff:Number = endTime.getTime() - startTime.getTime(); - svgChartResults.text = diff+" msecs"; - } - - private function startTimingReg():void - { - var n:Number = Number(numPoints.text); - - var m:ProductsModel = applicationModel as ProductsModel; - m.generateWaves(n); - - trace("Will start timing"); - startTime = new Date(); - regChart.addEventListener("layoutComplete",wave2Complete); - regChart.dataProvider = m.wave1; - } - - private function wave2Complete(event:org.apache.flex.events.Event):void - { - endTime = new Date(); - var diff:Number = endTime.getTime() - startTime.getTime(); - regChartResults.text = diff+" msecs"; - } - ]]> - </fx:Script> - - <fx:Style> - @namespace models "models.*"; - @namespace basic "library://ns.apache.org/flexjs/basic"; - - .hsline { - IDataGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartDataGroup"); - IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartAxisGroup"); - IVerticalAxisGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartAxisGroup"); - } - </fx:Style> - - <js:Container x="20" y="20"> - <js:beads> - <js:HorizontalLayout /> - </js:beads> - <js:Label text="Points:" /> - <js:TextInput id="numPoints" text="300" /> - </js:Container> - - <!-- SVG Line Chart --> - - <js:Label text="SVG Chart" x="250" y="80" /> - - <js:LineChart id="svgChart" x="21" y="100" width="400" height="200" className="hsline"> - <js:beads> - <!--<js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="wave" - destinationPropertyName="dataProvider" />--> - <js:HorizontalLinearAxisBead valueField="x" /> - <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="x" yField="sin"> - <js:itemRenderer> - <fx:Component> - <js:SVGBoxItemRenderer> - <js:fill> - <js:SolidColor color="#FF44FF" alpha="1" /> - </js:fill> - </js:SVGBoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:SVGLineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#964DFF" weight="2" alpha="1" /> - </js:stroke> - </js:SVGLineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - - <!-- Regular Line Chart --> - - <js:Label text="Reg Chart" x="650" y="80" /> - - <js:LineChart id="regChart" x="500" y="100" width="400" height="200"> - <js:beads> - <!--<js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="wave2" - destinationPropertyName="dataProvider" />--> - <js:HorizontalLinearAxisBead valueField="x" /> - <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> - <js:LineChartLinearVsLinearLayout /> - </js:beads> - <js:series> - <js:LineSeries xField="x" yField="sin"> - <js:itemRenderer> - <fx:Component> - <js:BoxItemRenderer> - <js:fill> - <js:SolidColor color="#99FF99" alpha="1" /> - </js:fill> - </js:BoxItemRenderer> - </fx:Component> - </js:itemRenderer> - <js:lineSegmentRenderer> - <fx:Component> - <js:LineSegmentItemRenderer> - <js:stroke> - <js:SolidColorStroke color="#33DD33" weight="2" alpha="1" /> - </js:stroke> - </js:LineSegmentItemRenderer> - </fx:Component> - </js:lineSegmentRenderer> - </js:LineSeries> - </js:series> - </js:LineChart> - - <js:Container x="150" y="325"> - <js:beads> - <js:HorizontalLayout /> - </js:beads> - <js:TextButton text="SVG Go" click="startTimingSVG()" /> - <js:Label text=" (results)" id="svgChartResults" /> - </js:Container> - - <js:Container x="650" y="325"> - <js:beads> - <js:HorizontalLayout /> - </js:beads> - <js:TextButton text="Reg Go" click="startTimingReg()" /> - <js:Label text=" (results)" id="regChartResults" /> - </js:Container> - -</js:View> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/main/flex/ChartExample.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/main/flex/ChartExample.mxml b/examples/flexjs/ChartExample/src/main/flex/ChartExample.mxml new file mode 100644 index 0000000..57bc2a4 --- /dev/null +++ b/examples/flexjs/ChartExample/src/main/flex/ChartExample.mxml @@ -0,0 +1,39 @@ +<?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. +// +//////////////////////////////////////////////////////////////////////////////// +--> +<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:local="*" + xmlns:models="models.*" + xmlns:js="library://ns.apache.org/flexjs/basic" + > + <js:beads> + <js:BrowserScroller /> + </js:beads> + <js:valuesImpl> + <js:SimpleCSSValuesImpl /> + </js:valuesImpl> + <js:model> + <models:ProductsModel /> + </js:model> + <js:initialView> + <local:MyInitialView /> + </js:initialView> +</js:Application> + http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml b/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml new file mode 100644 index 0000000..17e2e09 --- /dev/null +++ b/examples/flexjs/ChartExample/src/main/flex/MyInitialView.mxml @@ -0,0 +1,312 @@ +<?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. + +--> +<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:js="library://ns.apache.org/flexjs/basic" + xmlns:local="*" + xmlns:models="models.*" + initComplete="testit()" + > + <fx:Script> + <![CDATA[ + + import models.ProductsModel; + + private function testit():void + { + var m:ProductsModel = applicationModel as ProductsModel; + m.generateWaves(50); + waveChart.dataProvider = m.wave1; + } + + ]]> + </fx:Script> + + <fx:Style> + @namespace js "library://ns.apache.org/flexjs/basic"; + .AllCharts { + border-width: 0px; + padding-left: 2px; + padding-top: 10px; + padding-bottom: 2px; + padding-right: 10px; + } + </fx:Style> + + <js:Label id="output" x="50" y="30" width="100" /> + + <js:ColumnChart id="columnChart" x="20" y="20" width="400" height="200" className="AllCharts"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="productList" + destinationPropertyName="dataProvider" /> + <js:HorizontalCategoryAxisBead categoryField="title" /> + <js:VerticalLinearAxisBead valueField="sales2013" /> + </js:beads> + <js:series> + <js:ColumnSeries yField="sales2013"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#FF964D" alpha="1.0" /> + </js:fill> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:ColumnSeries> + <js:ColumnSeries yField="sales2014"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#964DFF" alpha="1.0" /> + </js:fill> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:ColumnSeries> + </js:series> + </js:ColumnChart> + + <js:BarChart id="barChart" x="500" y="20" width="400" height="300" className="AllCharts"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="productList" + destinationPropertyName="dataProvider" /> + <js:VerticalCategoryAxisBead categoryField="title" /> + <js:HorizontalLinearAxisBead valueField="sales2013" /> + </js:beads> + <js:series> + <js:BarSeries xField="sales2013"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#FF964D" alpha="1.0" /> + </js:fill> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:BarSeries> + <js:BarSeries xField="sales2014"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#964DFF" alpha="1.0" /> + </js:fill> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:BarSeries> + </js:series> + </js:BarChart> + + <js:StackedColumnChart id="stackedChart" x="20" y="300" width="400" height="200" className="AllCharts"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="productList" + destinationPropertyName="dataProvider" /> + <js:HorizontalCategoryAxisBead categoryField="title" /> + </js:beads> + <js:series> + <js:ColumnSeries yField="sales2013"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#FF964D" alpha="0.5" /> + </js:fill> + <js:stroke> + <js:SolidColorStroke color="#FF964D" weight="2" /> + </js:stroke> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:ColumnSeries> + <js:ColumnSeries yField="sales2014"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#964DFF" alpha="0.5" /> + </js:fill> + <js:stroke> + <js:SolidColorStroke color="#964DFF" weight="2" /> + </js:stroke> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:ColumnSeries> + </js:series> + </js:StackedColumnChart> + + <js:StackedBarChart id="stackedBarChart" x="500" y="400" width="400" height="300" className="AllCharts"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="productList" + destinationPropertyName="dataProvider" /> + <js:VerticalCategoryAxisBead categoryField="title" /> + </js:beads> + <js:series> + <js:BarSeries xField="sales2013"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#FF964D" alpha="0.5" /> + </js:fill> + <js:stroke> + <js:SolidColorStroke color="#FF964D" weight="2" /> + </js:stroke> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:BarSeries> + <js:BarSeries xField="sales2014"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#964DFF" alpha="0.5" /> + </js:fill> + <js:stroke> + <js:SolidColorStroke color="#964DFF" weight="2" /> + </js:stroke> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + </js:BarSeries> + </js:series> + </js:StackedBarChart> + + <js:PieChart id="pieChart" x="20" y="550" width="200" height="200" className="AllCharts"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="productList" + destinationPropertyName="dataProvider" /> + </js:beads> + <js:series> + <js:PieSeries dataField="sales2013"> + <js:itemRenderer> + <fx:Component> + <js:WedgeItemRenderer /> + </fx:Component> + </js:itemRenderer> + </js:PieSeries> + </js:series> + </js:PieChart> + + <js:LineChart id="lineChart" x="500" y="750" width="400" height="200" className="AllCharts"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="productList" + destinationPropertyName="dataProvider" /> + <js:HorizontalLinearAxisBead valueField="detail" /> + <js:VerticalLinearAxisBead valueField="sales2013" /> + <js:LineChartLinearVsLinearLayout /> + </js:beads> + <js:series> + <js:LineSeries xField="detail" yField="sales2013"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#FF964D" alpha="1" /> + </js:fill> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + <js:lineSegmentRenderer> + <fx:Component> + <js:LineSegmentItemRenderer> + <js:stroke> + <js:SolidColorStroke color="#FF964D" weight="3" alpha="0.8" /> + </js:stroke> + </js:LineSegmentItemRenderer> + </fx:Component> + </js:lineSegmentRenderer> + </js:LineSeries> + <js:LineSeries xField="detail" yField="sales2014"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#964DFF" alpha="1" /> + </js:fill> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + <js:lineSegmentRenderer> + <fx:Component> + <js:LineSegmentItemRenderer> + <js:stroke> + <js:SolidColorStroke color="#964DFF" weight="3" alpha="0.8" /> + </js:stroke> + </js:LineSegmentItemRenderer> + </fx:Component> + </js:lineSegmentRenderer> + </js:LineSeries> + </js:series> + </js:LineChart> + + <js:LineChart id="waveChart" x="20" y="800" width="400" height="200" className="AllCharts"> + <js:beads> + <js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="wave1" + destinationPropertyName="dataProvider" /> + <js:HorizontalLinearAxisBead valueField="x" /> + <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> + <js:LineChartLinearVsLinearLayout /> + </js:beads> + <js:series> + <js:LineSeries xField="x" yField="sin"> + <js:lineSegmentRenderer> + <fx:Component> + <js:LineSegmentItemRenderer> + <js:stroke> + <js:SolidColorStroke color="#964DFF" weight="5" alpha="1" /> + </js:stroke> + </js:LineSegmentItemRenderer> + </fx:Component> + </js:lineSegmentRenderer> + </js:LineSeries> + <js:LineSeries xField="x" yField="cos"> + <js:lineSegmentRenderer> + <fx:Component> + <js:LineSegmentItemRenderer> + <js:stroke> + <js:SolidColorStroke color="#FF964D" weight="5" alpha="1" /> + </js:stroke> + </js:LineSegmentItemRenderer> + </fx:Component> + </js:lineSegmentRenderer> + </js:LineSeries> + </js:series> + </js:LineChart> + +</js:View> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml b/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml new file mode 100644 index 0000000..4b8f77d --- /dev/null +++ b/examples/flexjs/ChartExample/src/main/flex/SpeedTestView.mxml @@ -0,0 +1,187 @@ +<?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. + +--> +<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:js="library://ns.apache.org/flexjs/basic" + xmlns:local="*" + xmlns:models="models.*" + > + <fx:Script> + <![CDATA[ + import models.ProductsModel; + + import org.apache.flex.events.Event; + + private var startTime:Date; + private var endTime:Date; + + private function startTimingSVG():void + { + var n:Number = Number(numPoints.text); + + var m:ProductsModel = applicationModel as ProductsModel; + m.generateWaves(n); + + trace("Will start timing"); + startTime = new Date(); + svgChart.addEventListener("layoutComplete",wave1Complete); + svgChart.dataProvider = m.wave1; + } + + private function wave1Complete(event:org.apache.flex.events.Event):void + { + endTime = new Date(); + var diff:Number = endTime.getTime() - startTime.getTime(); + svgChartResults.text = diff+" msecs"; + } + + private function startTimingReg():void + { + var n:Number = Number(numPoints.text); + + var m:ProductsModel = applicationModel as ProductsModel; + m.generateWaves(n); + + trace("Will start timing"); + startTime = new Date(); + regChart.addEventListener("layoutComplete",wave2Complete); + regChart.dataProvider = m.wave1; + } + + private function wave2Complete(event:org.apache.flex.events.Event):void + { + endTime = new Date(); + var diff:Number = endTime.getTime() - startTime.getTime(); + regChartResults.text = diff+" msecs"; + } + ]]> + </fx:Script> + + <fx:Style> + @namespace models "models.*"; + @namespace basic "library://ns.apache.org/flexjs/basic"; + + .hsline { + IDataGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartDataGroup"); + IHorizontalAxisGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartAxisGroup"); + IVerticalAxisGroup: ClassReference("org.apache.flex.charts.optimized.SVGChartAxisGroup"); + } + </fx:Style> + + <js:Container x="20" y="20"> + <js:beads> + <js:HorizontalLayout /> + </js:beads> + <js:Label text="Points:" /> + <js:TextInput id="numPoints" text="300" /> + </js:Container> + + <!-- SVG Line Chart --> + + <js:Label text="SVG Chart" x="250" y="80" /> + + <js:LineChart id="svgChart" x="21" y="100" width="400" height="200" className="hsline"> + <js:beads> + <!--<js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="wave" + destinationPropertyName="dataProvider" />--> + <js:HorizontalLinearAxisBead valueField="x" /> + <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> + <js:LineChartLinearVsLinearLayout /> + </js:beads> + <js:series> + <js:LineSeries xField="x" yField="sin"> + <js:itemRenderer> + <fx:Component> + <js:SVGBoxItemRenderer> + <js:fill> + <js:SolidColor color="#FF44FF" alpha="1" /> + </js:fill> + </js:SVGBoxItemRenderer> + </fx:Component> + </js:itemRenderer> + <js:lineSegmentRenderer> + <fx:Component> + <js:SVGLineSegmentItemRenderer> + <js:stroke> + <js:SolidColorStroke color="#964DFF" weight="2" alpha="1" /> + </js:stroke> + </js:SVGLineSegmentItemRenderer> + </fx:Component> + </js:lineSegmentRenderer> + </js:LineSeries> + </js:series> + </js:LineChart> + + <!-- Regular Line Chart --> + + <js:Label text="Reg Chart" x="650" y="80" /> + + <js:LineChart id="regChart" x="500" y="100" width="400" height="200"> + <js:beads> + <!--<js:ConstantBinding + sourceID="applicationModel" + sourcePropertyName="wave2" + destinationPropertyName="dataProvider" />--> + <js:HorizontalLinearAxisBead valueField="x" /> + <js:VerticalLinearAxisBead valueField="sin" minimum="-1" maximum="1" /> + <js:LineChartLinearVsLinearLayout /> + </js:beads> + <js:series> + <js:LineSeries xField="x" yField="sin"> + <js:itemRenderer> + <fx:Component> + <js:BoxItemRenderer> + <js:fill> + <js:SolidColor color="#99FF99" alpha="1" /> + </js:fill> + </js:BoxItemRenderer> + </fx:Component> + </js:itemRenderer> + <js:lineSegmentRenderer> + <fx:Component> + <js:LineSegmentItemRenderer> + <js:stroke> + <js:SolidColorStroke color="#33DD33" weight="2" alpha="1" /> + </js:stroke> + </js:LineSegmentItemRenderer> + </fx:Component> + </js:lineSegmentRenderer> + </js:LineSeries> + </js:series> + </js:LineChart> + + <js:Container x="150" y="325"> + <js:beads> + <js:HorizontalLayout /> + </js:beads> + <js:TextButton text="SVG Go" click="startTimingSVG()" /> + <js:Label text=" (results)" id="svgChartResults" /> + </js:Container> + + <js:Container x="650" y="325"> + <js:beads> + <js:HorizontalLayout /> + </js:beads> + <js:TextButton text="Reg Go" click="startTimingReg()" /> + <js:Label text=" (results)" id="regChartResults" /> + </js:Container> + +</js:View> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/main/flex/models/ProductsModel.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/main/flex/models/ProductsModel.as b/examples/flexjs/ChartExample/src/main/flex/models/ProductsModel.as new file mode 100644 index 0000000..c173c6e --- /dev/null +++ b/examples/flexjs/ChartExample/src/main/flex/models/ProductsModel.as @@ -0,0 +1,79 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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 models +{ + import org.apache.flex.events.EventDispatcher; + + import products.Product; + + public class ProductsModel extends EventDispatcher + { + public function ProductsModel() + { + generateWaves(20); + } + + private var _productList:Array = [ + new Product("tx200","Thingys", 5, 285,314,"smallgreenrect.jpg"), + new Product("dh440","Doohickies", 10,340,125,"smallredrect.jpg"), + new Product("ps220","Weejets", 35,190,240,"smallorangerect.jpg"), + new Product("ps100","Widgets", 44,200,82,"smallbluerect.jpg"), + new Product("rz300","Sprockets", 80,105,271,"smallyellowrect.jpg") + ]; + public function get productList():Array + { + return _productList; + } + + private var _labelFields:Array = [ "id", "title", "sales2013", "sales2014", "detail" ]; + public function get labelFields():Array + { + return _labelFields; + } + + private var _wave:Array; + + public function generateWaves(numPoints:int):void + { + _wave = []; + + var angleIncr:Number = 360/numPoints; + var angle:Number = 0; + + for (var i:int=0; i < numPoints; i++) + { + var p:Object = {x:i, + sin:Math.sin(Math.PI/180*angle), + cos:Math.cos(Math.PI/180*angle)}; + angle += angleIncr; + _wave.push(p); + } + } + + public function get wave1():Array + { + return _wave; + } + + public function get wave2():Array + { + return _wave; + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/main/flex/products/Product.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/main/flex/products/Product.as b/examples/flexjs/ChartExample/src/main/flex/products/Product.as new file mode 100644 index 0000000..2205e69 --- /dev/null +++ b/examples/flexjs/ChartExample/src/main/flex/products/Product.as @@ -0,0 +1,45 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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 products +{ + public class Product + { + public function Product(id:String, title:String, detail:Number,sales2013:Number, sales2014:Number ,image:String) + { + this.id = id; + this.title = title; + this.detail = detail; + this.sales2013 = sales2013; + this.sales2014 = sales2014; + this.image = image; + } + + public var id:String; + public var title:String; + public var detail:Number; + public var image:String; + public var sales2013:Number; + public var sales2014:Number; + + public function toString():String + { + return title; + } + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/models/ProductsModel.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/models/ProductsModel.as b/examples/flexjs/ChartExample/src/models/ProductsModel.as deleted file mode 100644 index c173c6e..0000000 --- a/examples/flexjs/ChartExample/src/models/ProductsModel.as +++ /dev/null @@ -1,79 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 models -{ - import org.apache.flex.events.EventDispatcher; - - import products.Product; - - public class ProductsModel extends EventDispatcher - { - public function ProductsModel() - { - generateWaves(20); - } - - private var _productList:Array = [ - new Product("tx200","Thingys", 5, 285,314,"smallgreenrect.jpg"), - new Product("dh440","Doohickies", 10,340,125,"smallredrect.jpg"), - new Product("ps220","Weejets", 35,190,240,"smallorangerect.jpg"), - new Product("ps100","Widgets", 44,200,82,"smallbluerect.jpg"), - new Product("rz300","Sprockets", 80,105,271,"smallyellowrect.jpg") - ]; - public function get productList():Array - { - return _productList; - } - - private var _labelFields:Array = [ "id", "title", "sales2013", "sales2014", "detail" ]; - public function get labelFields():Array - { - return _labelFields; - } - - private var _wave:Array; - - public function generateWaves(numPoints:int):void - { - _wave = []; - - var angleIncr:Number = 360/numPoints; - var angle:Number = 0; - - for (var i:int=0; i < numPoints; i++) - { - var p:Object = {x:i, - sin:Math.sin(Math.PI/180*angle), - cos:Math.cos(Math.PI/180*angle)}; - angle += angleIncr; - _wave.push(p); - } - } - - public function get wave1():Array - { - return _wave; - } - - public function get wave2():Array - { - return _wave; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/ChartExample/src/products/Product.as ---------------------------------------------------------------------- diff --git a/examples/flexjs/ChartExample/src/products/Product.as b/examples/flexjs/ChartExample/src/products/Product.as deleted file mode 100644 index 2205e69..0000000 --- a/examples/flexjs/ChartExample/src/products/Product.as +++ /dev/null @@ -1,45 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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 products -{ - public class Product - { - public function Product(id:String, title:String, detail:Number,sales2013:Number, sales2014:Number ,image:String) - { - this.id = id; - this.title = title; - this.detail = detail; - this.sales2013 = sales2013; - this.sales2014 = sales2014; - this.image = image; - } - - public var id:String; - public var title:String; - public var detail:Number; - public var image:String; - public var sales2013:Number; - public var sales2014:Number; - - public function toString():String - { - return title; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/CordovaCameraExample/resources/config.xml ---------------------------------------------------------------------- diff --git a/examples/flexjs/CordovaCameraExample/resources/config.xml b/examples/flexjs/CordovaCameraExample/resources/config.xml deleted file mode 100644 index 00b9f64..0000000 --- a/examples/flexjs/CordovaCameraExample/resources/config.xml +++ /dev/null @@ -1,44 +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. - ---> -<widget id="${groupId}.${artifactId}" version="${version}" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> - <name>${artifactId}</name> - <description> - ${description} - </description> - <author email="[email protected]" href="http://flex.apache.org"> - Apache Flex Team - </author> - <content src="index.html" /> - <plugin name="cordova-plugin-whitelist" version="1" /> - <access origin="*" /> - <allow-intent href="http://*/*" /> - <allow-intent href="https://*/*" /> - <allow-intent href="tel:*" /> - <allow-intent href="sms:*" /> - <allow-intent href="mailto:*" /> - <allow-intent href="geo:*" /> - <platform name="android"> - <allow-intent href="market:*" /> - </platform> - <platform name="ios"> - <allow-intent href="itms:*" /> - <allow-intent href="itms-apps:*" /> - </platform> -</widget> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/CordovaCameraExample/src/CordovaCameraExample.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/CordovaCameraExample/src/CordovaCameraExample.mxml b/examples/flexjs/CordovaCameraExample/src/CordovaCameraExample.mxml deleted file mode 100644 index a745202..0000000 --- a/examples/flexjs/CordovaCameraExample/src/CordovaCameraExample.mxml +++ /dev/null @@ -1,39 +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. -// -//////////////////////////////////////////////////////////////////////////////// ---> -<cordova:Application xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:models="models.*" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:cordova="library://ns.apache.org/flexjs/cordova" - isDeviceReady="MyInitialView(initialView).ready = true" - > - - <cordova:valuesImpl> - <js:SimpleCSSValuesImpl /> - </cordova:valuesImpl> - <cordova:initialView> - <local:MyInitialView /> - </cordova:initialView> - <cordova:beads> - <js:MixinManager /> - <cordova:Weinre guid="aharui" /> - </cordova:beads> -</cordova:Application> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/CordovaCameraExample/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/CordovaCameraExample/src/MyInitialView.mxml b/examples/flexjs/CordovaCameraExample/src/MyInitialView.mxml deleted file mode 100644 index 7472d95..0000000 --- a/examples/flexjs/CordovaCameraExample/src/MyInitialView.mxml +++ /dev/null @@ -1,75 +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. - ---> -<js:View xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" > - <fx:Script> - <![CDATA[ - - import org.apache.cordova.camera.Camera; - - private var cam:org.apache.cordova.camera.Camera = new org.apache.cordova.camera.Camera(); - - public function set ready(value:Boolean):void - { - status.text = "ready"; - } - - public function snapPicture() : void - { - trace("snapping"); - cam.getPicture(success,failure,{quality:100, destinationType:org.apache.cordova.camera.Camera.DestinationType.FILE_URI}); - } - - private function success(data:Object):void - { - output.text = "Success: "+String(data); - image.source = String(data); - } - - private function failure(message:Object):void - { - output.text = "Failed: "+String(message); - } - - private function onFromPhotoLibrary() : void - { - cam.getPicture(success,failure,{ quality: 50, - destinationType: org.apache.cordova.camera.Camera.DestinationType.FILE_URI, - sourceType: org.apache.cordova.camera.Camera.PictureSourceType.PHOTOLIBRARY }); - } - - ]]> - </fx:Script> - - <fx:Style> - - </fx:Style> - - <js:Label id="status" x="20" y="140" width="400" text="loading..."/> - - <js:TextButton text="From Photo Library" x="20" y="20" click="onFromPhotoLibrary()" /> - <js:TextButton text="Snap Picture" x="20" y="55" click="snapPicture()" /> - - <js:Label id="output" x="20" y="110" width="400"/> - - <js:Image id="image" x="20" y="200" width="200" height="200" /> - -</js:View> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e75059f7/examples/flexjs/CordovaCameraExample/src/main/flex/CordovaCameraExample.mxml ---------------------------------------------------------------------- diff --git a/examples/flexjs/CordovaCameraExample/src/main/flex/CordovaCameraExample.mxml b/examples/flexjs/CordovaCameraExample/src/main/flex/CordovaCameraExample.mxml new file mode 100644 index 0000000..a745202 --- /dev/null +++ b/examples/flexjs/CordovaCameraExample/src/main/flex/CordovaCameraExample.mxml @@ -0,0 +1,39 @@ +<?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. +// +//////////////////////////////////////////////////////////////////////////////// +--> +<cordova:Application xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:local="*" + xmlns:models="models.*" + xmlns:js="library://ns.apache.org/flexjs/basic" + xmlns:cordova="library://ns.apache.org/flexjs/cordova" + isDeviceReady="MyInitialView(initialView).ready = true" + > + + <cordova:valuesImpl> + <js:SimpleCSSValuesImpl /> + </cordova:valuesImpl> + <cordova:initialView> + <local:MyInitialView /> + </cordova:initialView> + <cordova:beads> + <js:MixinManager /> + <cordova:Weinre guid="aharui" /> + </cordova:beads> +</cordova:Application>
