move a bunch of examples to manualtests as they are more tests for us than examples for users
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/0485c8b6 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/0485c8b6 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/0485c8b6 Branch: refs/heads/develop Commit: 0485c8b63d6d867d3cb35500bec2189e0c4f11e2 Parents: 2f13eb0 Author: Alex Harui <[email protected]> Authored: Sun Aug 23 21:28:01 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Sun Aug 23 21:28:01 2015 -0700 ---------------------------------------------------------------------- examples/ContainerTest/build.xml | 74 ---- examples/ContainerTest/src/ContainerTest.mxml | 39 -- examples/ContainerTest/src/MyInitialView.mxml | 188 --------- .../ContainerTest/src/assets/logo_orange.png | Bin 33897 -> 0 bytes .../ContainerTest/src/models/ProductsModel.as | 44 -- examples/ContainerTest/src/products/Product.as | 43 -- .../src/products/ProductItemRenderer.as | 83 ---- examples/ContainerTest/src/smallbluerect.jpg | Bin 13500 -> 0 bytes examples/ContainerTest/src/smallgreenrect.jpg | Bin 13542 -> 0 bytes examples/ContainerTest/src/smallorangerect.gif | Bin 821 -> 0 bytes examples/ContainerTest/src/smallorangerect.jpg | Bin 13571 -> 0 bytes examples/ContainerTest/src/smallpurplerect.jpg | Bin 13517 -> 0 bytes examples/ContainerTest/src/smallredrect.jpg | Bin 13477 -> 0 bytes examples/ContainerTest/src/smallyellowrect.jpg | Bin 13598 -> 0 bytes examples/DataGridXcompile/build.xml | 71 ---- .../DataGridXcompile/src/DataGridXcompile.mxml | 37 -- .../DataGridXcompile/src/MyInitialView.mxml | 83 ---- .../src/models/MyGridPresentation.as | 32 -- .../src/models/ProductsModel.as | 53 --- .../flex/core/IDataGridPresentationModel.as | 31 -- .../apache/flex/html/customControls/DataGrid.as | 60 --- .../customControls/beads/DataGridColumnView.as | 57 --- .../html/customControls/beads/DataGridView.as | 149 ------- .../DataItemRendererFactoryForColumnData.as | 101 ----- .../html/customControls/beads/IDataGridView.as | 27 -- .../beads/IDataProviderItemRendererMapper.as | 34 -- .../beads/models/DataGridPresentationModel.as | 65 --- .../html/staticControls/beads/BoxGridView.as | 48 --- .../DataGridXcompile/src/products/Product.as | 41 -- examples/DateChooserExample/build.xml | 73 ---- .../src/DateChooserExample.mxml | 36 -- .../DateChooserExample/src/MyInitialView.mxml | 44 -- examples/DateChooserExample/src/README.txt | 43 -- examples/EffectsExample/build.xml | 77 ---- examples/EffectsExample/src/EffectExample.mxml | 33 -- examples/EffectsExample/src/MyInitialView.mxml | 89 ----- examples/EffectsExample/src/README.txt | 35 -- examples/EffectsExample/src/jproctor.jpg | Bin 21684 -> 0 bytes examples/EffectsExample/src/twong.jpg | Bin 19395 -> 0 bytes examples/FlexJSTest_HTML5/build.xml | 70 ---- .../FlexJSTest_HTML5/src/ButtonImageDown.png | Bin 206 -> 0 bytes .../FlexJSTest_HTML5/src/ButtonImageOver.png | Bin 266 -> 0 bytes examples/FlexJSTest_HTML5/src/ButtonImageUp.png | Bin 236 -> 0 bytes .../FlexJSTest_HTML5/src/FlexJSTest_HTML5.mxml | 51 --- .../FlexJSTest_HTML5/src/MyInitialView.mxml | 144 ------- .../src/StockDataJSONItemConverter.as | 36 -- .../src/controllers/MyController.as | 92 ----- examples/FlexJSTest_HTML5/src/models/MyModel.as | 59 --- examples/FlexJSTest_Panel/build.xml | 71 ---- .../FlexJSTest_Panel/src/FlexJSTest_Panel.mxml | 32 -- .../FlexJSTest_Panel/src/MyInitialView.mxml | 144 ------- examples/FlexJSTest_Panel/src/README.txt | 45 --- examples/FlexJSTest_SVG/build.xml | 71 ---- examples/FlexJSTest_SVG/src/FlexJSTest_SVG.mxml | 39 -- examples/FlexJSTest_SVG/src/GraphicsView.mxml | 327 --------------- examples/FlexJSTest_SVG/src/MyInitialView.mxml | 58 --- examples/FlexJSTest_SVG/src/README.txt | 45 --- examples/FlexJSTest_SVG/src/SkinsView.mxml | 103 ----- .../src/controllers/MyController.as | 52 --- examples/FlexJSTest_SVG/src/models/MyModel.as | 47 --- .../FlexJSTest_SVG/src/skins/Button_up.mxml | 27 -- .../src/skins/flatspark/enums/BrandColorEnum.as | 30 -- .../skins/flatspark/enums/ButtonColorEnum.as | 59 --- .../src/skins/flatspark/enums/ButtonSizeEnum.as | 31 -- .../skins/flatspark/enums/ColorSwatchEnum.as | 40 -- .../src/skins/flatspark/enums/SizeEnum.as | 32 -- .../skins/flatspark/enums/TextInputSizeEnum.as | 30 -- .../src/skins/flatspark/utils/AwesomeUtils.as | 399 ------------------- .../src/skins/flatspark/utils/ColorUtils.as | 89 ----- .../src/skins/flatspark/utils/ConfigSkin.as | 44 -- examples/FlexJSTest_basic/build.xml | 70 ---- .../FlexJSTest_basic/src/ButtonImageDown.png | Bin 206 -> 0 bytes .../FlexJSTest_basic/src/ButtonImageOver.png | Bin 266 -> 0 bytes examples/FlexJSTest_basic/src/ButtonImageUp.png | Bin 236 -> 0 bytes .../FlexJSTest_basic/src/FlexJSTest_basic.mxml | 51 --- .../FlexJSTest_basic/src/MyInitialView.mxml | 143 ------- examples/FlexJSTest_basic/src/README.txt | 47 --- .../src/StockDataJSONItemConverter.as | 38 -- .../src/controllers/MyController.as | 92 ----- examples/FlexJSTest_basic/src/models/MyModel.as | 59 --- examples/FlexJSTest_createjs/build.xml | 70 ---- .../src/CreateJSExample.mxml | 58 --- .../FlexJSTest_createjs/src/MyInitialView.mxml | 58 --- examples/FlexJSTest_createjs/src/README.txt | 22 - .../src/controllers/MyController.as | 57 --- .../FlexJSTest_createjs/src/models/MyModel.as | 53 --- examples/FlexJSTest_jquery/build.xml | 70 ---- .../FlexJSTest_jquery/src/ButtonImageDown.png | Bin 206 -> 0 bytes .../FlexJSTest_jquery/src/ButtonImageOver.png | Bin 266 -> 0 bytes .../FlexJSTest_jquery/src/ButtonImageUp.png | Bin 236 -> 0 bytes .../FlexJSTest_jquery/src/MyInitialView.mxml | 148 ------- .../src/StockDataJSONItemConverter.as | 38 -- .../src/controllers/MyController.as | 92 ----- .../FlexJSTest_jquery/src/jQuerySample.mxml | 64 --- .../FlexJSTest_jquery/src/models/MyModel.as | 59 --- examples/FormExample/build.xml | 77 ---- examples/FormExample/src/FormExample.mxml | 33 -- examples/FormExample/src/MyFormView.mxml | 73 ---- examples/FormExample/src/README.txt | 45 --- examples/FormatExample/build.xml | 77 ---- examples/FormatExample/src/FormatExample.mxml | 33 -- examples/FormatExample/src/MyFormView.mxml | 133 ------- .../FormatExample/src/dialogs/DialogView.as | 38 -- .../FormatExample/src/dialogs/LoginDialog.mxml | 70 ---- .../accessories/NumberFormatter.as | 210 ---------- .../accessories/PhoneNumberFormatter.as | 195 --------- examples/ImageTest/build.xml | 70 ---- examples/ImageTest/src/ImageTest.mxml | 33 -- examples/ImageTest/src/MyInitialView.mxml | 45 --- examples/ImageTest/src/README.txt | 40 -- examples/ImageTest/src/largegreenrect.png | Bin 56681 -> 0 bytes examples/ImageTest/src/smallbluerect.jpg | Bin 13500 -> 0 bytes examples/ImageTest/src/smallgreenrect.jpg | Bin 13542 -> 0 bytes examples/ImageTest/src/smallorangerect.gif | Bin 821 -> 0 bytes examples/LanguageTests/build.xml | 71 ---- examples/LanguageTests/src/LanguageTests.as | 159 -------- examples/LanguageTests/src/README.txt | 26 -- examples/LanguageTests/src/classes/B.as | 25 -- examples/LanguageTests/src/classes/C.as | 27 -- examples/LanguageTests/src/interfaces/IA.as | 22 - examples/LanguageTests/src/interfaces/IB.as | 22 - examples/LanguageTests/src/interfaces/IC.as | 22 - examples/LanguageTests/src/interfaces/ID.as | 22 - examples/LanguageTests/src/interfaces/IE.as | 22 - examples/LanguageTests/src/interfaces/IF.as | 22 - examples/ListsTest/build.xml | 71 ---- examples/ListsTest/src/FirstView.mxml | 63 --- examples/ListsTest/src/ListsTests.mxml | 36 -- examples/ListsTest/src/README.txt | 47 --- examples/ListsTest/src/models/ProductsModel.as | 42 -- examples/ListsTest/src/products/Product.as | 43 -- .../src/products/ProductItemRenderer.as | 83 ---- examples/ListsTest/src/smallbluerect.jpg | Bin 13500 -> 0 bytes examples/ListsTest/src/smallgreenrect.jpg | Bin 13542 -> 0 bytes examples/ListsTest/src/smallorangerect.gif | Bin 821 -> 0 bytes examples/ListsTest/src/smallorangerect.jpg | Bin 13571 -> 0 bytes examples/ListsTest/src/smallpurplerect.jpg | Bin 13517 -> 0 bytes examples/ListsTest/src/smallredrect.jpg | Bin 13477 -> 0 bytes examples/ListsTest/src/smallyellowrect.jpg | Bin 13598 -> 0 bytes examples/RollEventsTest/build.xml | 70 ---- examples/RollEventsTest/src/RollEvent.as | 33 -- .../RollEventsTest/src/RollEventController.as | 79 ---- examples/RollEventsTest/src/RollEventsTest.mxml | 52 --- examples/VanillaSDK_POC/build.xml | 48 --- examples/VanillaSDK_POC/src/Example.as | 83 ---- examples/VanillaSDK_POC/src/Main.mxml | 21 - manualtests/ContainerTest/build.xml | 74 ++++ .../ContainerTest/src/ContainerTest.mxml | 39 ++ .../ContainerTest/src/MyInitialView.mxml | 188 +++++++++ .../ContainerTest/src/assets/logo_orange.png | Bin 0 -> 33897 bytes .../ContainerTest/src/models/ProductsModel.as | 44 ++ .../ContainerTest/src/products/Product.as | 43 ++ .../src/products/ProductItemRenderer.as | 83 ++++ manualtests/ContainerTest/src/smallbluerect.jpg | Bin 0 -> 13500 bytes .../ContainerTest/src/smallgreenrect.jpg | Bin 0 -> 13542 bytes .../ContainerTest/src/smallorangerect.gif | Bin 0 -> 821 bytes .../ContainerTest/src/smallorangerect.jpg | Bin 0 -> 13571 bytes .../ContainerTest/src/smallpurplerect.jpg | Bin 0 -> 13517 bytes manualtests/ContainerTest/src/smallredrect.jpg | Bin 0 -> 13477 bytes .../ContainerTest/src/smallyellowrect.jpg | Bin 0 -> 13598 bytes manualtests/DataGridXcompile/build.xml | 71 ++++ .../DataGridXcompile/src/DataGridXcompile.mxml | 37 ++ .../DataGridXcompile/src/MyInitialView.mxml | 83 ++++ .../src/models/MyGridPresentation.as | 32 ++ .../src/models/ProductsModel.as | 53 +++ .../flex/core/IDataGridPresentationModel.as | 31 ++ .../apache/flex/html/customControls/DataGrid.as | 60 +++ .../customControls/beads/DataGridColumnView.as | 57 +++ .../html/customControls/beads/DataGridView.as | 149 +++++++ .../DataItemRendererFactoryForColumnData.as | 101 +++++ .../html/customControls/beads/IDataGridView.as | 27 ++ .../beads/IDataProviderItemRendererMapper.as | 34 ++ .../beads/models/DataGridPresentationModel.as | 65 +++ .../html/staticControls/beads/BoxGridView.as | 48 +++ .../DataGridXcompile/src/products/Product.as | 41 ++ manualtests/DateChooserExample/build.xml | 73 ++++ .../src/DateChooserExample.mxml | 36 ++ .../DateChooserExample/src/MyInitialView.mxml | 44 ++ manualtests/DateChooserExample/src/README.txt | 43 ++ manualtests/EffectsExample/build.xml | 77 ++++ .../EffectsExample/src/EffectExample.mxml | 33 ++ .../EffectsExample/src/MyInitialView.mxml | 89 +++++ manualtests/EffectsExample/src/README.txt | 35 ++ manualtests/EffectsExample/src/jproctor.jpg | Bin 0 -> 21684 bytes manualtests/EffectsExample/src/twong.jpg | Bin 0 -> 19395 bytes manualtests/FlexJSTest_HTML5/build.xml | 70 ++++ .../FlexJSTest_HTML5/src/ButtonImageDown.png | Bin 0 -> 206 bytes .../FlexJSTest_HTML5/src/ButtonImageOver.png | Bin 0 -> 266 bytes .../FlexJSTest_HTML5/src/ButtonImageUp.png | Bin 0 -> 236 bytes .../FlexJSTest_HTML5/src/FlexJSTest_HTML5.mxml | 51 +++ .../FlexJSTest_HTML5/src/MyInitialView.mxml | 144 +++++++ .../src/StockDataJSONItemConverter.as | 36 ++ .../src/controllers/MyController.as | 92 +++++ .../FlexJSTest_HTML5/src/models/MyModel.as | 59 +++ manualtests/FlexJSTest_Panel/build.xml | 71 ++++ .../FlexJSTest_Panel/src/FlexJSTest_Panel.mxml | 32 ++ .../FlexJSTest_Panel/src/MyInitialView.mxml | 144 +++++++ manualtests/FlexJSTest_Panel/src/README.txt | 45 +++ manualtests/FlexJSTest_SVG/build.xml | 71 ++++ .../FlexJSTest_SVG/src/FlexJSTest_SVG.mxml | 39 ++ .../FlexJSTest_SVG/src/GraphicsView.mxml | 327 +++++++++++++++ .../FlexJSTest_SVG/src/MyInitialView.mxml | 58 +++ manualtests/FlexJSTest_SVG/src/README.txt | 45 +++ manualtests/FlexJSTest_SVG/src/SkinsView.mxml | 103 +++++ .../src/controllers/MyController.as | 52 +++ .../FlexJSTest_SVG/src/models/MyModel.as | 47 +++ .../FlexJSTest_SVG/src/skins/Button_up.mxml | 27 ++ .../src/skins/flatspark/enums/BrandColorEnum.as | 30 ++ .../skins/flatspark/enums/ButtonColorEnum.as | 59 +++ .../src/skins/flatspark/enums/ButtonSizeEnum.as | 31 ++ .../skins/flatspark/enums/ColorSwatchEnum.as | 40 ++ .../src/skins/flatspark/enums/SizeEnum.as | 32 ++ .../skins/flatspark/enums/TextInputSizeEnum.as | 30 ++ .../src/skins/flatspark/utils/AwesomeUtils.as | 399 +++++++++++++++++++ .../src/skins/flatspark/utils/ColorUtils.as | 89 +++++ .../src/skins/flatspark/utils/ConfigSkin.as | 44 ++ manualtests/FlexJSTest_basic/build.xml | 70 ++++ .../FlexJSTest_basic/src/ButtonImageDown.png | Bin 0 -> 206 bytes .../FlexJSTest_basic/src/ButtonImageOver.png | Bin 0 -> 266 bytes .../FlexJSTest_basic/src/ButtonImageUp.png | Bin 0 -> 236 bytes .../FlexJSTest_basic/src/FlexJSTest_basic.mxml | 51 +++ .../FlexJSTest_basic/src/MyInitialView.mxml | 143 +++++++ manualtests/FlexJSTest_basic/src/README.txt | 47 +++ .../src/StockDataJSONItemConverter.as | 38 ++ .../src/controllers/MyController.as | 92 +++++ .../FlexJSTest_basic/src/models/MyModel.as | 59 +++ manualtests/FlexJSTest_createjs/build.xml | 70 ++++ .../src/CreateJSExample.mxml | 58 +++ .../FlexJSTest_createjs/src/MyInitialView.mxml | 58 +++ manualtests/FlexJSTest_createjs/src/README.txt | 22 + .../src/controllers/MyController.as | 57 +++ .../FlexJSTest_createjs/src/models/MyModel.as | 53 +++ manualtests/FlexJSTest_jquery/build.xml | 70 ++++ .../FlexJSTest_jquery/src/ButtonImageDown.png | Bin 0 -> 206 bytes .../FlexJSTest_jquery/src/ButtonImageOver.png | Bin 0 -> 266 bytes .../FlexJSTest_jquery/src/ButtonImageUp.png | Bin 0 -> 236 bytes .../FlexJSTest_jquery/src/MyInitialView.mxml | 148 +++++++ .../src/StockDataJSONItemConverter.as | 38 ++ .../src/controllers/MyController.as | 92 +++++ .../FlexJSTest_jquery/src/jQuerySample.mxml | 64 +++ .../FlexJSTest_jquery/src/models/MyModel.as | 59 +++ manualtests/FormExample/build.xml | 77 ++++ manualtests/FormExample/src/FormExample.mxml | 33 ++ manualtests/FormExample/src/MyFormView.mxml | 73 ++++ manualtests/FormExample/src/README.txt | 45 +++ manualtests/FormatExample/build.xml | 77 ++++ .../FormatExample/src/FormatExample.mxml | 33 ++ manualtests/FormatExample/src/MyFormView.mxml | 133 +++++++ .../FormatExample/src/dialogs/DialogView.as | 38 ++ .../FormatExample/src/dialogs/LoginDialog.mxml | 70 ++++ .../accessories/NumberFormatter.as | 210 ++++++++++ .../accessories/PhoneNumberFormatter.as | 195 +++++++++ manualtests/ImageTest/build.xml | 70 ++++ manualtests/ImageTest/src/ImageTest.mxml | 33 ++ manualtests/ImageTest/src/MyInitialView.mxml | 45 +++ manualtests/ImageTest/src/README.txt | 40 ++ manualtests/ImageTest/src/largegreenrect.png | Bin 0 -> 56681 bytes manualtests/ImageTest/src/smallbluerect.jpg | Bin 0 -> 13500 bytes manualtests/ImageTest/src/smallgreenrect.jpg | Bin 0 -> 13542 bytes manualtests/ImageTest/src/smallorangerect.gif | Bin 0 -> 821 bytes manualtests/LanguageTests/build.xml | 71 ++++ manualtests/LanguageTests/src/LanguageTests.as | 159 ++++++++ manualtests/LanguageTests/src/README.txt | 26 ++ manualtests/LanguageTests/src/classes/B.as | 25 ++ manualtests/LanguageTests/src/classes/C.as | 27 ++ manualtests/LanguageTests/src/interfaces/IA.as | 22 + manualtests/LanguageTests/src/interfaces/IB.as | 22 + manualtests/LanguageTests/src/interfaces/IC.as | 22 + manualtests/LanguageTests/src/interfaces/ID.as | 22 + manualtests/LanguageTests/src/interfaces/IE.as | 22 + manualtests/LanguageTests/src/interfaces/IF.as | 22 + manualtests/ListsTest/build.xml | 71 ++++ manualtests/ListsTest/src/FirstView.mxml | 63 +++ manualtests/ListsTest/src/ListsTests.mxml | 36 ++ manualtests/ListsTest/src/README.txt | 47 +++ .../ListsTest/src/models/ProductsModel.as | 42 ++ manualtests/ListsTest/src/products/Product.as | 43 ++ .../src/products/ProductItemRenderer.as | 83 ++++ manualtests/ListsTest/src/smallbluerect.jpg | Bin 0 -> 13500 bytes manualtests/ListsTest/src/smallgreenrect.jpg | Bin 0 -> 13542 bytes manualtests/ListsTest/src/smallorangerect.gif | Bin 0 -> 821 bytes manualtests/ListsTest/src/smallorangerect.jpg | Bin 0 -> 13571 bytes manualtests/ListsTest/src/smallpurplerect.jpg | Bin 0 -> 13517 bytes manualtests/ListsTest/src/smallredrect.jpg | Bin 0 -> 13477 bytes manualtests/ListsTest/src/smallyellowrect.jpg | Bin 0 -> 13598 bytes manualtests/RollEventsTest/build.xml | 70 ++++ manualtests/RollEventsTest/src/RollEvent.as | 33 ++ .../RollEventsTest/src/RollEventController.as | 79 ++++ .../RollEventsTest/src/RollEventsTest.mxml | 52 +++ manualtests/VanillaSDK_POC/build.xml | 48 +++ manualtests/VanillaSDK_POC/src/Example.as | 83 ++++ manualtests/VanillaSDK_POC/src/Main.mxml | 21 + manualtests/build.xml | 148 +++++++ manualtests/build_example.xml | 356 +++++++++++++++++ 294 files changed, 8233 insertions(+), 7729 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/build.xml ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/build.xml b/examples/ContainerTest/build.xml deleted file mode 100644 index 1b3a266..0000000 --- a/examples/ContainerTest/build.xml +++ /dev/null @@ -1,74 +0,0 @@ -<?xml version="1.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. - ---> - - -<project name="containertest" default="main" basedir="."> - <property name="FLEXJS_HOME" location="../.."/> - <property name="example" value="ContainerTest" /> - - <property file="${FLEXJS_HOME}/env.properties"/> - <property environment="env"/> - <property file="${FLEXJS_HOME}/build.properties"/> - <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> - <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${env.FALCON_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/> - - <available file="${env.FALCONJX_HOME}/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${env.FALCONJX_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/> - - <available file="${env.GOOG_HOME}/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${env.GOOG_HOME}"/> - - <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${FLEXJS_HOME}/js/lib/google/closure-library"/> - - <include file="${basedir}/../build_example.xml" /> - -<!-- temp remove build_example.compilejs --> - <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}"> - </target> - - <target name="clean"> - <delete dir="${basedir}/bin" failonerror="false" /> - <delete dir="${basedir}/bin-debug" failonerror="false" /> - <delete dir="${basedir}/bin-release" failonerror="false" /> - </target> - - - -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/ContainerTest.mxml ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/ContainerTest.mxml b/examples/ContainerTest/src/ContainerTest.mxml deleted file mode 100644 index 5a101ef..0000000 --- a/examples/ContainerTest/src/ContainerTest.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" - xmlns:beads="org.apache.flex.html.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/0485c8b6/examples/ContainerTest/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/MyInitialView.mxml b/examples/ContainerTest/src/MyInitialView.mxml deleted file mode 100644 index a90db33..0000000 --- a/examples/ContainerTest/src/MyInitialView.mxml +++ /dev/null @@ -1,188 +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:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:local="*" - xmlns:models="models.*" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:controller="controller.*" - xmlns:views="views.*" - xmlns:beads="org.apache.flex.html.beads.*" xmlns:trial="trial.*" - > - - <fx:Style> - @namespace js "library://ns.apache.org/flexjs/basic"; - @namespace sample "products.*"; - - /* use className="productList" on the List element in place of itemRenderer if you want to specify - * the itemRenderer in a style definition along with other settings. - */ - .productList { - IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.DataItemRendererFactoryForArrayData"); - IItemRenderer: ClassReference("products.ProductItemRenderer"); - } - - sample|ProductItemRenderer { - height: 50; - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ItemRendererMouseController"); - } - - .Container1 { - background-color: #FFCC22; - padding: 2px; - } - - .Panel1 { - background-color: #CCFFCC; - padding: 2px; - } - - .Container2 { - background-color: #AADDAA; - } - - </fx:Style> - - <fx:Script> - <![CDATA[ - import org.apache.flex.html.Label; - - private function addAChild() : void - { - var label1:Label = new Label(); - label1.text = "Item: " + Math.random(); - label1.height = 50; - vcon.addElement(label1); - - var label2:Label = new Label(); - label2.text = "Panel: " + Math.random(); - label2.height = 50; - panel1.addElement(label2); - - var label3:Label = new Label(); - label3.text = "Random: " + Math.round(Math.random()*100); - tiler.addElement(label3); - - var label4:Label = new Label(); - label4.text = " /HCon: " + Math.random(); - label4.height = 50; - hcon.addElement(label4); - } - ]]> - </fx:Script> - <js:beads> - <js:MXMLBeadViewBaseDataBinding /> - </js:beads> - - <!-- FIRST COLUMN --> - - <js:TextButton text="Add Child" x="20" y="20" click="addAChild()" /> - - <js:HContainer id="hcon" x="20" y="80" width="400" height="100" className="Container1"> - <js:beads> - <js:ScrollingViewport /> - </js:beads> - <js:Label text="Line 1" height="30" /> - <js:Label text="Line 2" height="30" /> - <js:Label text="Line 3 is wider" height="30" /> - <js:Label text="Line 4" height="30" /> - <js:Label text="Line 5" height="30" /> - <js:Label text="Line 6" height="30" /> - </js:HContainer> - - <js:VContainer id="vcon" x="20" y="220" width="200" height="275" className="Container1"> - <js:beads> - <js:ScrollingViewport /> - </js:beads> - <js:Label text="Line 1" height="30" /> - <js:Label text="Line 2" height="30" /> - <js:Label text="Line 3 is wider" height="30" /> - <js:Label text="Line 4" height="30" /> - <js:Label text="Line 5" height="30" /> - <js:Label text="Line 6" height="30" /> - </js:VContainer> - - <js:Container id="tiler" x="20" y="530" width="400" height="200" className="Container2"> - <js:beads> - <js:TileLayout numColumns="4" rowHeight="50" /> - <js:ScrollingViewport /> - </js:beads> - <js:TextButton text="Button 1" /> - <js:TextButton text="Button 2" /> - <js:TextButton text="Button 3" /> - <js:TextButton text="Button 4" /> - <js:TextButton text="Button 5" /> - <js:TextButton text="Button 6" /> - <js:TextButton text="Button 7" /> - <js:TextButton text="Button 8" /> - <js:TextButton text="Button 9" /> - <js:TextButton text="Button 10" /> - <js:TextButton text="Button 11" /> - <!--<js:TextButton text="Button 12" /> - <js:TextButton text="Button 13" /> - <js:TextButton text="Button 14" /> - <js:TextButton text="Button 15" /> - <js:TextButton text="Button 16" /> - <js:TextButton text="Button 17" />--> - </js:Container> - - <!-- SECOND COLUMN --> - - <js:List id="productList" itemRenderer="products.ProductItemRenderer" className="productList" - x="500" y="40" width="200" height="150"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - </js:beads> - </js:List> - - <js:ButtonBar id="bbar" x="500" y="240" width="400" height="30"> - <js:beads> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - </js:beads> - </js:ButtonBar> - - <js:Panel id="panel1" title="Hello World" x="500" y="300" width="400" height="300" showCloseButton="true" className="Panel1"> - <js:beads> - <js:ScrollingViewport /> - <js:VerticalLayout /> - </js:beads> - <js:Label text="Inside Panel" /> - <js:Container id="nested" width="100%" height="50" className="Container2"> - <js:Label text="Inside Nested" /> - </js:Container> - <js:Label text="Bottom of Panel 1" height="30" /> - <js:Label text="Bottom of Panel 2" height="30" /> - <js:Label text="Bottom of Panel 3" height="30" /> - <js:Label text="Bottom of Panel 4" height="30" /> - <!--<js:Label text="Bottom of Panel 5" height="30" /> - <js:Label text="Bottom of Panel 6" height="30" /> - <js:Label text="Bottom of Panel 7" height="30" /> - <js:Label text="Bottom of Panel 8" height="30" /> - <js:Label text="Bottom of Panel 9" height="30" />--> - </js:Panel> - - -</js:ViewBase> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/assets/logo_orange.png ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/assets/logo_orange.png b/examples/ContainerTest/src/assets/logo_orange.png deleted file mode 100755 index c776c8c..0000000 Binary files a/examples/ContainerTest/src/assets/logo_orange.png and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/models/ProductsModel.as ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/models/ProductsModel.as b/examples/ContainerTest/src/models/ProductsModel.as deleted file mode 100644 index b69b1dc..0000000 --- a/examples/ContainerTest/src/models/ProductsModel.as +++ /dev/null @@ -1,44 +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() - { - } - - private var _productList:Array = [ - new Product("ps100", "Widgets", "44", 100, "smallbluerect.jpg"), - new Product("tx200", "Thingys", "out of stock", 10000, "smallgreenrect.jpg"), - new Product("rz300", "Sprockets", "8,000", 10, "smallyellowrect.jpg"), - new Product("dh440", "DooHickies", "out of stock", 20000, "smallredrect.jpg"), - new Product("ps220", "Weejets", "235", 300, "smallorangerect.jpg") - ]; - public function get productList():Array - { - return _productList; - } - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/products/Product.as ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/products/Product.as b/examples/ContainerTest/src/products/Product.as deleted file mode 100644 index b4854a3..0000000 --- a/examples/ContainerTest/src/products/Product.as +++ /dev/null @@ -1,43 +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:String,sales:Number,image:String) - { - this.id = id; - this.title = title; - this.detail = detail; - this.sales = sales; - this.image = image; - } - - public var id:String; - public var title:String; - public var detail:String; - public var image:String; - public var sales:Number; - - public function toString():String - { - return title; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/products/ProductItemRenderer.as ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/products/ProductItemRenderer.as b/examples/ContainerTest/src/products/ProductItemRenderer.as deleted file mode 100644 index f7ca68b..0000000 --- a/examples/ContainerTest/src/products/ProductItemRenderer.as +++ /dev/null @@ -1,83 +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 -{ - import org.apache.flex.html.Image; - import org.apache.flex.html.Label; - import org.apache.flex.html.supportClasses.DataItemRenderer; - - public class ProductItemRenderer extends DataItemRenderer - { - public function ProductItemRenderer() - { - super(); - } - - private var image:Image; - private var title:Label; - private var detail:Label; - - override public function addedToParent():void - { - super.addedToParent(); - - // add an image and two labels - image = new Image(); - addElement(image); - - title = new Label(); - addElement(title); - - detail = new Label(); - addElement(detail); - } - - override public function get data():Object - { - return super.data; - } - - override public function set data(value:Object):void - { - super.data = value; - - image.source = data.image; - title.text = data.title; - detail.text = data.detail; - } - - override public function adjustSize():void - { - var cy:Number = this.height/2; - - image.x = 4; - image.y = cy - 16; - image.width = 32; - image.height = 32; - - title.x = 40; - title.y = cy - 16; - - detail.x = 40; - detail.y = cy; - - updateRenderer(); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/smallbluerect.jpg ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/smallbluerect.jpg b/examples/ContainerTest/src/smallbluerect.jpg deleted file mode 100755 index 80ed275..0000000 Binary files a/examples/ContainerTest/src/smallbluerect.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/smallgreenrect.jpg ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/smallgreenrect.jpg b/examples/ContainerTest/src/smallgreenrect.jpg deleted file mode 100755 index c5f9ce6..0000000 Binary files a/examples/ContainerTest/src/smallgreenrect.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/smallorangerect.gif ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/smallorangerect.gif b/examples/ContainerTest/src/smallorangerect.gif deleted file mode 100644 index 603f810..0000000 Binary files a/examples/ContainerTest/src/smallorangerect.gif and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/smallorangerect.jpg ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/smallorangerect.jpg b/examples/ContainerTest/src/smallorangerect.jpg deleted file mode 100755 index 4982d87..0000000 Binary files a/examples/ContainerTest/src/smallorangerect.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/smallpurplerect.jpg ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/smallpurplerect.jpg b/examples/ContainerTest/src/smallpurplerect.jpg deleted file mode 100755 index 201f625..0000000 Binary files a/examples/ContainerTest/src/smallpurplerect.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/smallredrect.jpg ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/smallredrect.jpg b/examples/ContainerTest/src/smallredrect.jpg deleted file mode 100644 index d2cfa31..0000000 Binary files a/examples/ContainerTest/src/smallredrect.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/ContainerTest/src/smallyellowrect.jpg ---------------------------------------------------------------------- diff --git a/examples/ContainerTest/src/smallyellowrect.jpg b/examples/ContainerTest/src/smallyellowrect.jpg deleted file mode 100755 index b17b62d..0000000 Binary files a/examples/ContainerTest/src/smallyellowrect.jpg and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/build.xml ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/build.xml b/examples/DataGridXcompile/build.xml deleted file mode 100644 index ccc86f8..0000000 --- a/examples/DataGridXcompile/build.xml +++ /dev/null @@ -1,71 +0,0 @@ -<?xml version="1.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. - ---> - - -<project name="datagridxcompile" default="main" basedir="."> - <property name="FLEXJS_HOME" location="../.."/> - <property name="example" value="DataGridXcompile" /> - - <property file="${FLEXJS_HOME}/env.properties"/> - <property environment="env"/> - <property file="${FLEXJS_HOME}/build.properties"/> - <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> - <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${env.FALCON_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/> - - <available file="${env.FALCONJX_HOME}/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${env.FALCONJX_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/> - - <available file="${env.GOOG_HOME}/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${env.GOOG_HOME}"/> - - <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${FLEXJS_HOME}/js/lib/google/closure-library"/> - - <include file="${basedir}/../build_example.xml" /> - - <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}"> - </target> - - <target name="clean"> - <delete dir="${basedir}/bin" failonerror="false" /> - <delete dir="${basedir}/bin-debug" failonerror="false" /> - <delete dir="${basedir}/bin-release" failonerror="false" /> - </target> - -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/DataGridXcompile.mxml ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/DataGridXcompile.mxml b/examples/DataGridXcompile/src/DataGridXcompile.mxml deleted file mode 100644 index 1139add..0000000 --- a/examples/DataGridXcompile/src/DataGridXcompile.mxml +++ /dev/null @@ -1,37 +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" - xmlns:staticControls="org.apache.flex.html.*" - > - - <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/0485c8b6/examples/DataGridXcompile/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/MyInitialView.mxml b/examples/DataGridXcompile/src/MyInitialView.mxml deleted file mode 100644 index 140a7f7..0000000 --- a/examples/DataGridXcompile/src/MyInitialView.mxml +++ /dev/null @@ -1,83 +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:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*" - initComplete="initControls()" - xmlns:customControls="org.apache.flex.html.customControls.*" - xmlns:beads="org.apache.flex.html.customControls.beads.*"> - - <fx:Style> - @namespace basic "library://ns.apache.org/flexjs/basic"; - @namespace custom "org.apache.flex.html.customControls.*"; - - .boxGrid { - background-color: #FF0000; - IBeadView: ClassReference('org.apache.flex.html.beads.BoxGridView'); - } - - custom|DataGrid - { - IDataGridPresentationModel: ClassReference("org.apache.flex.html.beads.models.DataGridPresentationModel"); - IBeadView: ClassReference("org.apache.flex.html.customControls.beads.DataGridView"); - IBeadModel: ClassReference("org.apache.flex.html.beads.models.DataGridModel"); - IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); - IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer"); - - background-color: #FFFFFF; - } - - </fx:Style> - - <fx:Script> - <![CDATA[ - - private function initControls() : void - { - - } - - private function dataGridChange() : void - { - //output.text = "Clicked on row "+dataGrid.selectedIndex; - //trace("Click on row "+dataGrid.selectedIndex); - } - ]]> - </fx:Script> - - <js:Label id="output" text="here" x="450" y="30" width="100" /> - - <customControls:DataGrid id="dataGrid" x="20" y="30" width="400" height="300" change="dataGridChange()" > - <customControls:beads> - <models:MyGridPresentation rowHeight="50" /> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="productList" - destinationPropertyName="dataProvider" /> - <js:ConstantBinding - sourceID="applicationModel" - sourcePropertyName="labelFields" - destinationPropertyName="labelFields" /> - <beads:DataGridView /> - </customControls:beads> - </customControls:DataGrid> - -</js:ViewBase> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/models/MyGridPresentation.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/models/MyGridPresentation.as b/examples/DataGridXcompile/src/models/MyGridPresentation.as deleted file mode 100644 index a724722..0000000 --- a/examples/DataGridXcompile/src/models/MyGridPresentation.as +++ /dev/null @@ -1,32 +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.html.customControls.beads.models.DataGridPresentationModel; - - public class MyGridPresentation extends DataGridPresentationModel - { - public function MyGridPresentation() - { - super(); - - this.columnLabels = ["ID","Title","Inventory"]; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/models/ProductsModel.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/models/ProductsModel.as b/examples/DataGridXcompile/src/models/ProductsModel.as deleted file mode 100644 index be0bfe2..0000000 --- a/examples/DataGridXcompile/src/models/ProductsModel.as +++ /dev/null @@ -1,53 +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() - { - } - - private var _productList:Array = [ - new Product("ps100","Widgets","44","smallbluerect.jpg"), - new Product("tx200","Thingys","out of stock","smallgreenrect.jpg"), - new Product("rz300","Sprockets","8,000","smallyellowrect.jpg"), - new Product("dh440","Doohickies","out of stock","smallredrect.jpg"), - new Product("ps220","Weejets","235","smallorangerect.jpg") - ]; - public function get productList():Array - { - return _productList; - } - - private var _labelFields:Array = [ "id", "title", "detail" ]; - public function get labelFields():Object - { - return _labelFields; - } - public function set labelFields(value:Object):void - { - // ignore - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/core/IDataGridPresentationModel.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/core/IDataGridPresentationModel.as b/examples/DataGridXcompile/src/org/apache/flex/core/IDataGridPresentationModel.as deleted file mode 100644 index 34a5d84..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/core/IDataGridPresentationModel.as +++ /dev/null @@ -1,31 +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 org.apache.flex.core -{ - import org.apache.flex.events.IEventDispatcher; - - public interface IDataGridPresentationModel extends IEventDispatcher, IBead - { - function get columnLabels():Array; - function set columnLabels(value:Array):void; - - function get rowHeight():Number; - function set rowHeight(value:Number):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/customControls/DataGrid.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/DataGrid.as b/examples/DataGridXcompile/src/org/apache/flex/html/customControls/DataGrid.as deleted file mode 100644 index b4ded72..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/DataGrid.as +++ /dev/null @@ -1,60 +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 org.apache.flex.html.customControls -{ - import org.apache.flex.core.IDataGridModel; - import org.apache.flex.core.UIBase; - - [Event(name="change", type="org.apache.flex.events.Event")] - - public class DataGrid extends UIBase - { - public function DataGrid() - { - super(); - } - - public function get dataProvider():Object - { - return IDataGridModel(model).dataProvider; - } - public function set dataProvider(value:Object):void - { - //IDataGridModel(model).dataProvider = value; - var dgm:IDataGridModel = model as IDataGridModel - dgm.dataProvider = value; - } - - public function get labelFields():Object - { - return IDataGridModel(model).labelFields; - } - public function set labelFields(value:Object):void - { - //IDataGridModel(model).labelFields = value; - var dgm:IDataGridModel = model as IDataGridModel - dgm.labelFields = value; - } - - public function get selectedIndex():int - { - return IDataGridModel(model).selectedIndex; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridColumnView.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridColumnView.as b/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridColumnView.as deleted file mode 100644 index 88bd2ff..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridColumnView.as +++ /dev/null @@ -1,57 +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 org.apache.flex.html.customControls.beads -{ - import org.apache.flex.core.IStrand; - import org.apache.flex.html.beads.ListView; - - public class DataGridColumnView extends ListView - { - public function DataGridColumnView() - { - } - - private var _strand:IStrand; - override public function set strand(value:IStrand):void - { - super.strand = value; - _strand = value; - } - - private var _columnIndex:uint; - public function get columnIndex():uint - { - return _columnIndex; - } - public function set columnIndex(value:uint):void - { - _columnIndex = value; - } - - private var _labelField:String; - public function get labelField():String - { - return _labelField; - } - public function set labelField(value:String):void - { - _labelField = value; - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridView.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridView.as b/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridView.as deleted file mode 100644 index 15fe694..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataGridView.as +++ /dev/null @@ -1,149 +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 org.apache.flex.html.customControls.beads -{ -// import flash.display.DisplayObject; -// import flash.display.DisplayObjectContainer; -// import flash.display.Shape; - - import org.apache.flex.core.IBeadModel; - import org.apache.flex.core.IDataGridModel; - import org.apache.flex.core.IDataGridPresentationModel; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.UIBase; - import org.apache.flex.core.ValuesManager; - import org.apache.flex.events.Event; - import org.apache.flex.events.IEventDispatcher; - import org.apache.flex.html.ButtonBar; - import org.apache.flex.html.Container; - import org.apache.flex.html.List; - import org.apache.flex.html.SimpleList; - import org.apache.flex.html.beads.layouts.HorizontalLayout; - import org.apache.flex.html.beads.models.ArraySelectionModel; - - public class DataGridView implements IDataGridView - { - public function DataGridView() - { - } - -// private var background:Shape; - private var buttonBar:ButtonBar; - private var buttonBarModel:ArraySelectionModel; - private var columnContainer:Container; - private var columns:Array; - - private var _strand:IStrand; - public function set strand(value:IStrand):void - { - _strand = value; - -// background = new Shape(); -// DisplayObjectContainer(_strand).addChild(background); - - var pm:IDataGridPresentationModel = _strand.getBeadByType(IDataGridPresentationModel) as IDataGridPresentationModel; - buttonBarModel = new ArraySelectionModel(); - buttonBarModel.dataProvider = pm.columnLabels; - buttonBar = new ButtonBar(); - buttonBar.addBead(buttonBarModel); - buttonBar.height = 20; - buttonBar.width = UIBase(_strand).width; - UIBase(_strand).addElement(buttonBar); - - columnContainer = new Container(); - var layout:HorizontalLayout = new HorizontalLayout(); - columnContainer.addBead(layout); - UIBase(_strand).addElement(columnContainer); - - var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as IDataGridModel; - var columnWidth:Number = UIBase(_strand).width / pm.columnLabels.length; - var columnHeight:Number = UIBase(_strand).height - buttonBar.height; - - columns = new Array(); - for(var i:int=0; i < pm.columnLabels.length; i++) { - var column:List = new List(); - var columnView:DataGridColumnView = new DataGridColumnView(); - columnView.labelField = sharedModel.labelFields[i]; - var factory:DataItemRendererFactoryForColumnData = new DataItemRendererFactoryForColumnData(); - columnView.columnIndex = i; - column.width = columnWidth; - column.height = columnHeight; - column.addBead(sharedModel); - column.addBead(columnView); - column.addBead(factory); - columnContainer.addElement(column); - columns.push(column); - - column.addEventListener('change',columnListChangeHandler); - } - - IEventDispatcher(_strand).addEventListener("widthChanged",handleSizeChange); - IEventDispatcher(_strand).addEventListener("heightChanged",handleSizeChange); - - handleSizeChange(null); // initial sizing - } - - private function handleSizeChange(event:Event):void - { - var sw:Number = UIBase(_strand).width; - var sh:Number = UIBase(_strand).height; - -/* var backgroundColor:Number = 0xDDDDDD; - var value:Object = ValuesManager.valuesImpl.getValue(_strand, "background-color"); - if (value != null) backgroundColor = Number(value);*/ - -/* background.graphics.clear(); - background.graphics.beginFill(backgroundColor); - background.graphics.drawRect(0,0,sw,sh); - background.graphics.endFill();*/ - - buttonBar.x = 0; - buttonBar.y = 0; - buttonBar.width = sw; - buttonBar.height = 25; - - columnContainer.x = 0; - columnContainer.y = 30; - columnContainer.width = sw; - columnContainer.height = sh - 25; - - for(var i:int=0; i < columns.length; i++) { - var column:List = columns[i]; - - var cw:Number = sw/(columns.length); - column.x = i*cw; // should be positioned by the Container's layout - column.y = 0; - column.width = cw; - column.height = columnContainer.height; // this will actually be Nitem*rowHeight - } - } - - private function columnListChangeHandler(event:Event):void - { - var list:List = event.target as List; - for(var i:int=0; i < columns.length; i++) { - if (list != columns[i]) { - columns[i].selectedIndex = list.selectedIndex; - } - } - - IEventDispatcher(_strand).dispatchEvent(new Event('change')); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataItemRendererFactoryForColumnData.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataItemRendererFactoryForColumnData.as b/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataItemRendererFactoryForColumnData.as deleted file mode 100644 index 493984f..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/DataItemRendererFactoryForColumnData.as +++ /dev/null @@ -1,101 +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 org.apache.flex.html.customControls.beads -{ - import org.apache.flex.core.IBead; - import org.apache.flex.core.IBeadView; - import org.apache.flex.core.IItemRenderer; - import org.apache.flex.core.IItemRendererClassFactory; - import org.apache.flex.core.IItemRendererParent; - import org.apache.flex.core.ISelectionModel; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.ValuesManager; - import org.apache.flex.events.Event; - import org.apache.flex.events.IEventDispatcher; - import org.apache.flex.html.supportClasses.DataItemRenderer; - import org.apache.flex.html.beads.IListView; - - public class DataItemRendererFactoryForColumnData implements IBead, IDataProviderItemRendererMapper - { - public function DataItemRendererFactoryForColumnData() - { - } - - private var selectionModel:ISelectionModel; - - private var _strand:IStrand; - - public function set strand(value:IStrand):void - { - _strand = value; - selectionModel = value.getBeadByType(ISelectionModel) as ISelectionModel; - var listView:IListView = value.getBeadByType(IListView) as IListView; - dataGroup = listView.dataGroup; - selectionModel.addEventListener("dataProviderChanged", dataProviderChangeHandler); - - if (!itemRendererFactory) - { - var c:Class = ValuesManager.valuesImpl.getValue(_strand, "iItemRendererClassFactory"); - _itemRendererFactory = (new c()) as IItemRendererClassFactory; - _strand.addBead(_itemRendererFactory); - } - - dataProviderChangeHandler(null); - } - - public var _itemRendererFactory:IItemRendererClassFactory; - - public function get itemRendererFactory():IItemRendererClassFactory - { - return _itemRendererFactory - } - - public function set itemRendererFactory(value:IItemRendererClassFactory):void - { - _itemRendererFactory = value; - } - - protected var dataGroup:IItemRendererParent; - - private function dataProviderChangeHandler(event:Event):void - { - var dp:Array = selectionModel.dataProvider as Array; - if (!dp) - return; - - dataGroup.removeAllElements(); - - var view:DataGridColumnView = _strand.getBeadByType(IBeadView) as DataGridColumnView; - if (view == null) return; - - var n:int = dp.length; - for (var i:int = 0; i < n; i++) - { - - var tf:IItemRenderer = itemRendererFactory.createItemRenderer(dataGroup) as IItemRenderer; - tf.index = i; - dataGroup.addElement(tf); - tf.data = dp[i]; - //tf.text = dp[i][view.labelField]; - } - - IEventDispatcher(_strand).dispatchEvent(new Event("itemsCreated")); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataGridView.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataGridView.as b/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataGridView.as deleted file mode 100644 index 2b1bf61..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataGridView.as +++ /dev/null @@ -1,27 +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 org.apache.flex.html.customControls.beads -{ - import org.apache.flex.core.IBeadView; - - public interface IDataGridView extends IBeadView - { - - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataProviderItemRendererMapper.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataProviderItemRendererMapper.as b/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataProviderItemRendererMapper.as deleted file mode 100644 index 8a406de..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/IDataProviderItemRendererMapper.as +++ /dev/null @@ -1,34 +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 org.apache.flex.html.customControls.beads -{ - import org.apache.flex.core.IBead; - import org.apache.flex.core.IItemRendererClassFactory; - - /** - * Classes that generate ItemRenderers based on dataProvider contents. - * These classes use an IItemRendererFactory to generate the actual - * ItemRenderer instances - */ - public interface IDataProviderItemRendererMapper extends IBead - { - function get itemRendererFactory():IItemRendererClassFactory; - function set itemRendererFactory(value:IItemRendererClassFactory):void; - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/models/DataGridPresentationModel.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/models/DataGridPresentationModel.as b/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/models/DataGridPresentationModel.as deleted file mode 100644 index de24473..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/customControls/beads/models/DataGridPresentationModel.as +++ /dev/null @@ -1,65 +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 org.apache.flex.html.customControls.beads.models -{ - import org.apache.flex.core.IDataGridPresentationModel; - import org.apache.flex.core.IStrand; - import org.apache.flex.events.Event; - import org.apache.flex.events.EventDispatcher; - - public class DataGridPresentationModel extends EventDispatcher implements IDataGridPresentationModel - { - public function DataGridPresentationModel() - { - super(); - } - - private var _columnLabels:Array; - public function get columnLabels():Array - { - return _columnLabels; - } - public function set columnLabels(value:Array):void - { - if (value != _columnLabels) { - _columnLabels = value; - dispatchEvent(new Event("columnsChanged")); - } - } - - private var _rowHeight:Number = 30; - public function get rowHeight():Number - { - return _rowHeight; - } - public function set rowHeight(value:Number):void - { - if (value != _rowHeight) { - _rowHeight = value; - dispatchEvent(new Event("rowHeightChanged")); - } - } - - private var _strand:IStrand; - public function set strand(value:IStrand):void - { - _strand = value; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/org/apache/flex/html/staticControls/beads/BoxGridView.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/org/apache/flex/html/staticControls/beads/BoxGridView.as b/examples/DataGridXcompile/src/org/apache/flex/html/staticControls/beads/BoxGridView.as deleted file mode 100644 index a9d7b8f..0000000 --- a/examples/DataGridXcompile/src/org/apache/flex/html/staticControls/beads/BoxGridView.as +++ /dev/null @@ -1,48 +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 org.apache.flex.html.beads -{ - import org.apache.flex.core.IBeadView; - import org.apache.flex.core.IStrand; - import org.apache.flex.core.UIBase; - import org.apache.flex.html.Label; - - public class BoxGridView implements IBeadView - { - public function BoxGridView() - { - } - - private var label:Label; - - private var _strand:IStrand; - public function set strand(value:IStrand):void - { - _strand = value; - - label = new Label(); - label.text = "BoxGrid"; - label.x = 0; - label.y = 0; - label.width = 100; - label.height = 25; - UIBase(_strand).addElement(label); - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DataGridXcompile/src/products/Product.as ---------------------------------------------------------------------- diff --git a/examples/DataGridXcompile/src/products/Product.as b/examples/DataGridXcompile/src/products/Product.as deleted file mode 100644 index 34abf6b..0000000 --- a/examples/DataGridXcompile/src/products/Product.as +++ /dev/null @@ -1,41 +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:String,image:String) - { - this.id = id; - this.title = title; - this.detail = detail; - this.image = image; - } - - public var id:String; - public var title:String; - public var detail:String; - public var image:String; - - public function toString():String - { - return title; - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DateChooserExample/build.xml ---------------------------------------------------------------------- diff --git a/examples/DateChooserExample/build.xml b/examples/DateChooserExample/build.xml deleted file mode 100644 index c4e09af..0000000 --- a/examples/DateChooserExample/build.xml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.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. - ---> - - -<project name="datechooserexample" default="main" basedir="."> - <property name="FLEXJS_HOME" location="../.."/> - <property name="example" value="DateChooserExample" /> - - <property file="${FLEXJS_HOME}/env.properties"/> - <property environment="env"/> - <property file="${FLEXJS_HOME}/build.properties"/> - <property name="FLEX_HOME" value="${FLEXJS_HOME}"/> - <available file="${env.FALCON_HOME}/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${env.FALCON_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk/lib/falcon-mxmlc.jar" - type="file" - property="FALCON_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler/generated/dist/sdk"/> - - <available file="${env.FALCONJX_HOME}/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${env.FALCONJX_HOME}"/> - - <available file="${FLEXJS_HOME}/../flex-falcon/compiler.jx/lib/jsc.jar" - type="file" - property="FALCONJX_HOME" - value="${FLEXJS_HOME}/../flex-falcon/compiler.jx"/> - - <available file="${env.GOOG_HOME}/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${env.GOOG_HOME}"/> - - <available file="${FLEXJS_HOME}/js/lib/google/closure-library/closure/goog/base.js" - type="file" - property="GOOG_HOME" - value="${FLEXJS_HOME}/js/lib/google/closure-library"/> - - <include file="${basedir}/../build_example.xml" /> - - <target name="main" depends="clean,build_example.compile,build_example.compilejs" description="Clean build of ${example}"> - </target> - - <target name="clean"> - <delete dir="${basedir}/bin" failonerror="false" /> - <delete dir="${basedir}/bin-debug" failonerror="false" /> - <delete dir="${basedir}/bin-release" failonerror="false" /> - </target> - - - -</project> http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/0485c8b6/examples/DateChooserExample/src/DateChooserExample.mxml ---------------------------------------------------------------------- diff --git a/examples/DateChooserExample/src/DateChooserExample.mxml b/examples/DateChooserExample/src/DateChooserExample.mxml deleted file mode 100644 index 8afdb77..0000000 --- a/examples/DateChooserExample/src/DateChooserExample.mxml +++ /dev/null @@ -1,36 +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: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/0485c8b6/examples/DateChooserExample/src/MyInitialView.mxml ---------------------------------------------------------------------- diff --git a/examples/DateChooserExample/src/MyInitialView.mxml b/examples/DateChooserExample/src/MyInitialView.mxml deleted file mode 100644 index 02132e7..0000000 --- a/examples/DateChooserExample/src/MyInitialView.mxml +++ /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. - ---> -<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:js="library://ns.apache.org/flexjs/basic" - xmlns:local="*" - xmlns:models="models.*"> - <fx:Script> - <![CDATA[ - - - private function dateChanged():void - { - trace("Selected date: "+dateChooser.selectedDate); - output.text = String(dateChooser.selectedDate); - - dateField.selectedDate = dateChooser.selectedDate; - } - ]]> - </fx:Script> - - <js:Label id="output" x="450" y="30" width="100" /> - - <js:DateChooser id="dateChooser" x="20" y="30" width="280" height="240" change="dateChanged()" /> - - <js:DateField id="dateField" x="450" y="90" /> - -</js:ViewBase>
