rename/refactor folders to be more maven-friendly
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7853ef15 Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7853ef15 Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7853ef15 Branch: refs/heads/mavenfolders Commit: 7853ef156028d651fbd3728a114d5718d916cdb3 Parents: 9282af8 Author: Alex Harui <aha...@apache.org> Authored: Mon Jan 11 13:40:59 2016 -0800 Committer: Alex Harui <aha...@apache.org> Committed: Mon Jan 11 13:40:59 2016 -0800 ---------------------------------------------------------------------- frameworks/projects/HTML/as/defaults.css | 623 ------------------- frameworks/projects/HTML/as/src/HTMLClasses.as | 176 ------ .../apache/flex/core/IScrollingLayoutParent.as | 68 -- .../HTML/as/src/org/apache/flex/html/Alert.as | 287 --------- .../HTML/as/src/org/apache/flex/html/Button.as | 112 ---- .../as/src/org/apache/flex/html/ButtonBar.as | 76 --- .../as/src/org/apache/flex/html/CheckBox.as | 180 ------ .../as/src/org/apache/flex/html/CloseButton.as | 66 -- .../as/src/org/apache/flex/html/ComboBox.as | 277 --------- .../as/src/org/apache/flex/html/Container.as | 108 ---- .../as/src/org/apache/flex/html/ControlBar.as | 99 --- .../as/src/org/apache/flex/html/DataGrid.as | 164 ----- .../as/src/org/apache/flex/html/DateChooser.as | 74 --- .../as/src/org/apache/flex/html/DateField.as | 95 --- .../as/src/org/apache/flex/html/DropDownList.as | 235 ------- .../as/src/org/apache/flex/html/HContainer.as | 61 -- .../HTML/as/src/org/apache/flex/html/HRule.as | 63 -- .../HTML/as/src/org/apache/flex/html/Image.as | 99 --- .../org/apache/flex/html/ImageAndTextButton.as | 128 ---- .../as/src/org/apache/flex/html/ImageButton.as | 89 --- .../HTML/as/src/org/apache/flex/html/Label.as | 163 ----- .../HTML/as/src/org/apache/flex/html/List.as | 311 --------- .../org/apache/flex/html/MXMLBeadViewBase.as | 317 ---------- .../src/org/apache/flex/html/MultilineLabel.as | 76 --- .../src/org/apache/flex/html/NumericStepper.as | 214 ------- .../HTML/as/src/org/apache/flex/html/Panel.as | 121 ---- .../org/apache/flex/html/PanelWithControlBar.as | 121 ---- .../as/src/org/apache/flex/html/RadioButton.as | 347 ----------- .../as/src/org/apache/flex/html/SimpleAlert.as | 140 ----- .../as/src/org/apache/flex/html/SimpleList.as | 79 --- .../HTML/as/src/org/apache/flex/html/Slider.as | 233 ------- .../HTML/as/src/org/apache/flex/html/Spacer.as | 64 -- .../HTML/as/src/org/apache/flex/html/Spinner.as | 187 ------ .../as/src/org/apache/flex/html/TextArea.as | 126 ---- .../as/src/org/apache/flex/html/TextButton.as | 120 ---- .../as/src/org/apache/flex/html/TextInput.as | 185 ------ .../as/src/org/apache/flex/html/TitleBar.as | 146 ----- .../org/apache/flex/html/ToggleTextButton.as | 170 ----- .../HTML/as/src/org/apache/flex/html/ToolTip.as | 60 -- .../as/src/org/apache/flex/html/VContainer.as | 62 -- .../HTML/as/src/org/apache/flex/html/VRule.as | 68 -- .../accessories/NumericOnlyTextInputBead.as | 199 ------ .../flex/html/accessories/PasswordInputBead.as | 102 --- .../flex/html/accessories/TextPromptBead.as | 148 ----- .../apache/flex/html/accessories/ToolTipBead.as | 141 ----- .../flex/html/beads/AlertMeasurementBead.as | 88 --- .../src/org/apache/flex/html/beads/AlertView.as | 226 ------- .../flex/html/beads/BackgroundImageBead.as | 112 ---- .../org/apache/flex/html/beads/ButtonBarView.as | 69 -- .../org/apache/flex/html/beads/CSSButtonView.as | 167 ----- .../html/beads/CSSImageAndTextButtonView.as | 367 ----------- .../apache/flex/html/beads/CSSTextButtonView.as | 347 ----------- .../flex/html/beads/CSSTextToggleButtonView.as | 105 ---- .../org/apache/flex/html/beads/CheckBoxView.as | 296 --------- .../apache/flex/html/beads/CloseButtonView.as | 101 --- .../org/apache/flex/html/beads/ComboBoxView.as | 247 -------- .../org/apache/flex/html/beads/ContainerView.as | 553 ---------------- .../html/beads/ControlBarMeasurementBead.as | 116 ---- .../flex/html/beads/DataGridColumnView.as | 101 --- .../apache/flex/html/beads/DataGridLinesBead.as | 199 ------ .../org/apache/flex/html/beads/DataGridView.as | 294 --------- .../DataItemRendererFactoryForArrayData.as | 161 ----- .../DataItemRendererFactoryForArrayList.as | 174 ------ .../DataItemRendererFactoryForColumnData.as | 142 ----- .../html/beads/DataProviderChangeNotifier.as | 154 ----- .../apache/flex/html/beads/DateChooserView.as | 256 -------- .../org/apache/flex/html/beads/DateFieldView.as | 192 ------ .../flex/html/beads/DownArrowButtonView.as | 111 ---- .../apache/flex/html/beads/DropDownListView.as | 300 --------- .../src/org/apache/flex/html/beads/HRuleView.as | 87 --- .../flex/html/beads/HScrollBarThumbView.as | 120 ---- .../flex/html/beads/HScrollBarTrackView.as | 118 ---- .../apache/flex/html/beads/HScrollBarView.as | 99 --- .../apache/flex/html/beads/IBackgroundBead.as | 35 -- .../org/apache/flex/html/beads/IBorderBead.as | 35 -- .../org/apache/flex/html/beads/IComboBoxView.as | 78 --- .../org/apache/flex/html/beads/IDataGridView.as | 36 -- .../apache/flex/html/beads/IDropDownListView.as | 57 -- .../apache/flex/html/beads/IGraphicsDrawing.as | 36 -- .../src/org/apache/flex/html/beads/IListView.as | 48 -- .../apache/flex/html/beads/IScrollBarView.as | 80 --- .../org/apache/flex/html/beads/ISliderView.as | 60 -- .../org/apache/flex/html/beads/ISpinnerView.as | 61 -- .../apache/flex/html/beads/ITextFieldView.as | 44 -- .../apache/flex/html/beads/ITextItemRenderer.as | 45 -- .../flex/html/beads/ImageAndTextButtonView.as | 276 -------- .../apache/flex/html/beads/ImageButtonView.as | 158 ----- .../src/org/apache/flex/html/beads/ImageView.as | 223 ------- .../flex/html/beads/LeftArrowButtonView.as | 112 ---- .../src/org/apache/flex/html/beads/ListView.as | 210 ------- .../flex/html/beads/MultilineTextFieldView.as | 56 -- .../flex/html/beads/NumericStepperView.as | 186 ------ .../src/org/apache/flex/html/beads/PanelView.as | 168 ----- .../flex/html/beads/PanelWithControlBarView.as | 207 ------ .../apache/flex/html/beads/RadioButtonView.as | 281 --------- .../flex/html/beads/RightArrowButtonView.as | 112 ---- .../org/apache/flex/html/beads/ScrollBarView.as | 216 ------- .../apache/flex/html/beads/SimpleAlertView.as | 149 ----- .../flex/html/beads/SingleLineBorderBead.as | 91 --- .../apache/flex/html/beads/SliderThumbView.as | 156 ----- .../apache/flex/html/beads/SliderTrackView.as | 153 ----- .../org/apache/flex/html/beads/SliderView.as | 179 ------ .../flex/html/beads/SolidBackgroundBead.as | 191 ------ .../org/apache/flex/html/beads/SpinnerView.as | 135 ---- .../org/apache/flex/html/beads/TextAreaView.as | 263 -------- .../html/beads/TextButtonMeasurementBead.as | 86 --- .../apache/flex/html/beads/TextButtonView.as | 217 ------- .../html/beads/TextFieldLabelMeasurementBead.as | 92 --- .../org/apache/flex/html/beads/TextFieldView.as | 54 -- .../apache/flex/html/beads/TextFieldViewBase.as | 404 ------------ .../org/apache/flex/html/beads/TextInputView.as | 135 ---- .../flex/html/beads/TextInputWithBorderView.as | 100 --- .../TextItemRendererFactoryForArrayData.as | 144 ----- ...extItemRendererFactoryForStringVectorData.as | 128 ---- .../flex/html/beads/TitleBarMeasurementBead.as | 108 ---- .../apache/flex/html/beads/TitleBarView.mxml | 58 -- .../apache/flex/html/beads/UpArrowButtonView.as | 112 ---- .../src/org/apache/flex/html/beads/VRuleView.as | 87 --- .../flex/html/beads/VScrollBarThumbView.as | 119 ---- .../flex/html/beads/VScrollBarTrackView.as | 118 ---- .../apache/flex/html/beads/VScrollBarView.as | 99 --- .../html/beads/controllers/AlertController.as | 88 --- .../controllers/ButtonAutoRepeatController.as | 147 ----- .../beads/controllers/ComboBoxController.as | 104 ---- .../controllers/DateChooserMouseController.as | 126 ---- .../controllers/DateFieldMouseController.as | 95 --- .../beads/controllers/DropDownListController.as | 116 ---- .../EditableTextKeyboardController.as | 86 --- .../controllers/HScrollBarMouseController.as | 101 --- .../controllers/ItemRendererMouseController.as | 203 ------ .../ListSingleSelectionMouseController.as | 127 ---- .../controllers/ScrollBarMouseControllerBase.as | 184 ------ .../beads/controllers/SliderMouseController.as | 286 --------- .../beads/controllers/SpinnerMouseController.as | 125 ---- .../controllers/VScrollBarMouseController.as | 101 --- .../flex/html/beads/layouts/BasicLayout.as | 445 ------------- .../flex/html/beads/layouts/ButtonBarLayout.as | 143 ----- .../flex/html/beads/layouts/DataGridLayout.as | 156 ----- .../FlexibleFirstChildHorizontalLayout.as | 244 -------- .../flex/html/beads/layouts/HScrollBarLayout.as | 121 ---- .../flex/html/beads/layouts/HorizontalLayout.as | 325 ---------- .../html/beads/layouts/LayoutChangeNotifier.as | 103 --- .../layouts/OneFlexibleChildHorizontalLayout.as | 332 ---------- .../layouts/OneFlexibleChildVerticalLayout.as | 459 -------------- .../flex/html/beads/layouts/TileLayout.as | 246 -------- .../flex/html/beads/layouts/VScrollBarLayout.as | 122 ---- .../html/beads/layouts/VerticalColumnLayout.as | 199 ------ .../flex/html/beads/layouts/VerticalLayout.as | 362 ----------- .../apache/flex/html/beads/models/AlertModel.as | 288 --------- .../beads/models/ArrayListSelectionModel.as | 244 -------- .../html/beads/models/ArraySelectionModel.as | 243 -------- .../flex/html/beads/models/ComboBoxModel.as | 100 --- .../flex/html/beads/models/DataGridModel.as | 71 --- .../beads/models/DataGridPresentationModel.as | 88 --- .../flex/html/beads/models/DateChooserModel.as | 189 ------ .../flex/html/beads/models/ImageAndTextModel.as | 77 --- .../apache/flex/html/beads/models/ImageModel.as | 89 --- .../html/beads/models/ListPresentationModel.as | 107 ---- .../apache/flex/html/beads/models/PanelModel.as | 158 ----- .../apache/flex/html/beads/models/RangeModel.as | 222 ------- .../flex/html/beads/models/ScrollBarModel.as | 98 --- .../html/beads/models/SingleLineBorderModel.as | 85 --- .../html/beads/models/StringSelectionModel.as | 221 ------- .../apache/flex/html/beads/models/TextModel.as | 125 ---- .../flex/html/beads/models/TitleBarModel.as | 136 ---- .../flex/html/beads/models/ToggleButtonModel.as | 145 ----- .../html/beads/models/ValueToggleButtonModel.as | 123 ---- .../flex/html/beads/models/ViewportModel.as | 72 --- .../apache/flex/html/supportClasses/Border.as | 49 -- .../ButtonBarButtonItemRenderer.as | 137 ---- .../html/supportClasses/ContainerContentArea.as | 80 --- .../flex/html/supportClasses/DataGridColumn.as | 127 ---- .../flex/html/supportClasses/DataGroup.as | 151 ----- .../html/supportClasses/DataItemRenderer.as | 178 ------ .../html/supportClasses/DateChooserButton.as | 67 -- .../html/supportClasses/DropDownListList.as | 63 -- .../html/supportClasses/GraphicsItemRenderer.as | 295 --------- .../flex/html/supportClasses/HScrollBar.as | 49 -- .../flex/html/supportClasses/ScrollBar.as | 50 -- .../html/supportClasses/ScrollingViewport.as | 351 ----------- .../html/supportClasses/StringItemRenderer.as | 183 ------ .../supportClasses/TextFieldItemRenderer.as | 541 ---------------- .../html/supportClasses/UIItemRendererBase.as | 282 --------- .../flex/html/supportClasses/VScrollBar.as | 49 -- .../apache/flex/html/supportClasses/Viewport.as | 151 ----- .../as/src/org/apache/flex/svg/TextButton.as | 30 - .../as/tests/FlexUnitFlexJSApplication.mxml | 46 -- frameworks/projects/HTML/as/tests/build.xml | 159 ----- .../tests/flexUnitTests/DataGridColumnTester.as | 27 - .../flexUnitTests/DataGridColumnTesterTest.as | 55 -- frameworks/projects/HTML/basic-as-manifest.xml | 37 -- frameworks/projects/HTML/basic-manifest.xml | 105 ---- .../projects/HTML/compile-asjs-config.xml | 90 --- frameworks/projects/HTML/compile-config.xml | 94 --- .../projects/HTML/src/main/flex/HTMLClasses.as | 176 ++++++ .../apache/flex/core/IScrollingLayoutParent.as | 68 ++ .../src/main/flex/org/apache/flex/html/Alert.as | 287 +++++++++ .../main/flex/org/apache/flex/html/Button.as | 112 ++++ .../main/flex/org/apache/flex/html/ButtonBar.as | 76 +++ .../main/flex/org/apache/flex/html/CheckBox.as | 180 ++++++ .../flex/org/apache/flex/html/CloseButton.as | 66 ++ .../main/flex/org/apache/flex/html/ComboBox.as | 277 +++++++++ .../main/flex/org/apache/flex/html/Container.as | 108 ++++ .../flex/org/apache/flex/html/ControlBar.as | 99 +++ .../main/flex/org/apache/flex/html/DataGrid.as | 164 +++++ .../flex/org/apache/flex/html/DateChooser.as | 74 +++ .../main/flex/org/apache/flex/html/DateField.as | 95 +++ .../flex/org/apache/flex/html/DropDownList.as | 235 +++++++ .../flex/org/apache/flex/html/HContainer.as | 61 ++ .../src/main/flex/org/apache/flex/html/HRule.as | 63 ++ .../src/main/flex/org/apache/flex/html/Image.as | 99 +++ .../org/apache/flex/html/ImageAndTextButton.as | 128 ++++ .../flex/org/apache/flex/html/ImageButton.as | 89 +++ .../src/main/flex/org/apache/flex/html/Label.as | 163 +++++ .../src/main/flex/org/apache/flex/html/List.as | 311 +++++++++ .../org/apache/flex/html/MXMLBeadViewBase.as | 317 ++++++++++ .../flex/org/apache/flex/html/MultilineLabel.as | 76 +++ .../flex/org/apache/flex/html/NumericStepper.as | 214 +++++++ .../src/main/flex/org/apache/flex/html/Panel.as | 121 ++++ .../org/apache/flex/html/PanelWithControlBar.as | 121 ++++ .../flex/org/apache/flex/html/RadioButton.as | 347 +++++++++++ .../flex/org/apache/flex/html/SimpleAlert.as | 140 +++++ .../flex/org/apache/flex/html/SimpleList.as | 79 +++ .../main/flex/org/apache/flex/html/Slider.as | 233 +++++++ .../main/flex/org/apache/flex/html/Spacer.as | 64 ++ .../main/flex/org/apache/flex/html/Spinner.as | 187 ++++++ .../main/flex/org/apache/flex/html/TextArea.as | 126 ++++ .../flex/org/apache/flex/html/TextButton.as | 120 ++++ .../main/flex/org/apache/flex/html/TextInput.as | 185 ++++++ .../main/flex/org/apache/flex/html/TitleBar.as | 146 +++++ .../org/apache/flex/html/ToggleTextButton.as | 170 +++++ .../main/flex/org/apache/flex/html/ToolTip.as | 60 ++ .../flex/org/apache/flex/html/VContainer.as | 62 ++ .../src/main/flex/org/apache/flex/html/VRule.as | 68 ++ .../accessories/NumericOnlyTextInputBead.as | 199 ++++++ .../flex/html/accessories/PasswordInputBead.as | 102 +++ .../flex/html/accessories/TextPromptBead.as | 148 +++++ .../apache/flex/html/accessories/ToolTipBead.as | 141 +++++ .../flex/html/beads/AlertMeasurementBead.as | 88 +++ .../org/apache/flex/html/beads/AlertView.as | 226 +++++++ .../flex/html/beads/BackgroundImageBead.as | 112 ++++ .../org/apache/flex/html/beads/ButtonBarView.as | 69 ++ .../org/apache/flex/html/beads/CSSButtonView.as | 167 +++++ .../html/beads/CSSImageAndTextButtonView.as | 367 +++++++++++ .../apache/flex/html/beads/CSSTextButtonView.as | 347 +++++++++++ .../flex/html/beads/CSSTextToggleButtonView.as | 105 ++++ .../org/apache/flex/html/beads/CheckBoxView.as | 296 +++++++++ .../apache/flex/html/beads/CloseButtonView.as | 101 +++ .../org/apache/flex/html/beads/ComboBoxView.as | 247 ++++++++ .../org/apache/flex/html/beads/ContainerView.as | 553 ++++++++++++++++ .../html/beads/ControlBarMeasurementBead.as | 116 ++++ .../flex/html/beads/DataGridColumnView.as | 101 +++ .../apache/flex/html/beads/DataGridLinesBead.as | 199 ++++++ .../org/apache/flex/html/beads/DataGridView.as | 294 +++++++++ .../DataItemRendererFactoryForArrayData.as | 161 +++++ .../DataItemRendererFactoryForArrayList.as | 174 ++++++ .../DataItemRendererFactoryForColumnData.as | 142 +++++ .../html/beads/DataProviderChangeNotifier.as | 154 +++++ .../apache/flex/html/beads/DateChooserView.as | 256 ++++++++ .../org/apache/flex/html/beads/DateFieldView.as | 192 ++++++ .../flex/html/beads/DownArrowButtonView.as | 111 ++++ .../apache/flex/html/beads/DropDownListView.as | 300 +++++++++ .../org/apache/flex/html/beads/HRuleView.as | 87 +++ .../flex/html/beads/HScrollBarThumbView.as | 120 ++++ .../flex/html/beads/HScrollBarTrackView.as | 118 ++++ .../apache/flex/html/beads/HScrollBarView.as | 99 +++ .../apache/flex/html/beads/IBackgroundBead.as | 35 ++ .../org/apache/flex/html/beads/IBorderBead.as | 35 ++ .../org/apache/flex/html/beads/IComboBoxView.as | 78 +++ .../org/apache/flex/html/beads/IDataGridView.as | 36 ++ .../apache/flex/html/beads/IDropDownListView.as | 57 ++ .../apache/flex/html/beads/IGraphicsDrawing.as | 36 ++ .../org/apache/flex/html/beads/IListView.as | 48 ++ .../apache/flex/html/beads/IScrollBarView.as | 80 +++ .../org/apache/flex/html/beads/ISliderView.as | 60 ++ .../org/apache/flex/html/beads/ISpinnerView.as | 61 ++ .../apache/flex/html/beads/ITextFieldView.as | 44 ++ .../apache/flex/html/beads/ITextItemRenderer.as | 45 ++ .../flex/html/beads/ImageAndTextButtonView.as | 276 ++++++++ .../apache/flex/html/beads/ImageButtonView.as | 158 +++++ .../org/apache/flex/html/beads/ImageView.as | 223 +++++++ .../flex/html/beads/LeftArrowButtonView.as | 112 ++++ .../flex/org/apache/flex/html/beads/ListView.as | 210 +++++++ .../flex/html/beads/MultilineTextFieldView.as | 56 ++ .../flex/html/beads/NumericStepperView.as | 186 ++++++ .../org/apache/flex/html/beads/PanelView.as | 168 +++++ .../flex/html/beads/PanelWithControlBarView.as | 207 ++++++ .../apache/flex/html/beads/RadioButtonView.as | 281 +++++++++ .../flex/html/beads/RightArrowButtonView.as | 112 ++++ .../org/apache/flex/html/beads/ScrollBarView.as | 216 +++++++ .../apache/flex/html/beads/SimpleAlertView.as | 149 +++++ .../flex/html/beads/SingleLineBorderBead.as | 91 +++ .../apache/flex/html/beads/SliderThumbView.as | 156 +++++ .../apache/flex/html/beads/SliderTrackView.as | 153 +++++ .../org/apache/flex/html/beads/SliderView.as | 179 ++++++ .../flex/html/beads/SolidBackgroundBead.as | 191 ++++++ .../org/apache/flex/html/beads/SpinnerView.as | 135 ++++ .../org/apache/flex/html/beads/TextAreaView.as | 263 ++++++++ .../html/beads/TextButtonMeasurementBead.as | 86 +++ .../apache/flex/html/beads/TextButtonView.as | 217 +++++++ .../html/beads/TextFieldLabelMeasurementBead.as | 92 +++ .../org/apache/flex/html/beads/TextFieldView.as | 54 ++ .../apache/flex/html/beads/TextFieldViewBase.as | 404 ++++++++++++ .../org/apache/flex/html/beads/TextInputView.as | 135 ++++ .../flex/html/beads/TextInputWithBorderView.as | 100 +++ .../TextItemRendererFactoryForArrayData.as | 144 +++++ ...extItemRendererFactoryForStringVectorData.as | 128 ++++ .../flex/html/beads/TitleBarMeasurementBead.as | 108 ++++ .../apache/flex/html/beads/TitleBarView.mxml | 58 ++ .../apache/flex/html/beads/UpArrowButtonView.as | 112 ++++ .../org/apache/flex/html/beads/VRuleView.as | 87 +++ .../flex/html/beads/VScrollBarThumbView.as | 119 ++++ .../flex/html/beads/VScrollBarTrackView.as | 118 ++++ .../apache/flex/html/beads/VScrollBarView.as | 99 +++ .../html/beads/controllers/AlertController.as | 88 +++ .../controllers/ButtonAutoRepeatController.as | 147 +++++ .../beads/controllers/ComboBoxController.as | 104 ++++ .../controllers/DateChooserMouseController.as | 126 ++++ .../controllers/DateFieldMouseController.as | 95 +++ .../beads/controllers/DropDownListController.as | 116 ++++ .../EditableTextKeyboardController.as | 86 +++ .../controllers/HScrollBarMouseController.as | 101 +++ .../controllers/ItemRendererMouseController.as | 203 ++++++ .../ListSingleSelectionMouseController.as | 127 ++++ .../controllers/ScrollBarMouseControllerBase.as | 184 ++++++ .../beads/controllers/SliderMouseController.as | 286 +++++++++ .../beads/controllers/SpinnerMouseController.as | 125 ++++ .../controllers/VScrollBarMouseController.as | 101 +++ .../flex/html/beads/layouts/BasicLayout.as | 445 +++++++++++++ .../flex/html/beads/layouts/ButtonBarLayout.as | 143 +++++ .../flex/html/beads/layouts/DataGridLayout.as | 156 +++++ .../FlexibleFirstChildHorizontalLayout.as | 244 ++++++++ .../flex/html/beads/layouts/HScrollBarLayout.as | 121 ++++ .../flex/html/beads/layouts/HorizontalLayout.as | 325 ++++++++++ .../html/beads/layouts/LayoutChangeNotifier.as | 103 +++ .../layouts/OneFlexibleChildHorizontalLayout.as | 332 ++++++++++ .../layouts/OneFlexibleChildVerticalLayout.as | 459 ++++++++++++++ .../flex/html/beads/layouts/TileLayout.as | 246 ++++++++ .../flex/html/beads/layouts/VScrollBarLayout.as | 122 ++++ .../html/beads/layouts/VerticalColumnLayout.as | 199 ++++++ .../flex/html/beads/layouts/VerticalLayout.as | 362 +++++++++++ .../apache/flex/html/beads/models/AlertModel.as | 288 +++++++++ .../beads/models/ArrayListSelectionModel.as | 244 ++++++++ .../html/beads/models/ArraySelectionModel.as | 243 ++++++++ .../flex/html/beads/models/ComboBoxModel.as | 100 +++ .../flex/html/beads/models/DataGridModel.as | 71 +++ .../beads/models/DataGridPresentationModel.as | 88 +++ .../flex/html/beads/models/DateChooserModel.as | 189 ++++++ .../flex/html/beads/models/ImageAndTextModel.as | 77 +++ .../apache/flex/html/beads/models/ImageModel.as | 89 +++ .../html/beads/models/ListPresentationModel.as | 107 ++++ .../apache/flex/html/beads/models/PanelModel.as | 158 +++++ .../apache/flex/html/beads/models/RangeModel.as | 222 +++++++ .../flex/html/beads/models/ScrollBarModel.as | 98 +++ .../html/beads/models/SingleLineBorderModel.as | 85 +++ .../html/beads/models/StringSelectionModel.as | 221 +++++++ .../apache/flex/html/beads/models/TextModel.as | 125 ++++ .../flex/html/beads/models/TitleBarModel.as | 136 ++++ .../flex/html/beads/models/ToggleButtonModel.as | 145 +++++ .../html/beads/models/ValueToggleButtonModel.as | 123 ++++ .../flex/html/beads/models/ViewportModel.as | 72 +++ .../apache/flex/html/supportClasses/Border.as | 49 ++ .../ButtonBarButtonItemRenderer.as | 137 ++++ .../html/supportClasses/ContainerContentArea.as | 80 +++ .../flex/html/supportClasses/DataGridColumn.as | 127 ++++ .../flex/html/supportClasses/DataGroup.as | 151 +++++ .../html/supportClasses/DataItemRenderer.as | 178 ++++++ .../html/supportClasses/DateChooserButton.as | 67 ++ .../html/supportClasses/DropDownListList.as | 63 ++ .../html/supportClasses/GraphicsItemRenderer.as | 295 +++++++++ .../flex/html/supportClasses/HScrollBar.as | 49 ++ .../flex/html/supportClasses/ScrollBar.as | 50 ++ .../html/supportClasses/ScrollingViewport.as | 351 +++++++++++ .../html/supportClasses/StringItemRenderer.as | 183 ++++++ .../supportClasses/TextFieldItemRenderer.as | 541 ++++++++++++++++ .../html/supportClasses/UIItemRendererBase.as | 282 +++++++++ .../flex/html/supportClasses/VScrollBar.as | 49 ++ .../apache/flex/html/supportClasses/Viewport.as | 151 +++++ .../main/flex/org/apache/flex/svg/TextButton.as | 30 + .../src/main/resources/basic-as-manifest.xml | 37 ++ .../HTML/src/main/resources/basic-manifest.xml | 105 ++++ .../src/main/resources/compile-asjs-config.xml | 90 +++ .../HTML/src/main/resources/compile-config.xml | 94 +++ .../HTML/src/main/resources/defaults.css | 623 +++++++++++++++++++ .../HTML/src/main/resources/svg-manifest.xml | 24 + .../test/flex/FlexUnitFlexJSApplication.mxml | 46 ++ .../projects/HTML/src/test/flex/build.xml | 159 +++++ .../flex/flexUnitTests/DataGridColumnTester.as | 27 + .../flexUnitTests/DataGridColumnTesterTest.as | 55 ++ frameworks/projects/HTML/svg-manifest.xml | 24 - 390 files changed, 29977 insertions(+), 29977 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/defaults.css ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/defaults.css b/frameworks/projects/HTML/as/defaults.css deleted file mode 100644 index bb8ca6e..0000000 --- a/frameworks/projects/HTML/as/defaults.css +++ /dev/null @@ -1,623 +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. - * - */ - -@namespace "library://ns.apache.org/flexjs/basic"; -@namespace svg "library://ns.apache.org/flexjs/svg"; - -/* Global style declaration */ -* -{ - font-family: "Arial"; - font-size: 12px; - border-width: 1px; -} - -.flexjs *, . flexjs *:before, . flexjs *:after { - -moz-box-sizing: border-box; - -webkit-box-sizing: border-box; - box-sizing: border-box; -} - -Application -{ - padding: 0px; - margin: 0px; -} - -Button -{ - background-color: #f8f8f8; - border: 1px solid #808080; - border-radius: 2px; - padding: 4px; - margin: 0px; -} - -Button:hover -{ - background-color: #e8e8e8; - border: 1px solid #808080; - padding: 4px; -} - -Button:active -{ - background-color: #d8d8d8; - border: 1px solid #808080; - padding: 4px; -} - -ButtonBar -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.ButtonBarView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.ButtonBarLayout"); - IContentView: ClassReference("org.apache.flex.html.supportClasses.DataGroup"); - IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.TextItemRendererFactoryForArrayData"); - IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); - IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.ButtonBarButtonItemRenderer"); - - border-style: none; -} - -ButtonBarButtonItemRenderer -{ - width: 80; - height: 30; -} - -Container -{ - IBeadView: ClassReference("org.apache.flex.html.beads.ContainerView"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.BasicLayout"); - IContentView: ClassReference("org.apache.flex.html.supportClasses.ContainerContentArea"); - IViewport: ClassReference("org.apache.flex.html.supportClasses.Viewport"); - IViewportModel: ClassReference("org.apache.flex.html.beads.models.ViewportModel"); -} - -ControlBar -{ - IBeadView: ClassReference("org.apache.flex.html.beads.ContainerView"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.FlexibleFirstChildHorizontalLayout"); - - background-color: #CECECE; - border-style: none; - /*border-style: solid; - border-color: #000000; - border-width: 1px;*/ -} - -/* ASJS */ -DataGrid -{ - IDataGridPresentationModel: ClassReference("org.apache.flex.html.beads.models.DataGridPresentationModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.DataGridView"); - IBeadModel: ClassReference("org.apache.flex.html.beads.models.DataGridModel"); - - background-color: #FFFFFF; - border-style: solid; - border-color: #222222; - border-width: 1px; -} - -.DataGridColumn { - IBeadModel: ClassReference("org.apache.flex.html.beads.models.DataGridModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.ListView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.VerticalLayout"); - IContentView: ClassReference("org.apache.flex.html.supportClasses.DataGroup"); - IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.DataItemRendererFactoryForArrayList"); - IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); - IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer"); - IViewport: ClassReference("org.apache.flex.html.supportClasses.Viewport"); - IViewportModel: ClassReference("org.apache.flex.html.beads.models.ViewportModel"); - border-style: none; - background-color: #FFFFFF; -} - -.DataGridListArea { - background-color: #FFFFFF; - border-style: solid; - border-color: #333333; -} - -DateChooser { - IBeadView: ClassReference("org.apache.flex.html.beads.DateChooserView"); - IBeadModel: ClassReference("org.apache.flex.html.beads.models.DateChooserModel"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.DateChooserMouseController"); - width: 280px; - height: 240px; -} - -DateField { - IBeadView: ClassReference("org.apache.flex.html.beads.DateFieldView"); - IBeadModel: ClassReference("org.apache.flex.html.beads.models.DateChooserModel"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.DateFieldMouseController"); - IFormatBead: ClassReference("org.apache.flex.html.accessories.DateFormatMMDDYYYYBead"); -} - -HContainer -{ - IBeadView: ClassReference("org.apache.flex.html.beads.ContainerView"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.HorizontalLayout"); -} - -Image -{ - vertical-align: top; -} - -ImageAndTextButton -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ImageAndTextModel"); -} - -ImageButton -{ - border-style: none; -} - -ImageButton:hover -{ - border-style: none; -} - -ImageButton:active -{ - border-style: none; -} - -VContainer -{ - IBeadView: ClassReference("org.apache.flex.html.beads.ContainerView"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.VerticalLayout"); -} - -List -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.ListView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.VerticalLayout"); - IContentView: ClassReference("org.apache.flex.html.supportClasses.DataGroup"); - IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.DataItemRendererFactoryForArrayData"); - IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); - IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer"); - IViewport: ClassReference("org.apache.flex.html.supportClasses.ScrollingViewport"); - IViewportModel: ClassReference("org.apache.flex.html.beads.models.ViewportModel"); - border-style: solid; - border-color: #222222; -} - -NumericStepper -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.RangeModel"); -} - -Panel -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.PanelModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.PanelView"); - - background-color: #FFFFFF; - border-style: solid; - border-color: #000000; - border-width: 1px; - padding: 2px; -} - -PanelWithControlBar -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.PanelModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.PanelWithControlBarView"); - - background-color: #FFFFFF; - border-style: solid; - border-color: #000000; - border-width: 1px; - padding: 2px; -} - -SimpleList -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.ListView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.VerticalLayout"); - IContentView: ClassReference("org.apache.flex.html.supportClasses.DataGroup"); - IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.TextItemRendererFactoryForArrayData"); - IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); - IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer"); - IViewport: ClassReference("org.apache.flex.html.supportClasses.ScrollingViewport"); - IViewportModel: ClassReference("org.apache.flex.html.beads.models.ViewportModel"); -} - -Slider -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.RangeModel"); -} - -Spinner -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.RangeModel"); -} - - -StringItemRenderer -{ - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ItemRendererMouseController"); - height: 16; -} - -TextInput -{ - border: 1px solid #808080; - border-radius: 2px; - padding: 4px; - margin: 0px; -} - -TextArea -{ - border: 1px solid #808080; - border-radius: 2px; - padding: 4px; - resize: none; -} - -TitleBar -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.TitleBarModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.TitleBarView"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.FlexibleFirstChildHorizontalLayout"); - iMeasurementBead: ClassReference("org.apache.flex.html.beads.TitleBarMeasurementBead"); - background-color: #E2E2E2; - border-style: solid; - border-color: #000000; - border-width: 1px; -} - -.toggleTextButton -{ - background-color: #f8f8f8; - border: 1px solid #808080; - padding: 4px; -} - -.toggleTextButton:hover -{ - background-color: #e8e8e8; - border: 1px solid #808080; - padding: 4px; -} - -.toggleTextButton_Selected -{ - background-color: #d8d8d8; - border: 1px solid #808080; - padding: 4px; -} - -.toggleTextButton_Selected:hover -{ - background-color: #e8e8e8; - border: 1px solid #808080; - padding: 4px; -} - -ToolTip -{ - background-color: #FFFFCC; -} - -ViewBase -{ - IBeadView: ClassReference("org.apache.flex.html.beads.ContainerView"); - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.BasicLayout"); - IContentView: ClassReference("org.apache.flex.html.supportClasses.ContainerContentArea"); - IViewport: ClassReference("org.apache.flex.html.supportClasses.Viewport"); - IViewportModel: ClassReference("org.apache.flex.html.beads.models.ViewportModel"); -} - - -/* Global Style Declaration */ -global -{ - IStatesImpl: ClassReference("org.apache.flex.core.SimpleStatesImpl"); - IEffectTimer: ClassReference("org.apache.flex.utils.EffectTimer"); - effectTimerInterval: 10; -} - -@media -flex-flash -{ - -Alert -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.AlertModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.AlertView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.AlertController"); - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); - - background-color: #FFFFFF; - border-style: solid; - border-color: #000000; - border-width: 1px; -} - -Border -{ - border-color: inherit; - border-style: inherit; - border-radius: inherit; - border-width: inherit; - border: inherit; -} - -Button -{ - IBeadView: ClassReference("org.apache.flex.html.beads.CSSButtonView"); -} - -CheckBox -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ToggleButtonModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.CheckBoxView"); -} - -CloseButton -{ - IBeadView: ClassReference("org.apache.flex.html.beads.CloseButtonView"); -} - -ComboBox -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ComboBoxModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.ComboBoxView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ComboBoxController"); - IPopUp: ClassReference("org.apache.flex.html.supportClasses.DropDownListList"); - IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.TextItemRendererFactoryForArrayData"); - IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); - IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer"); -} - -Container -{ - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); -} - -ControlBar -{ - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.FlexibleFirstChildHorizontalLayout"); - iMeasurementBead: ClassReference("org.apache.flex.html.beads.ControlBarMeasurementBead"); - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); -} - -DropDownList -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.DropDownListView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.DropDownListController"); - IPopUp: ClassReference("org.apache.flex.html.supportClasses.DropDownListList"); -} - -DropDownListList -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ArraySelectionModel"); - IDataProviderItemRendererMapper: ClassReference("org.apache.flex.html.beads.TextItemRendererFactoryForArrayData"); - IItemRendererClassFactory: ClassReference("org.apache.flex.core.ItemRendererClassFactory"); - IItemRenderer: ClassReference("org.apache.flex.html.supportClasses.StringItemRenderer"); - iBackgroundBead: ClassReference('org.apache.flex.html.beads.SolidBackgroundBead'); - border-style: solid; - border-radius: 4px; - border-color: #000000; - border-width: 1px; - background-color: #FFFFFF; -} - -HRule -{ - IBeadView: ClassReference("org.apache.flex.html.beads.HRuleView"); -} - -Image -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ImageModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.ImageView"); -} - -ImageButton -{ - IBeadView: ClassReference("org.apache.flex.html.beads.ImageButtonView"); -} - -ImageAndTextButton -{ - IBeadView: ClassReference("org.apache.flex.html.beads.CSSImageAndTextButtonView"); -} - -Label -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.TextModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.TextFieldView"); - iMeasurementBead: ClassReference("org.apache.flex.html.beads.TextFieldLabelMeasurementBead"); -} - -List -{ - iBorderBead: ClassReference('org.apache.flex.html.beads.SingleLineBorderBead'); - iBorderModel: ClassReference('org.apache.flex.html.beads.models.SingleLineBorderModel'); -} - -MultilineLabel -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.TextModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.MultilineTextFieldView"); -} - -NumericStepper -{ - IBeadView: ClassReference("org.apache.flex.html.beads.NumericStepperView"); - - padding: 0px; - border-style: solid; - border-color: #000000; - border-width: 1px; - background-color: #FFFFFF; - iBorderBead: ClassReference('org.apache.flex.html.beads.SingleLineBorderBead'); - iBackgroundBead: ClassReference('org.apache.flex.html.beads.SolidBackgroundBead'); -} - -Panel -{ - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); -} - -PanelWithControlBar -{ - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); -} - -RadioButton -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ValueToggleButtonModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.RadioButtonView"); -} - -VScrollBar -{ - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.VScrollBarLayout"); - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ScrollBarModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.VScrollBarView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.VScrollBarMouseController"); -} - -HScrollBar -{ - IBeadLayout: ClassReference("org.apache.flex.html.beads.layouts.HScrollBarLayout"); - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ScrollBarModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.HScrollBarView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.HScrollBarMouseController"); -} - -SimpleAlert -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.AlertModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.SimpleAlertView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.AlertController"); - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); - - background-color: #FFFFFF; - border-style: solid; - border-color: #000000; - border-width: 1px; -} - -Slider -{ - iBeadView: ClassReference("org.apache.flex.html.beads.SliderView"); - iBeadController: ClassReference("org.apache.flex.html.beads.controllers.SliderMouseController"); - iThumbView: ClassReference("org.apache.flex.html.beads.SliderThumbView"); - iTrackView: ClassReference("org.apache.flex.html.beads.SliderTrackView"); -} - -Spinner -{ - IBeadView: ClassReference("org.apache.flex.html.beads.SpinnerView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.SpinnerMouseController"); -} - -TextArea -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.TextModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.TextAreaView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.EditableTextKeyboardController"); - iBorderBead: ClassReference('org.apache.flex.html.beads.SingleLineBorderBead'); - iBorderModel: ClassReference('org.apache.flex.html.beads.models.SingleLineBorderModel'); - border-style: solid; - border-color: #000000; - border-width: 1px; - background-color: #FFFFFF; -} - -TextButton -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.TextModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.CSSTextButtonView"); - iMeasurementBead: ClassReference("org.apache.flex.html.beads.TextButtonMeasurementBead"); -} - -TextFieldItemRenderer -{ - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.ItemRendererMouseController"); - height: 16; -} - -TextInput -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.TextModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.TextInputWithBorderView"); - IBeadController: ClassReference("org.apache.flex.html.beads.controllers.EditableTextKeyboardController"); - iBorderBead: ClassReference('org.apache.flex.html.beads.SingleLineBorderBead'); - iBackgroundBead: ClassReference('org.apache.flex.html.beads.SolidBackgroundBead'); - border-style: solid; - border-color: #000000; - border-width: 1px; - background-color: #FFFFFF; -} - -TitleBar -{ - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); -} - -ToggleTextButton -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.ToggleButtonModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.CSSTextToggleButtonView"); -} - -ViewBase -{ - iBackgroundBead: ClassReference("org.apache.flex.html.beads.SolidBackgroundBead"); - iBorderBead: ClassReference("org.apache.flex.html.beads.SingleLineBorderBead"); -} - -VRule -{ - IBeadView: ClassReference("org.apache.flex.html.beads.VRuleView"); -} - -/* SVG */ - -svg|TextButton -{ - IBeadModel: ClassReference("org.apache.flex.html.beads.models.TextModel"); - IBeadView: ClassReference("org.apache.flex.html.beads.CSSTextButtonView"); - iMeasurementBead: ClassReference("org.apache.flex.html.beads.TextButtonMeasurementBead"); -} - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/HTMLClasses.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/HTMLClasses.as b/frameworks/projects/HTML/as/src/HTMLClasses.as deleted file mode 100644 index 052ab95..0000000 --- a/frameworks/projects/HTML/as/src/HTMLClasses.as +++ /dev/null @@ -1,176 +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 -{ - -/** - * @private - * This class is used to link additional classes into rpc.swc - * beyond those that are found by dependecy analysis starting - * from the classes specified in manifest.xml. - */ -internal class HTMLClasses -{ - - import org.apache.flex.html.ToolTip; ToolTip; - import org.apache.flex.html.accessories.NumericOnlyTextInputBead; NumericOnlyTextInputBead; - import org.apache.flex.html.accessories.PasswordInputBead; PasswordInputBead; - import org.apache.flex.html.accessories.TextPromptBead; TextPromptBead; - import org.apache.flex.html.beads.AlertView; AlertView; - COMPILE::AS3 - { - import org.apache.flex.html.beads.BackgroundImageBead; BackgroundImageBead; - } - import org.apache.flex.html.beads.ButtonBarView; ButtonBarView; - COMPILE::AS3 - { - import org.apache.flex.html.beads.CheckBoxView; CheckBoxView; - import org.apache.flex.html.beads.ComboBoxView; ComboBoxView; - } - import org.apache.flex.html.beads.ContainerView; ContainerView; - COMPILE::AS3 - { - import org.apache.flex.html.beads.ControlBarMeasurementBead; ControlBarMeasurementBead; - import org.apache.flex.html.beads.CSSButtonView; CSSButtonView; - import org.apache.flex.html.beads.CSSImageAndTextButtonView; CSSImageAndTextButtonView; - import org.apache.flex.html.beads.CSSTextButtonView; CSSTextButtonView; - import org.apache.flex.html.beads.CSSTextToggleButtonView; CSSTextToggleButtonView; - import org.apache.flex.html.beads.DropDownListView; DropDownListView; - import org.apache.flex.html.beads.CloseButtonView; CloseButtonView; - import org.apache.flex.html.beads.ImageAndTextButtonView; ImageAndTextButtonView; - import org.apache.flex.html.beads.ImageView; ImageView; - } - import org.apache.flex.html.beads.ImageButtonView; ImageButtonView; - import org.apache.flex.html.beads.ListView; ListView; - COMPILE::AS3 - { - import org.apache.flex.html.beads.NumericStepperView; NumericStepperView; - } - import org.apache.flex.html.beads.PanelView; PanelView; - COMPILE::AS3 - { - import org.apache.flex.html.beads.PanelWithControlBarView; PanelWithControlBarView; - import org.apache.flex.html.beads.RadioButtonView; RadioButtonView; - import org.apache.flex.html.beads.VScrollBarView; VScrollBarView; - import org.apache.flex.html.beads.HScrollBarView; HScrollBarView; - import org.apache.flex.html.beads.ScrollBarView; ScrollBarView; - import org.apache.flex.html.beads.SimpleAlertView; SimpleAlertView; - import org.apache.flex.html.beads.SingleLineBorderBead; SingleLineBorderBead; - import org.apache.flex.html.beads.SliderView; SliderView; - } - import org.apache.flex.html.beads.SliderThumbView; SliderThumbView; - import org.apache.flex.html.beads.SliderTrackView; SliderTrackView; - COMPILE::AS3 - { - import org.apache.flex.html.beads.SolidBackgroundBead; SolidBackgroundBead; - import org.apache.flex.html.beads.SpinnerView; SpinnerView; - import org.apache.flex.html.beads.TextButtonMeasurementBead; TextButtonMeasurementBead; - import org.apache.flex.html.beads.TextFieldLabelMeasurementBead; TextFieldLabelMeasurementBead; - import org.apache.flex.html.beads.TextAreaView; TextAreaView; - import org.apache.flex.html.beads.TextButtonView; TextButtonView; - import org.apache.flex.html.beads.TextFieldView; TextFieldView; - import org.apache.flex.html.beads.TextInputView; TextInputView; - import org.apache.flex.html.beads.TextInputWithBorderView; TextInputWithBorderView; - import org.apache.flex.html.beads.models.AlertModel; AlertModel; - } - import org.apache.flex.html.beads.models.ArraySelectionModel; ArraySelectionModel; - import org.apache.flex.html.beads.models.RangeModel; RangeModel; - COMPILE::AS3 - { - import org.apache.flex.html.beads.models.ComboBoxModel; ComboBoxModel; - } - COMPILE::AS3 - { - import org.apache.flex.html.beads.models.ImageModel; ImageModel; - import org.apache.flex.html.beads.models.ImageAndTextModel; ImageAndTextModel; - } - import org.apache.flex.html.beads.models.PanelModel; PanelModel; - COMPILE::AS3 - { - import org.apache.flex.html.beads.models.SingleLineBorderModel; SingleLineBorderModel; - } - import org.apache.flex.html.beads.models.TextModel; TextModel; - import org.apache.flex.html.beads.models.TitleBarModel; TitleBarModel; - COMPILE::AS3 - { - import org.apache.flex.html.beads.models.ToggleButtonModel; ToggleButtonModel; - import org.apache.flex.html.beads.models.ValueToggleButtonModel; ValueToggleButtonModel; - } - import org.apache.flex.html.beads.models.ViewportModel; ViewportModel; - COMPILE::AS3 - { - import org.apache.flex.html.beads.controllers.AlertController; AlertController; - import org.apache.flex.html.beads.controllers.ComboBoxController; ComboBoxController; - import org.apache.flex.html.beads.controllers.DropDownListController; DropDownListController; - import org.apache.flex.html.beads.controllers.EditableTextKeyboardController; EditableTextKeyboardController; - } - import org.apache.flex.html.beads.controllers.ItemRendererMouseController; ItemRendererMouseController; - import org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController; ListSingleSelectionMouseController; - COMPILE::AS3 - { - import org.apache.flex.html.beads.controllers.SliderMouseController; SliderMouseController; - import org.apache.flex.html.beads.controllers.SpinnerMouseController; SpinnerMouseController; - import org.apache.flex.html.beads.controllers.VScrollBarMouseController; VScrollBarMouseController; - import org.apache.flex.html.beads.controllers.HScrollBarMouseController; HScrollBarMouseController; - } - import org.apache.flex.html.beads.layouts.ButtonBarLayout; ButtonBarLayout; - import org.apache.flex.html.beads.layouts.VerticalLayout; VerticalLayout; - import org.apache.flex.html.beads.layouts.HorizontalLayout; HorizontalLayout; - import org.apache.flex.html.beads.layouts.BasicLayout; BasicLayout; - COMPILE::AS3 - { - import org.apache.flex.html.beads.layouts.HScrollBarLayout; HScrollBarLayout; - import org.apache.flex.html.beads.layouts.VScrollBarLayout; VScrollBarLayout; - } - import org.apache.flex.html.beads.layouts.TileLayout; TileLayout; - import org.apache.flex.html.beads.TextItemRendererFactoryForArrayData; TextItemRendererFactoryForArrayData; - import org.apache.flex.html.beads.DataItemRendererFactoryForArrayData; DataItemRendererFactoryForArrayData; - import org.apache.flex.html.beads.DataItemRendererFactoryForArrayList; DataItemRendererFactoryForArrayList; - import org.apache.flex.html.supportClasses.DataGroup; DataGroup; - import org.apache.flex.html.supportClasses.Viewport; Viewport; - import org.apache.flex.html.supportClasses.ScrollingViewport; ScrollingViewport; - - import org.apache.flex.html.beads.DataGridColumnView; DataGridColumnView; - import org.apache.flex.html.beads.DataGridView; DataGridView; - import org.apache.flex.html.beads.DateChooserView; DateChooserView; - import org.apache.flex.html.beads.DateFieldView; DateFieldView; - import org.apache.flex.html.beads.layouts.FlexibleFirstChildHorizontalLayout; FlexibleFirstChildHorizontalLayout; - import org.apache.flex.html.beads.models.DataGridModel; DataGridModel; - import org.apache.flex.html.beads.models.DateChooserModel; DateChooserModel; - import org.apache.flex.html.beads.models.DataGridPresentationModel; DataGridPresentationModel; - import org.apache.flex.html.beads.controllers.DateChooserMouseController; DateChooserMouseController; - import org.apache.flex.html.beads.controllers.DateFieldMouseController; DateFieldMouseController; - import org.apache.flex.html.supportClasses.DataGridColumn; DataGridColumn; - import org.apache.flex.html.supportClasses.DateChooserButton; DateChooserButton; - import org.apache.flex.html.supportClasses.GraphicsItemRenderer; GraphicsItemRenderer; - - import org.apache.flex.html.MXMLBeadViewBase; MXMLBeadViewBase; - import org.apache.flex.html.beads.TitleBarView; TitleBarView; - import org.apache.flex.html.beads.TitleBarMeasurementBead; TitleBarMeasurementBead; - - COMPILE::AS3 - { - import org.apache.flex.html.beads.HRuleView; HRuleView; - import org.apache.flex.html.beads.VRuleView; VRuleView; - import org.apache.flex.html.beads.MultilineTextFieldView; MultilineTextFieldView; - } -} - -} - http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/core/IScrollingLayoutParent.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/core/IScrollingLayoutParent.as b/frameworks/projects/HTML/as/src/org/apache/flex/core/IScrollingLayoutParent.as deleted file mode 100644 index 5e9768e..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/core/IScrollingLayoutParent.as +++ /dev/null @@ -1,68 +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.html.supportClasses.Border; - import org.apache.flex.html.supportClasses.ScrollBar; - - /** - * The IScrollingLayoutParent interface is an ILayoutParent - * that has traditional scrollbars. The layout implementation - * often needs to know certain things about other objects in - * the component. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public interface IScrollingLayoutParent - { - /** - * The border. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - function get border():Border; - - /** - * The vertical ScrollBar. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - function get vScrollBar():ScrollBar; - - /** - * The horizontal ScrollBar. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - function get hScrollBar():ScrollBar; - - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/Alert.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/Alert.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/Alert.as deleted file mode 100644 index b7f50dc..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/Alert.as +++ /dev/null @@ -1,287 +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 -{ - import org.apache.flex.core.IAlertModel; - import org.apache.flex.core.IPopUp; - import org.apache.flex.core.UIBase; - - COMPILE::JS - { - import goog.events; - import org.apache.flex.core.WrappedHTMLElement; - import org.apache.flex.events.Event; - } - - /** - * The Alert class is a component that displays a message and one or more buttons - * in a view that pops up over all other controls and views. The Alert component - * uses the AlertView bead to display a modal dialog with a title and a variety - * of buttons configured through the flag property of its show() static function. - * The Alert component uses the following beads: - * - * org.apache.flex.core.IBeadModel: the data model for the Alert. - * org.apache.flex.core.IBeadView: the bead used to create the parts of the Alert. - * org.apache.flex.core.IBeadController: the bead used to handle input events. - * org.apache.flex.core.IBorderBead: if present, draws a border around the Alert. - * org.apache.flex.core.IBackgroundBead: if present, places a solid color background below the Alert. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class Alert extends UIBase implements IPopUp - { - /** - * The bitmask button flag to show the YES button. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public static const YES:uint = 0x000001; - - /** - * The bitmask button flag to show the NO button. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public static const NO:uint = 0x000002; - - /** - * The bitmask button flag to show the OK button. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public static const OK:uint = 0x000004; - - /** - * The bitmask button flag to show the Cancel button. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public static const CANCEL:uint = 0x000008; - - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function Alert() - { - super(); - - className = "Alert"; - } - - COMPILE::JS - private var titleBar:TitleBar; - - COMPILE::JS - private var label:Label; - - COMPILE::JS - private var buttonArea:Container; - - /** - * @override - */ - COMPILE::JS - override protected function createElement():WrappedHTMLElement - { - super.createElement(); - - element.className = 'Alert'; - - // add in a title bar - titleBar = new TitleBar(); - addElement(titleBar); - titleBar.element.id = 'titleBar'; - - label = new Label(); - addElement(label); - label.element.id = 'message'; - - // add a place for the buttons - buttonArea = new Container(); - addElement(buttonArea); - buttonArea.element.id = 'buttonArea'; - - return element; - }; - - // note: only passing parent to this function as I don't see a way to identify - // the 'application' or top level view without supplying a place to start to - // look for it. - /** - * This static method is a convenience function to quickly create and display an Alert. The - * text and parent paramters are required, the others will default. - * - * @param String text The message content of the Alert. - * @param Object parent The object that hosts the pop-up. - * @param String title An optional title for the Alert. - * @param uint flags Identifies which buttons to display in the alert. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - static public function show( text:String, parent:Object, title:String="", flags:uint=Alert.OK ) : void - { - var alert:Alert = new Alert(); - alert.message = text; - alert.title = title; - alert.flags = flags; - - alert.show(parent); - - COMPILE::JS - { - alert.positioner.style.position = 'relative'; - alert.positioner.style.width = '200px'; - alert.positioner.style.margin = 'auto'; - alert.positioner.style.top = '100px'; - } - } - - /** - * Shows the Alert anchored to the given parent object which is usally a root component such - * as a UIView.. - * - * @param Object parent The object that hosts the pop-up. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function show(parent:Object) : void - { - parent.addElement(this); - } - - /** - * The tile of the Alert. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get title():String - { - return IAlertModel(model).title; - } - public function set title(value:String):void - { - IAlertModel(model).title = value; - } - - /** - * The message to display in the Alert body. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get message():String - { - return IAlertModel(model).message; - } - public function set message(value:String):void - { - IAlertModel(model).message = value; - } - - /** - * The buttons to display on the Alert as bit-mask values. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get flags():uint - { - return IAlertModel(model).flags; - } - public function set flags(value:uint):void - { - IAlertModel(model).flags = value; - - COMPILE::JS - { - // add buttons based on flags - if (flags & Alert.OK) { - var ok:TextButton = new TextButton(); - buttonArea.addElement(ok); - ok.text = 'OK'; - goog.events.listen(ok.element, 'click', dismissAlert); - } - if (flags & Alert.CANCEL) { - var cancel:TextButton = new TextButton(); - buttonArea.addElement(cancel); - cancel.text = 'Cancel'; - goog.events.listen(cancel.element, 'click', dismissAlert); - } - if (flags & Alert.YES) { - var yes:TextButton = new TextButton(); - buttonArea.addElement(yes); - yes.text = 'YES'; - goog.events.listen(yes.element, 'click', dismissAlert); - } - if (flags & Alert.NO) { - var nob:TextButton = new TextButton(); - buttonArea.addElement(nob); - nob.text = 'NO'; - goog.events.listen(nob.element, 'click', dismissAlert); - } - - } - } - - /** - * @param event The event object. - * @flexjsignorecoercion HTMLElement - */ - COMPILE::JS - private function dismissAlert(event:Event):void - { - var htmlElement:HTMLElement = element as HTMLElement; - htmlElement.parentElement.removeChild(element); - }; - - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/Button.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/Button.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/Button.as deleted file mode 100644 index d4c2001..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/Button.as +++ /dev/null @@ -1,112 +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 -{ - import org.apache.flex.core.IStrand; - import org.apache.flex.core.IUIBase; - COMPILE::AS3 - { - import org.apache.flex.core.UIButtonBase; - } - COMPILE::JS - { - import org.apache.flex.core.UIBase; - import org.apache.flex.core.WrappedHTMLElement; - } - import org.apache.flex.core.ValuesManager; - import org.apache.flex.events.IEventDispatcher; - - - //-------------------------------------- - // Events - //-------------------------------------- - - /** - * Dispatched when the user clicks on a button. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - [Event(name="click", type="org.apache.flex.events.Event")] - - /** - * The Button class is a simple button. Use TextButton for - * buttons that should show text. This is the lightest weight - * button used for non-text buttons like the arrow buttons - * in a Scrollbar or NumericStepper. - * - * The most common view for this button is CSSButtonView that - * allows you to specify a backgroundImage in CSS that defines - * the look of the button. - * - * However, when used in ScrollBar and when composed in many - * other components, it is more common to assign a custom view - * to the button. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - COMPILE::AS3 - public class Button extends UIButtonBase implements IStrand, IEventDispatcher, IUIBase - { - /** - * Constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function Button() - { - super(); - } - } - - COMPILE::JS - public class Button extends UIBase implements IStrand, IEventDispatcher, IUIBase - { - /** - * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement - */ - override protected function createElement():WrappedHTMLElement - { - element = document.createElement('button') as WrappedHTMLElement; - element.setAttribute('type', 'button'); - - positioner = element; - positioner.style.position = 'relative'; - element.flexjs_wrapper = this; - - /* AJH comment out until we figure out why it is needed - if (org.apache.flex.core.ValuesManager.valuesImpl.getValue) { - var impl:Object = org.apache.flex.core.ValuesManager.valuesImpl. - getValue(this, 'iStatesImpl'); - }*/ - - return element; - } - - } - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/ButtonBar.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/ButtonBar.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/ButtonBar.as deleted file mode 100644 index e4c58e7..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/ButtonBar.as +++ /dev/null @@ -1,76 +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 -{ - COMPILE::JS - { - import org.apache.flex.core.WrappedHTMLElement; - } - - /** - * The ButtonBar class is a component that displays a set of Buttons. The ButtonBar - * is actually a List with a default horizontal layout and an itemRenderer that - * produces Buttons. The ButtonBar uses the following beads: - * - * org.apache.flex.core.IBeadModel: the data model for the ButtonBar, including the dataProvider. - * org.apache.flex.core.IBeadView: constructs the parts of the component. - * org.apache.flex.core.IBeadController: handles input events. - * org.apache.flex.core.IBeadLayout: sizes and positions the component parts. - * org.apache.flex.core.IDataProviderItemRendererMapper: produces itemRenderers. - * org.apache.flex.core.IItemRenderer: the class or class factory to use. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class ButtonBar extends List - { - /** - * constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function ButtonBar() - { - super(); - } - - /** - * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement - */ - COMPILE::JS - override protected function createElement():WrappedHTMLElement - { - element = document.createElement('div') as WrappedHTMLElement; - element.style.overflow = 'auto'; - positioner = element; - positioner.style.position = 'relative'; - - className = 'ButtonBar'; - - element.flexjs_wrapper = this; - - return element; - } - } -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/CheckBox.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/CheckBox.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/CheckBox.as deleted file mode 100644 index 6405ab5..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/CheckBox.as +++ /dev/null @@ -1,180 +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 -{ - COMPILE::AS3 - { - import flash.events.MouseEvent; - } - - import org.apache.flex.core.IStrand; - import org.apache.flex.core.IToggleButtonModel; - import org.apache.flex.core.IUIBase; - COMPILE::AS3 - { - import org.apache.flex.core.UIButtonBase; - } - COMPILE::JS - { - import org.apache.flex.core.UIBase; - import org.apache.flex.core.WrappedHTMLElement; - } - import org.apache.flex.events.Event; - - //-------------------------------------- - // Events - //-------------------------------------- - - /** - * Dispatched when the user checks or un-checks the CheckBox. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - [Event(name="change", type="org.apache.flex.events.Event")] - - /** - * The CheckBox class implements the common user interface - * control. The CheckBox includes its text label. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - COMPILE::AS3 - public class CheckBox extends UIButtonBase implements IStrand - { - /** - * Constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function CheckBox() - { - super(); - - addEventListener(MouseEvent.CLICK, internalMouseHandler); - } - - /** - * The text label for the CheckBox. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get text():String - { - return IToggleButtonModel(model).text; - } - - /** - * @private - */ - public function set text(value:String):void - { - IToggleButtonModel(model).text = value; - } - - [Bindable("change")] - /** - * <code>true</code> if the check mark is displayed. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function get selected():Boolean - { - return IToggleButtonModel(model).selected; - } - - /** - * @private - */ - public function set selected(value:Boolean):void - { - IToggleButtonModel(model).selected = value; - } - - private function internalMouseHandler(event:Event) : void - { - selected = !selected; - dispatchEvent(new Event("change")); - } - } - - COMPILE::JS - public class CheckBox extends UIBase - { - /** - * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement - */ - override protected function createElement():WrappedHTMLElement - { - var cb:HTMLInputElement; - - element = document.createElement('label') as WrappedHTMLElement; - - cb = document.createElement('input') as HTMLInputElement; - cb.type = 'checkbox'; - element.appendChild(cb); - element.appendChild(document.createTextNode('')); - - element.className = 'CheckBox'; - typeNames = 'CheckBox'; - - positioner = element; - positioner.style.position = 'relative'; - (cb as WrappedHTMLElement).flexjs_wrapper = this; - element.flexjs_wrapper = this; - - return element; - } - - public function get text():String - { - return element.childNodes.item(1).nodeValue; - } - - public function set text(value:String):void - { - element.childNodes.item(1).nodeValue = value; - } - - public function get selected():Boolean - { - return (element.childNodes.item(0) as HTMLInputElement).checked; - } - - public function set selected(value:Boolean):void - { - (element.childNodes.item(0) as HTMLInputElement).checked = value; - } - } - -} http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7853ef15/frameworks/projects/HTML/as/src/org/apache/flex/html/CloseButton.as ---------------------------------------------------------------------- diff --git a/frameworks/projects/HTML/as/src/org/apache/flex/html/CloseButton.as b/frameworks/projects/HTML/as/src/org/apache/flex/html/CloseButton.as deleted file mode 100644 index 8306915..0000000 --- a/frameworks/projects/HTML/as/src/org/apache/flex/html/CloseButton.as +++ /dev/null @@ -1,66 +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 -{ - COMPILE::JS - { - import org.apache.flex.core.WrappedHTMLElement; - } - - /** - * The CloseButton class is Button that displays an X - * and is commonly used in a Panel's TitleBar. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public class CloseButton extends Button - { - /** - * Constructor. - * - * @langversion 3.0 - * @playerversion Flash 10.2 - * @playerversion AIR 2.6 - * @productversion FlexJS 0.0 - */ - public function CloseButton() - { - super(); - } - - /** - * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement - */ - COMPILE::JS - override protected function createElement():WrappedHTMLElement - { - super.createElement(); - element.innerHTML = 'x'; - - element.style.padding = 0; - height = 11; - width = 11; - return element; - } - - } -}