You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/03/25 22:03:53 UTC
[21/35] git commit: [flex-asjs] [refs/heads/develop] - remove
staticControls folders and move components up a level. Next commit will
rename packages inside the files
remove staticControls folders and move components up a level. Next commit will rename packages inside the files
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5759d50b
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5759d50b
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5759d50b
Branch: refs/heads/develop
Commit: 5759d50b5925aa2a6f06f5cd1c66fb3f53b667f0
Parents: a0bd0cd
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 25 10:28:53 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 25 10:28:53 2014 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/html/DataGrid.as | 102 ++++++
.../src/org/apache/flex/html/DateChooser.as | 74 +++++
.../src/org/apache/flex/html/DateField.as | 90 +++++
.../html/accessories/DateFormatMMDDYYYYBead.as | 151 +++++++++
.../flex/html/beads/DataGridColumnView.as | 104 ++++++
.../org/apache/flex/html/beads/DataGridView.as | 213 ++++++++++++
.../DataItemRendererFactoryForColumnData.as | 142 ++++++++
.../apache/flex/html/beads/DateChooserView.as | 257 ++++++++++++++
.../org/apache/flex/html/beads/DateFieldView.as | 187 +++++++++++
.../flex/html/beads/FormatableLabelView.as | 90 +++++
.../flex/html/beads/FormatableTextInputView.as | 89 +++++
.../org/apache/flex/html/beads/IDataGridView.as | 36 ++
.../controllers/DateChooserMouseController.as | 126 +++++++
.../controllers/DateFieldMouseController.as | 97 ++++++
.../flex/html/beads/models/DataGridModel.as | 72 ++++
.../beads/models/DataGridPresentationModel.as | 109 ++++++
.../flex/html/beads/models/DateChooserModel.as | 189 +++++++++++
.../apache/flex/html/staticControls/DataGrid.as | 102 ------
.../flex/html/staticControls/DateChooser.as | 74 -----
.../flex/html/staticControls/DateField.as | 90 -----
.../accessories/DateFormatMMDDYYYYBead.as | 151 ---------
.../staticControls/beads/DataGridColumnView.as | 104 ------
.../html/staticControls/beads/DataGridView.as | 213 ------------
.../DataItemRendererFactoryForColumnData.as | 142 --------
.../staticControls/beads/DateChooserView.as | 257 --------------
.../html/staticControls/beads/DateFieldView.as | 187 -----------
.../staticControls/beads/FormatableLabelView.as | 90 -----
.../beads/FormatableTextInputView.as | 89 -----
.../html/staticControls/beads/IDataGridView.as | 36 --
.../controllers/DateChooserMouseController.as | 126 -------
.../controllers/DateFieldMouseController.as | 97 ------
.../beads/models/DataGridModel.as | 72 ----
.../beads/models/DataGridPresentationModel.as | 109 ------
.../beads/models/DateChooserModel.as | 189 -----------
.../supportClasses/DataGridColumn.as | 127 -------
.../supportClasses/DateChooserButton.as | 67 ----
.../flex/html/supportClasses/DataGridColumn.as | 127 +++++++
.../html/supportClasses/DateChooserButton.as | 67 ++++
.../FlexJSUI/src/org/apache/flex/html/Alert.as | 195 +++++++++++
.../FlexJSUI/src/org/apache/flex/html/Button.as | 74 +++++
.../src/org/apache/flex/html/ButtonBar.as | 53 +++
.../src/org/apache/flex/html/CheckBox.as | 116 +++++++
.../src/org/apache/flex/html/ComboBox.as | 114 +++++++
.../src/org/apache/flex/html/Container.as | 188 +++++++++++
.../src/org/apache/flex/html/ControlBar.as | 76 +++++
.../src/org/apache/flex/html/DropDownList.as | 137 ++++++++
.../FlexJSUI/src/org/apache/flex/html/Image.as | 68 ++++
.../FlexJSUI/src/org/apache/flex/html/Label.as | 118 +++++++
.../FlexJSUI/src/org/apache/flex/html/List.as | 185 +++++++++++
.../src/org/apache/flex/html/NumericStepper.as | 143 ++++++++
.../FlexJSUI/src/org/apache/flex/html/Panel.as | 123 +++++++
.../src/org/apache/flex/html/RadioButton.as | 208 ++++++++++++
.../src/org/apache/flex/html/SimpleAlert.as | 132 ++++++++
.../src/org/apache/flex/html/SimpleList.as | 46 +++
.../FlexJSUI/src/org/apache/flex/html/Slider.as | 152 +++++++++
.../src/org/apache/flex/html/Spinner.as | 146 ++++++++
.../src/org/apache/flex/html/TextArea.as | 91 +++++
.../src/org/apache/flex/html/TextButton.as | 90 +++++
.../src/org/apache/flex/html/TextInput.as | 115 +++++++
.../src/org/apache/flex/html/TitleBar.as | 247 ++++++++++++++
.../accessories/NumericOnlyTextInputBead.as | 125 +++++++
.../flex/html/accessories/PasswordInputBead.as | 85 +++++
.../flex/html/accessories/TextPromptBead.as | 131 ++++++++
.../flex/html/beads/AlertMeasurementBead.as | 88 +++++
.../src/org/apache/flex/html/beads/AlertView.as | 223 +++++++++++++
.../org/apache/flex/html/beads/ButtonBarView.as | 94 ++++++
.../org/apache/flex/html/beads/CSSButtonView.as | 155 +++++++++
.../apache/flex/html/beads/CSSTextButtonView.as | 262 +++++++++++++++
.../org/apache/flex/html/beads/CheckBoxView.as | 297 +++++++++++++++++
.../org/apache/flex/html/beads/ComboBoxView.as | 248 ++++++++++++++
.../org/apache/flex/html/beads/ContainerView.as | 253 ++++++++++++++
.../html/beads/ControlBarMeasurementBead.as | 116 +++++++
.../DataItemRendererFactoryForArrayData.as | 143 ++++++++
.../flex/html/beads/DownArrowButtonView.as | 103 ++++++
.../apache/flex/html/beads/DropDownListView.as | 283 ++++++++++++++++
.../apache/flex/html/beads/IBackgroundBead.as | 35 ++
.../org/apache/flex/html/beads/IBorderBead.as | 35 ++
.../org/apache/flex/html/beads/IComboBoxView.as | 78 +++++
.../apache/flex/html/beads/IDropDownListView.as | 57 ++++
.../apache/flex/html/beads/IGraphicsDrawing.as | 36 ++
.../src/org/apache/flex/html/beads/IListView.as | 56 ++++
.../apache/flex/html/beads/IScrollBarView.as | 80 +++++
.../org/apache/flex/html/beads/ISliderView.as | 56 ++++
.../org/apache/flex/html/beads/ISpinnerView.as | 56 ++++
.../apache/flex/html/beads/ITextFieldView.as | 44 +++
.../apache/flex/html/beads/ITextItemRenderer.as | 45 +++
.../src/org/apache/flex/html/beads/ImageView.as | 121 +++++++
.../src/org/apache/flex/html/beads/ListView.as | 260 +++++++++++++++
.../flex/html/beads/NumericStepperView.as | 216 ++++++++++++
.../src/org/apache/flex/html/beads/PanelView.as | 180 ++++++++++
.../apache/flex/html/beads/RadioButtonView.as | 282 ++++++++++++++++
.../org/apache/flex/html/beads/ScrollBarView.as | 158 +++++++++
.../apache/flex/html/beads/SimpleAlertView.as | 150 +++++++++
.../flex/html/beads/SingleLineBorderBead.as | 94 ++++++
.../apache/flex/html/beads/SliderThumbView.as | 114 +++++++
.../apache/flex/html/beads/SliderTrackView.as | 114 +++++++
.../org/apache/flex/html/beads/SliderView.as | 180 ++++++++++
.../flex/html/beads/SolidBackgroundBead.as | 145 ++++++++
.../org/apache/flex/html/beads/SpinnerView.as | 134 ++++++++
.../org/apache/flex/html/beads/TextAreaView.as | 258 ++++++++++++++
.../html/beads/TextButtonMeasurementBead.as | 86 +++++
.../apache/flex/html/beads/TextButtonView.as | 218 ++++++++++++
.../html/beads/TextFieldLabelMeasurementBead.as | 92 +++++
.../org/apache/flex/html/beads/TextFieldView.as | 53 +++
.../apache/flex/html/beads/TextFieldViewBase.as | 167 ++++++++++
.../org/apache/flex/html/beads/TextInputView.as | 88 +++++
.../flex/html/beads/TextInputWithBorderView.as | 79 +++++
.../TextItemRendererFactoryForArrayData.as | 141 ++++++++
...extItemRendererFactoryForStringVectorData.as | 128 +++++++
.../flex/html/beads/TitleBarMeasurementBead.as | 106 ++++++
.../apache/flex/html/beads/UpArrowButtonView.as | 103 ++++++
.../flex/html/beads/VScrollBarThumbView.as | 127 +++++++
.../flex/html/beads/VScrollBarTrackView.as | 112 +++++++
.../html/beads/controllers/AlertController.as | 88 +++++
.../controllers/ButtonAutoRepeatController.as | 147 ++++++++
.../beads/controllers/ComboBoxController.as | 104 ++++++
.../beads/controllers/DropDownListController.as | 104 ++++++
.../EditableTextKeyboardController.as | 86 +++++
.../controllers/ItemRendererMouseController.as | 126 +++++++
.../ListSingleSelectionMouseController.as | 124 +++++++
.../controllers/ScrollBarMouseControllerBase.as | 185 +++++++++++
.../beads/controllers/SliderMouseController.as | 148 +++++++++
.../beads/controllers/SpinnerMouseController.as | 98 ++++++
.../controllers/VScrollBarMouseController.as | 101 ++++++
.../flex/html/beads/layouts/ButtonBarLayout.as | 121 +++++++
.../beads/layouts/NonVirtualHorizontalLayout.as | 172 ++++++++++
.../NonVirtualHorizontalScrollingLayout.as | 136 ++++++++
.../beads/layouts/NonVirtualVerticalLayout.as | 191 +++++++++++
.../NonVirtualVerticalScrollingLayout.as | 140 ++++++++
.../flex/html/beads/layouts/TileLayout.as | 184 ++++++++++
.../flex/html/beads/layouts/VScrollBarLayout.as | 111 +++++++
.../apache/flex/html/beads/models/AlertModel.as | 288 ++++++++++++++++
.../html/beads/models/ArraySelectionModel.as | 234 +++++++++++++
.../flex/html/beads/models/ComboBoxModel.as | 100 ++++++
.../apache/flex/html/beads/models/ImageModel.as | 89 +++++
.../apache/flex/html/beads/models/PanelModel.as | 138 ++++++++
.../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 | 122 +++++++
.../flex/html/beads/models/TitleBarModel.as | 133 ++++++++
.../flex/html/beads/models/ToggleButtonModel.as | 144 ++++++++
.../html/beads/models/ValueToggleButtonModel.as | 123 +++++++
.../apache/flex/html/staticControls/Alert.as | 195 -----------
.../apache/flex/html/staticControls/Button.as | 74 -----
.../flex/html/staticControls/ButtonBar.as | 53 ---
.../apache/flex/html/staticControls/CheckBox.as | 116 -------
.../apache/flex/html/staticControls/ComboBox.as | 114 -------
.../flex/html/staticControls/Container.as | 188 -----------
.../flex/html/staticControls/ControlBar.as | 76 -----
.../flex/html/staticControls/DropDownList.as | 137 --------
.../apache/flex/html/staticControls/Image.as | 68 ----
.../apache/flex/html/staticControls/Label.as | 118 -------
.../org/apache/flex/html/staticControls/List.as | 185 -----------
.../flex/html/staticControls/NumericStepper.as | 143 --------
.../apache/flex/html/staticControls/Panel.as | 123 -------
.../flex/html/staticControls/RadioButton.as | 208 ------------
.../flex/html/staticControls/SimpleAlert.as | 132 --------
.../flex/html/staticControls/SimpleList.as | 46 ---
.../apache/flex/html/staticControls/Slider.as | 152 ---------
.../apache/flex/html/staticControls/Spinner.as | 146 --------
.../apache/flex/html/staticControls/TextArea.as | 91 -----
.../flex/html/staticControls/TextButton.as | 90 -----
.../flex/html/staticControls/TextInput.as | 115 -------
.../apache/flex/html/staticControls/TitleBar.as | 247 --------------
.../accessories/NumericOnlyTextInputBead.as | 125 -------
.../accessories/PasswordInputBead.as | 85 -----
.../accessories/TextPromptBead.as | 131 --------
.../beads/AlertMeasurementBead.as | 88 -----
.../flex/html/staticControls/beads/AlertView.as | 223 -------------
.../html/staticControls/beads/ButtonBarView.as | 94 ------
.../html/staticControls/beads/CSSButtonView.as | 155 ---------
.../staticControls/beads/CSSTextButtonView.as | 262 ---------------
.../html/staticControls/beads/CheckBoxView.as | 297 -----------------
.../html/staticControls/beads/ComboBoxView.as | 248 --------------
.../html/staticControls/beads/ContainerView.as | 253 --------------
.../beads/ControlBarMeasurementBead.as | 116 -------
.../DataItemRendererFactoryForArrayData.as | 143 --------
.../staticControls/beads/DownArrowButtonView.as | 103 ------
.../staticControls/beads/DropDownListView.as | 283 ----------------
.../staticControls/beads/IBackgroundBead.as | 35 --
.../html/staticControls/beads/IBorderBead.as | 35 --
.../html/staticControls/beads/IComboBoxView.as | 78 -----
.../staticControls/beads/IDropDownListView.as | 57 ----
.../staticControls/beads/IGraphicsDrawing.as | 36 --
.../flex/html/staticControls/beads/IListView.as | 56 ----
.../html/staticControls/beads/IScrollBarView.as | 80 -----
.../html/staticControls/beads/ISliderView.as | 56 ----
.../html/staticControls/beads/ISpinnerView.as | 56 ----
.../html/staticControls/beads/ITextFieldView.as | 44 ---
.../staticControls/beads/ITextItemRenderer.as | 45 ---
.../flex/html/staticControls/beads/ImageView.as | 121 -------
.../flex/html/staticControls/beads/ListView.as | 260 ---------------
.../staticControls/beads/NumericStepperView.as | 216 ------------
.../flex/html/staticControls/beads/PanelView.as | 180 ----------
.../staticControls/beads/RadioButtonView.as | 282 ----------------
.../html/staticControls/beads/ScrollBarView.as | 158 ---------
.../staticControls/beads/SimpleAlertView.as | 150 ---------
.../beads/SingleLineBorderBead.as | 94 ------
.../staticControls/beads/SliderThumbView.as | 114 -------
.../staticControls/beads/SliderTrackView.as | 114 -------
.../html/staticControls/beads/SliderView.as | 180 ----------
.../staticControls/beads/SolidBackgroundBead.as | 145 --------
.../html/staticControls/beads/SpinnerView.as | 134 --------
.../html/staticControls/beads/TextAreaView.as | 258 --------------
.../beads/TextButtonMeasurementBead.as | 86 -----
.../html/staticControls/beads/TextButtonView.as | 218 ------------
.../beads/TextFieldLabelMeasurementBead.as | 92 -----
.../html/staticControls/beads/TextFieldView.as | 53 ---
.../staticControls/beads/TextFieldViewBase.as | 167 ----------
.../html/staticControls/beads/TextInputView.as | 88 -----
.../beads/TextInputWithBorderView.as | 79 -----
.../TextItemRendererFactoryForArrayData.as | 141 --------
...extItemRendererFactoryForStringVectorData.as | 128 -------
.../beads/TitleBarMeasurementBead.as | 106 ------
.../staticControls/beads/UpArrowButtonView.as | 103 ------
.../staticControls/beads/VScrollBarThumbView.as | 127 -------
.../staticControls/beads/VScrollBarTrackView.as | 112 -------
.../beads/controllers/AlertController.as | 88 -----
.../controllers/ButtonAutoRepeatController.as | 147 --------
.../beads/controllers/ComboBoxController.as | 104 ------
.../beads/controllers/DropDownListController.as | 104 ------
.../EditableTextKeyboardController.as | 86 -----
.../controllers/ItemRendererMouseController.as | 126 -------
.../ListSingleSelectionMouseController.as | 124 -------
.../controllers/ScrollBarMouseControllerBase.as | 185 -----------
.../beads/controllers/SliderMouseController.as | 148 ---------
.../beads/controllers/SpinnerMouseController.as | 98 ------
.../controllers/VScrollBarMouseController.as | 101 ------
.../beads/layouts/ButtonBarLayout.as | 121 -------
.../beads/layouts/NonVirtualHorizontalLayout.as | 172 ----------
.../NonVirtualHorizontalScrollingLayout.as | 136 --------
.../beads/layouts/NonVirtualVerticalLayout.as | 191 -----------
.../NonVirtualVerticalScrollingLayout.as | 140 --------
.../staticControls/beads/layouts/TileLayout.as | 184 ----------
.../beads/layouts/VScrollBarLayout.as | 111 -------
.../staticControls/beads/models/AlertModel.as | 288 ----------------
.../beads/models/ArraySelectionModel.as | 234 -------------
.../beads/models/ComboBoxModel.as | 100 ------
.../staticControls/beads/models/ImageModel.as | 89 -----
.../staticControls/beads/models/PanelModel.as | 138 --------
.../staticControls/beads/models/RangeModel.as | 222 -------------
.../beads/models/ScrollBarModel.as | 98 ------
.../beads/models/SingleLineBorderModel.as | 85 -----
.../beads/models/StringSelectionModel.as | 221 ------------
.../staticControls/beads/models/TextModel.as | 122 -------
.../beads/models/TitleBarModel.as | 133 --------
.../beads/models/ToggleButtonModel.as | 144 --------
.../beads/models/ValueToggleButtonModel.as | 123 -------
.../staticControls/supportClasses/Border.as | 49 ---
.../ButtonBarButtonItemRenderer.as | 135 --------
.../supportClasses/ContainerContentArea.as | 48 ---
.../supportClasses/DataItemRenderer.as | 131 --------
.../supportClasses/DropDownListList.as | 75 -----
.../supportClasses/NonVirtualDataGroup.as | 75 -----
.../staticControls/supportClasses/ScrollBar.as | 48 ---
.../supportClasses/StringItemRenderer.as | 132 --------
.../supportClasses/TextFieldItemRenderer.as | 333 -------------------
.../supportClasses/UIItemRendererBase.as | 245 --------------
.../apache/flex/html/supportClasses/Border.as | 49 +++
.../ButtonBarButtonItemRenderer.as | 135 ++++++++
.../html/supportClasses/ContainerContentArea.as | 48 +++
.../html/supportClasses/DataItemRenderer.as | 131 ++++++++
.../html/supportClasses/DropDownListList.as | 75 +++++
.../html/supportClasses/NonVirtualDataGroup.as | 75 +++++
.../flex/html/supportClasses/ScrollBar.as | 48 +++
.../html/supportClasses/StringItemRenderer.as | 132 ++++++++
.../supportClasses/TextFieldItemRenderer.as | 333 +++++++++++++++++++
.../html/supportClasses/UIItemRendererBase.as | 245 ++++++++++++++
.../src/org/apache/flex/html5/Button.as | 26 ++
.../src/org/apache/flex/html5/CheckBox.as | 26 ++
.../src/org/apache/flex/html5/ComboBox.as | 26 ++
.../src/org/apache/flex/html5/DropDownList.as | 26 ++
.../FlexJSUI/src/org/apache/flex/html5/Label.as | 33 ++
.../FlexJSUI/src/org/apache/flex/html5/List.as | 33 ++
.../src/org/apache/flex/html5/RadioButton.as | 26 ++
.../src/org/apache/flex/html5/TextArea.as | 26 ++
.../src/org/apache/flex/html5/TextButton.as | 30 ++
.../src/org/apache/flex/html5/TextInput.as | 25 ++
.../apache/flex/html5/staticControls/Button.as | 26 --
.../flex/html5/staticControls/CheckBox.as | 26 --
.../flex/html5/staticControls/ComboBox.as | 26 --
.../flex/html5/staticControls/DropDownList.as | 26 --
.../apache/flex/html5/staticControls/Label.as | 33 --
.../apache/flex/html5/staticControls/List.as | 33 --
.../flex/html5/staticControls/RadioButton.as | 26 --
.../flex/html5/staticControls/TextArea.as | 26 --
.../flex/html5/staticControls/TextButton.as | 30 --
.../flex/html5/staticControls/TextInput.as | 25 --
.../js/FlexJS/src/org/apache/flex/html/Alert.js | 213 ++++++++++++
.../FlexJS/src/org/apache/flex/html/Button.js | 60 ++++
.../src/org/apache/flex/html/ButtonBar.js | 85 +++++
.../FlexJS/src/org/apache/flex/html/CheckBox.js | 99 ++++++
.../FlexJS/src/org/apache/flex/html/ComboBox.js | 210 ++++++++++++
.../src/org/apache/flex/html/Container.js | 86 +++++
.../src/org/apache/flex/html/ControlBar.js | 57 ++++
.../src/org/apache/flex/html/DropDownList.js | 114 +++++++
.../js/FlexJS/src/org/apache/flex/html/Image.js | 86 +++++
.../js/FlexJS/src/org/apache/flex/html/Label.js | 61 ++++
.../js/FlexJS/src/org/apache/flex/html/List.js | 176 ++++++++++
.../src/org/apache/flex/html/NumericStepper.js | 185 +++++++++++
.../js/FlexJS/src/org/apache/flex/html/Panel.js | 186 +++++++++++
.../src/org/apache/flex/html/RadioButton.js | 197 +++++++++++
.../src/org/apache/flex/html/SimpleAlert.js | 51 +++
.../src/org/apache/flex/html/SimpleList.js | 129 +++++++
.../FlexJS/src/org/apache/flex/html/Slider.js | 219 ++++++++++++
.../FlexJS/src/org/apache/flex/html/Spinner.js | 211 ++++++++++++
.../FlexJS/src/org/apache/flex/html/TextArea.js | 72 ++++
.../src/org/apache/flex/html/TextButton.js | 58 ++++
.../src/org/apache/flex/html/TextInput.js | 95 ++++++
.../FlexJS/src/org/apache/flex/html/TitleBar.js | 150 +++++++++
.../accessories/NumericOnlyTextInputBead.js | 91 +++++
.../flex/html/accessories/PasswordInputBead.js | 53 +++
.../flex/html/accessories/TextPromptBead.js | 72 ++++
.../org/apache/flex/html/beads/ButtonBarView.js | 55 +++
.../DataItemRendererFactoryForArrayData.js | 137 ++++++++
.../src/org/apache/flex/html/beads/IListView.js | 43 +++
.../src/org/apache/flex/html/beads/ImageView.js | 63 ++++
.../src/org/apache/flex/html/beads/ListView.js | 168 ++++++++++
.../src/org/apache/flex/html/beads/PanelView.js | 72 ++++
.../apache/flex/html/beads/SliderThumbView.js | 61 ++++
.../apache/flex/html/beads/SliderTrackView.js | 61 ++++
.../TextItemRendererFactoryForArrayData.js | 92 +++++
.../controllers/ItemRendererMouseController.js | 124 +++++++
.../ListSingleSelectionMouseController.js | 77 +++++
.../beads/controllers/SliderMouseController.js | 173 ++++++++++
.../beads/controllers/SpinnerMouseController.js | 86 +++++
.../flex/html/beads/layouts/ButtonBarLayout.js | 113 +++++++
.../beads/layouts/NonVirtualHorizontalLayout.js | 85 +++++
.../beads/layouts/NonVirtualVerticalLayout.js | 76 +++++
.../NonVirtualVerticalScrollingLayout.js | 80 +++++
.../flex/html/beads/layouts/TileLayout.js | 158 +++++++++
.../html/beads/models/ArraySelectionModel.js | 160 +++++++++
.../flex/html/beads/models/DataGridModel.js | 79 +++++
.../apache/flex/html/beads/models/ImageModel.js | 72 ++++
.../apache/flex/html/beads/models/PanelModel.js | 136 ++++++++
.../apache/flex/html/beads/models/RangeModel.js | 200 +++++++++++
.../flex/html/beads/models/TitleBarModel.js | 136 ++++++++
.../apache/flex/html/staticControls/Alert.js | 213 ------------
.../apache/flex/html/staticControls/Button.js | 60 ----
.../flex/html/staticControls/ButtonBar.js | 85 -----
.../apache/flex/html/staticControls/CheckBox.js | 99 ------
.../apache/flex/html/staticControls/ComboBox.js | 210 ------------
.../flex/html/staticControls/Container.js | 86 -----
.../flex/html/staticControls/ControlBar.js | 57 ----
.../flex/html/staticControls/DropDownList.js | 114 -------
.../apache/flex/html/staticControls/Image.js | 86 -----
.../apache/flex/html/staticControls/Label.js | 61 ----
.../org/apache/flex/html/staticControls/List.js | 176 ----------
.../flex/html/staticControls/NumericStepper.js | 185 -----------
.../apache/flex/html/staticControls/Panel.js | 186 -----------
.../flex/html/staticControls/RadioButton.js | 197 -----------
.../flex/html/staticControls/SimpleAlert.js | 51 ---
.../flex/html/staticControls/SimpleList.js | 129 -------
.../apache/flex/html/staticControls/Slider.js | 219 ------------
.../apache/flex/html/staticControls/Spinner.js | 211 ------------
.../apache/flex/html/staticControls/TextArea.js | 72 ----
.../flex/html/staticControls/TextButton.js | 58 ----
.../flex/html/staticControls/TextInput.js | 95 ------
.../apache/flex/html/staticControls/TitleBar.js | 150 ---------
.../accessories/NumericOnlyTextInputBead.js | 91 -----
.../accessories/PasswordInputBead.js | 53 ---
.../accessories/TextPromptBead.js | 72 ----
.../html/staticControls/beads/ButtonBarView.js | 55 ---
.../DataItemRendererFactoryForArrayData.js | 137 --------
.../flex/html/staticControls/beads/IListView.js | 43 ---
.../flex/html/staticControls/beads/ImageView.js | 63 ----
.../flex/html/staticControls/beads/ListView.js | 168 ----------
.../flex/html/staticControls/beads/PanelView.js | 72 ----
.../staticControls/beads/SliderThumbView.js | 61 ----
.../staticControls/beads/SliderTrackView.js | 61 ----
.../TextItemRendererFactoryForArrayData.js | 92 -----
.../controllers/ItemRendererMouseController.js | 124 -------
.../ListSingleSelectionMouseController.js | 77 -----
.../beads/controllers/SliderMouseController.js | 173 ----------
.../beads/controllers/SpinnerMouseController.js | 86 -----
.../beads/layouts/ButtonBarLayout.js | 113 -------
.../beads/layouts/NonVirtualHorizontalLayout.js | 85 -----
.../beads/layouts/NonVirtualVerticalLayout.js | 76 -----
.../NonVirtualVerticalScrollingLayout.js | 80 -----
.../staticControls/beads/layouts/TileLayout.js | 158 ---------
.../beads/models/ArraySelectionModel.js | 160 ---------
.../beads/models/DataGridModel.js | 79 -----
.../staticControls/beads/models/ImageModel.js | 72 ----
.../staticControls/beads/models/PanelModel.js | 136 --------
.../staticControls/beads/models/RangeModel.js | 200 -----------
.../beads/models/TitleBarModel.js | 136 --------
.../ButtonBarButtonItemRenderer.js | 112 -------
.../supportClasses/DataGridColumn.js | 107 ------
.../supportClasses/DataItemRenderer.js | 158 ---------
.../supportClasses/NonVirtualDataGroup.js | 108 ------
.../supportClasses/StringItemRenderer.js | 178 ----------
.../supportClasses/UIItemRendererBase.js | 208 ------------
.../ButtonBarButtonItemRenderer.js | 112 +++++++
.../flex/html/supportClasses/DataGridColumn.js | 107 ++++++
.../html/supportClasses/DataItemRenderer.js | 158 +++++++++
.../html/supportClasses/NonVirtualDataGroup.js | 108 ++++++
.../html/supportClasses/StringItemRenderer.js | 178 ++++++++++
.../html/supportClasses/UIItemRendererBase.js | 208 ++++++++++++
.../src/org/apache/flex/html5/CheckBox.js | 88 +++++
.../src/org/apache/flex/html5/ComboBox.js | 196 +++++++++++
.../src/org/apache/flex/html5/DropDownList.js | 29 ++
.../FlexJS/src/org/apache/flex/html5/Label.js | 61 ++++
.../js/FlexJS/src/org/apache/flex/html5/List.js | 42 +++
.../src/org/apache/flex/html5/RadioButton.js | 109 ++++++
.../src/org/apache/flex/html5/TextArea.js | 61 ++++
.../src/org/apache/flex/html5/TextButton.js | 63 ++++
.../src/org/apache/flex/html5/TextInput.js | 62 ++++
.../flex/html5/staticControls/CheckBox.js | 88 -----
.../flex/html5/staticControls/ComboBox.js | 196 -----------
.../flex/html5/staticControls/DropDownList.js | 29 --
.../apache/flex/html5/staticControls/Label.js | 61 ----
.../apache/flex/html5/staticControls/List.js | 42 ---
.../flex/html5/staticControls/RadioButton.js | 109 ------
.../flex/html5/staticControls/TextArea.js | 61 ----
.../flex/html5/staticControls/TextButton.js | 63 ----
.../flex/html5/staticControls/TextInput.js | 62 ----
418 files changed, 25245 insertions(+), 25245 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as
new file mode 100644
index 0000000..0bc5281
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DataGrid.as
@@ -0,0 +1,102 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls
+{
+ import org.apache.flex.core.IDataGridModel;
+ import org.apache.flex.core.UIBase;
+
+ [Event(name="change", type="org.apache.flex.events.Event")]
+
+ /**
+ * The DataGrid class displays a collection of data using columns and rows. Each
+ * column represents a specific field in the data set; each row represents a specific
+ * datum. The DataGrid is a composite component built with a org.apache.flex.html.staticControls.ButtonBar
+ * for the column headers and a org.apache.flex.html.staticControls.List for each column. The DataGrid's
+ * view bead (usually org.apache.flex.html.staticControls.beads.DataGridView) constructs these parts while
+ * itemRenderer factories contruct the elements to display the data in each cell.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DataGrid extends UIBase
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DataGrid()
+ {
+ super();
+ }
+
+ /**
+ * The array of org.apache.flex.html.staticControls.supportClasses.DataGridColumns used to
+ * describe each column.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get columns():Array
+ {
+ return IDataGridModel(model).columns;
+ }
+ public function set columns(value:Array):void
+ {
+ IDataGridModel(model).columns = value;
+ }
+
+ /**
+ * The object used to provide data to the org.apache.flex.html.staticControls.DataGrid.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get dataProvider():Object
+ {
+ return IDataGridModel(model).dataProvider;
+ }
+ public function set dataProvider(value:Object):void
+ {
+ IDataGridModel(model).dataProvider = value;
+ }
+
+ /**
+ * The currently selected row.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ 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/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as
new file mode 100644
index 0000000..6f36af7
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateChooser.as
@@ -0,0 +1,74 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls
+{
+ import org.apache.flex.core.IDateChooserModel;
+ import org.apache.flex.core.UIBase;
+
+ /**
+ * The change event is dispatched when the selectedDate is changed.
+ */
+ [Event(name="change", type="org.apache.flex.events.Event")]
+
+ /**
+ * The DateChooser class is a component that displays a calendar.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DateChooser extends UIBase
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DateChooser()
+ {
+ super();
+ className = "DateChooser";
+
+ // fix the DateChooser's size
+// width = 280;
+// height = 240;
+ }
+
+ /**
+ * The currently selected date (or null if no date has been selected).
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get selectedDate():Date
+ {
+ return IDateChooserModel(model).selectedDate;
+ }
+ public function set selectedDate(value:Date):void
+ {
+ IDateChooserModel(model).selectedDate = value;
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as
new file mode 100644
index 0000000..f5c77f4
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/DateField.as
@@ -0,0 +1,90 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls
+{
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IDateChooserModel;
+ import org.apache.flex.core.UIBase;
+ import org.apache.flex.core.ValuesManager;
+
+ /**
+ * The DateField class provides an input field where a date can be entered
+ * and a pop-up calendar control for picking a date as an alternative to
+ * the text field.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DateField extends UIBase
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DateField()
+ {
+ super();
+
+ className = "DateField";
+ }
+
+ /**
+ * The method called when added to a parent. The DateField class uses
+ * this opportunity to install additional beads.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function addedToParent():void
+ {
+ super.addedToParent();
+
+ var klass:* = ValuesManager.valuesImpl.getValue(this,"iFormatBead");
+ var bead:IBead = new klass() as IBead;
+ if (bead) {
+ addBead(bead);
+ }
+ }
+
+ /**
+ * The currently selected date (or null if no date has been selected).
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get selectedDate():Date
+ {
+ return IDateChooserModel(model).selectedDate;
+ }
+ public function set selectedDate(value:Date):void
+ {
+ IDateChooserModel(model).selectedDate = value;
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
new file mode 100644
index 0000000..3b52c40
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/accessories/DateFormatMMDDYYYYBead.as
@@ -0,0 +1,151 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.accessories
+{
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IDateChooserModel;
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.EventDispatcher;
+ import org.apache.flex.html.staticControls.TextInput;
+ import org.apache.flex.html.staticControls.beads.DateFieldView;
+
+ /**
+ * The DateFormatBead class formats the display of a DateField using MM/DD/YYYY format.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DateFormatMMDDYYYYBead extends EventDispatcher implements IBead, IFormatBead
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DateFormatMMDDYYYYBead()
+ {
+ }
+
+ private var _propertyName:String;
+ private var _eventName:String;
+ private var _formattedResult:String;
+
+ /**
+ * The name of the property on the model holding the value to be formatted.
+ * The default is selectedDate.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get propertyName():String
+ {
+ if (_propertyName == null) {
+ return "selectedDate";
+ }
+ return _propertyName;
+ }
+ public function set propertyName(value:String):void
+ {
+ _propertyName = value;
+ }
+
+ /**
+ * The name of the event dispatched when the property changes. The
+ * default is selectedDateChanged.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get eventName():String
+ {
+ if (_eventName == null) {
+ return _propertyName+"Changed";
+ }
+ return _eventName;
+ }
+ public function set eventName(value:String):void
+ {
+ _eventName = value;
+ }
+
+ /**
+ * The formatted result.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get formattedString():String
+ {
+ return _formattedResult;
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ var model:IDateChooserModel = _strand.getBeadByType(IDateChooserModel) as IDateChooserModel;
+ model.addEventListener("selectedDateChanged",handleTextChange);
+ }
+
+ /**
+ * @private
+ */
+ private function handleTextChange(event:Event):void
+ {
+ var model:IDateChooserModel = _strand.getBeadByType(IDateChooserModel) as IDateChooserModel;
+ /*var view:DateFieldView = _strand.getBeadByType(DateFieldView) as DateFieldView;
+ var input:TextInput = view.textInput;*/
+
+ var d:Date = model.selectedDate;
+ var month:String = String(d.getMonth()+1);
+ if (Number(month)<10) month = "0"+month;
+ var date:String = String(d.getDate());
+ if (Number(date)<10) date = "0"+date;
+ var fmt:String = month+"/"+date+"/"+String(d.getFullYear());
+ /*input.text = fmt;*/
+ _formattedResult = month+"/"+date+"/"+String(d.getFullYear());
+
+ dispatchEvent( new Event("formatChanged") );
+ }
+
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridColumnView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridColumnView.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridColumnView.as
new file mode 100644
index 0000000..91f81ef
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridColumnView.as
@@ -0,0 +1,104 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.html.staticControls.supportClasses.DataGridColumn;
+
+ /**
+ * The DataGridColumnView class extends org.apache.flex.html.staticControls.beads.ListView and
+ * provides properties to the org.apache.flex.html.staticControls.List that makes a column in
+ * the org.apache.flex.html.staticControls.DataGrid.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DataGridColumnView extends ListView
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DataGridColumnView()
+ {
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ _strand = value;
+ }
+
+ private var _columnIndex:uint;
+
+ /**
+ * The zero-based index for the column.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get columnIndex():uint
+ {
+ return _columnIndex;
+ }
+ public function set columnIndex(value:uint):void
+ {
+ _columnIndex = value;
+ }
+
+ private var _column:DataGridColumn;
+
+ /**
+ * The org.apache.flex.html.staticControls.support.DataGridColumn containing information used to
+ * present the org.apache.flex.html.staticControls.List as a column in the
+ * org.apache.flex.html.staticControls.DataGrid.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get column():DataGridColumn
+ {
+ return _column;
+ }
+ public function set column(value:DataGridColumn):void
+ {
+ _column = value;
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridView.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridView.as
new file mode 100644
index 0000000..b1c8205
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataGridView.as
@@ -0,0 +1,213 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IDataGridModel;
+ import org.apache.flex.core.ISelectionModel;
+ 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.staticControls.ButtonBar;
+ import org.apache.flex.html.staticControls.Container;
+ import org.apache.flex.html.staticControls.List;
+ import org.apache.flex.html.staticControls.beads.layouts.ButtonBarLayout;
+ import org.apache.flex.html.staticControls.beads.layouts.NonVirtualHorizontalLayout;
+ import org.apache.flex.html.staticControls.beads.models.ArraySelectionModel;
+ import org.apache.flex.html.staticControls.supportClasses.DataGridColumn;
+
+ /**
+ * The DataGridView class is the visual bead for the org.apache.flex.html.staticControls.DataGrid.
+ * This class constructs the items that make the DataGrid: Lists for each column and a
+ * org.apache.flex.html.staticControls.ButtonBar for the column headers.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DataGridView implements IDataGridView
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DataGridView()
+ {
+ }
+
+ //private var background:Shape;
+ private var buttonBar:ButtonBar;
+ private var buttonBarModel:ArraySelectionModel;
+ private var columnContainer:Container;
+ private var columns:Array;
+
+ /**
+ * The array of org.apache.flex.html.staticControls.supportClasses.DataGridColumn instances.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function getColumnLists():Array
+ {
+ return columns;
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as IDataGridModel;
+
+ // create an array of columnLabels for use by the ButtonBar/DataGrid header.
+ var columnLabels:Array = new Array();
+ var buttonWidths:Array = new Array();
+ for(var i:int=0; i < sharedModel.columns.length; i++) {
+ var dgc:DataGridColumn = sharedModel.columns[i] as DataGridColumn;
+ columnLabels.push(dgc.label);
+ buttonWidths.push(dgc.columnWidth);
+ }
+ var bblayout:ButtonBarLayout = new ButtonBarLayout();
+ bblayout.buttonWidths = buttonWidths;
+
+ buttonBarModel = new ArraySelectionModel();
+ buttonBarModel.dataProvider = columnLabels;
+
+ buttonBar = new ButtonBar();
+ buttonBar.addBead(buttonBarModel);
+ buttonBar.addBead(bblayout);
+ UIBase(_strand).addElement(buttonBar);
+
+ columnContainer = new Container();
+ var layout:NonVirtualHorizontalLayout = new NonVirtualHorizontalLayout();
+ columnContainer.addBead(layout);
+ UIBase(_strand).addElement(columnContainer);
+
+ columns = new Array();
+ for(i=0; i < sharedModel.columns.length; i++) {
+ var listModel:ISelectionModel = new ArraySelectionModel();
+ listModel.dataProvider = sharedModel.dataProvider;
+
+ var dataGridColumn:DataGridColumn = sharedModel.columns[i] as DataGridColumn;
+
+ var list:List = new List();
+ list.addBead(listModel);
+ list.itemRenderer = dataGridColumn.itemRenderer;
+ list.labelField = dataGridColumn.dataField;
+
+ var colWidth:Number = dataGridColumn.columnWidth;
+ if (!isNaN(colWidth)) list.width = colWidth;
+
+ columnContainer.addElement(list);
+ columns.push(list);
+ list.addEventListener('change',columnListChangeHandler);
+ list.addEventListener('rollover',columnListRollOverHandler);
+ }
+
+ IEventDispatcher(_strand).addEventListener("widthChanged",handleSizeChange);
+ IEventDispatcher(_strand).addEventListener("heightChanged",handleSizeChange);
+
+ handleSizeChange(null); // initial sizing
+ }
+
+ /**
+ * @private
+ */
+ 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);
+
+ buttonBar.x = 0;
+ buttonBar.y = 0;
+ buttonBar.width = sw + (2*columns.length-1);
+ buttonBar.height = 25;
+
+ columnContainer.x = 0;
+ columnContainer.y = 30;
+ columnContainer.width = sw + columns.length*2;
+ columnContainer.height = sh - 25;
+
+ for(var i:int=0; i < columns.length; i++) {
+ var column:List = columns[i];
+ column.height = columnContainer.height; // this will actually be Nitem*rowHeight eventually
+ }
+
+ IEventDispatcher(_strand).dispatchEvent(new Event("layoutComplete"));
+ }
+
+ /**
+ * @private
+ */
+ private function columnListChangeHandler(event:Event):void
+ {
+ var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as IDataGridModel;
+ var list:List = event.target as List;
+ sharedModel.selectedIndex = list.selectedIndex;
+
+ for(var i:int=0; i < columns.length; i++) {
+ if (list != columns[i]) {
+ var otherList:List = columns[i] as List;
+ otherList.selectedIndex = list.selectedIndex;
+ }
+ }
+
+ IEventDispatcher(_strand).dispatchEvent(new Event('change'));
+ }
+
+ /**
+ * @private
+ */
+ private function columnListRollOverHandler(event:Event):void
+ {
+ var list:List = event.target as List;
+ if (list == null) return;
+ for(var i:int=0; i < columns.length; i++) {
+ if (list != columns[i]) {
+ var otherList:List = columns[i] as List;
+ otherList.rollOverIndex = list.rollOverIndex;
+ }
+ }
+
+ IEventDispatcher(_strand).dispatchEvent(new Event('rollOver'));
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataItemRendererFactoryForColumnData.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataItemRendererFactoryForColumnData.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataItemRendererFactoryForColumnData.as
new file mode 100644
index 0000000..c33e153
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DataItemRendererFactoryForColumnData.as
@@ -0,0 +1,142 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.core.IBead;
+ import org.apache.flex.core.IBeadView;
+ import org.apache.flex.core.IDataGridModel;
+ import org.apache.flex.core.IDataProviderItemRendererMapper;
+ import org.apache.flex.core.IItemRendererClassFactory;
+ import org.apache.flex.core.IItemRendererParent;
+ 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.staticControls.supportClasses.DataItemRenderer;
+
+ /**
+ * The DataItemRendererFactoryForColumnData class implents the
+ * org.apache.flex.core.IDataProviderItemRendererMapper interface and creates the itemRenderers
+ * for each cell in the org.apache.flex.html.staticControls.DataGrid.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DataItemRendererFactoryForColumnData implements IBead, IDataProviderItemRendererMapper
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DataItemRendererFactoryForColumnData()
+ {
+ }
+
+ private var selectionModel:IDataGridModel;
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+ selectionModel = value.getBeadByType(IDataGridModel) as IDataGridModel;
+ var listView:IListView = value.getBeadByType(IListView) as IListView;
+ dataGroup = listView.dataGroup;
+ selectionModel.addEventListener("dataProviderChanged", dataProviderChangeHandler);
+
+ if (!itemRendererFactory)
+ {
+ _itemRendererFactory = new (ValuesManager.valuesImpl.getValue(_strand, "iItemRendererClassFactory")) as IItemRendererClassFactory;
+ _strand.addBead(_itemRendererFactory);
+ }
+
+ dataProviderChangeHandler(null);
+ }
+
+ private var _itemRendererFactory:IItemRendererClassFactory;
+
+ /**
+ * The factory used to create the itemRenderers.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get itemRendererFactory():IItemRendererClassFactory
+ {
+ return _itemRendererFactory
+ }
+ public function set itemRendererFactory(value:IItemRendererClassFactory):void
+ {
+ _itemRendererFactory = value;
+ }
+
+ /**
+ * The dataGroup that is the pareent for the itemRenderers
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ protected var dataGroup:IItemRendererParent;
+
+ /**
+ * @private
+ */
+ 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:DataItemRenderer = itemRendererFactory.createItemRenderer(dataGroup) as DataItemRenderer;
+ tf.index = i;
+ tf.labelField = view.column.dataField;
+ dataGroup.addElement(tf);
+ tf.data = dp[i];
+ }
+
+ IEventDispatcher(_strand).dispatchEvent(new Event("itemsCreated"));
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateChooserView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateChooserView.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateChooserView.as
new file mode 100644
index 0000000..12cc8f5
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateChooserView.as
@@ -0,0 +1,257 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.html.staticControls.beads.models.DateChooserModel;
+ import org.apache.flex.html.staticControls.supportClasses.DateChooserButton;
+
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IBeadView;
+ 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.staticControls.beads.layouts.TileLayout;
+ import org.apache.flex.html.staticControls.Container;
+ import org.apache.flex.html.staticControls.TextButton;
+
+ /**
+ * The DateChooserView class is a view bead for the DateChooser. This class
+ * creates the elements for the DateChooser: the buttons to move between
+ * months, the labels for the days of the week, and the buttons for each day
+ * of the month.
+ */
+ public class DateChooserView implements IBeadView
+ {
+ /**
+ * constructor
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DateChooserView()
+ {
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ // make sure there is a model.
+ model = _strand.getBeadByType(IBeadModel) as DateChooserModel;
+ if (model == null) {
+ model = new (ValuesManager.valuesImpl.getValue(_strand,"iBeadModel")) as DateChooserModel;
+ }
+ model.addEventListener("displayedMonthChanged",handleModelChange);
+ model.addEventListener("displayedYearChanged",handleModelChange);
+
+ createChildren();
+ }
+
+ private var _prevMonthButton:TextButton;
+ private var _nextMonthButton:TextButton;
+ private var _dayButtons:Array;
+ private var monthLabel:TextButton;
+ private var dayContainer:Container;
+
+ private var model:DateChooserModel;
+
+ /**
+ * The button that causes the previous month to be displayed by the DateChooser.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get prevMonthButton():TextButton
+ {
+ return _prevMonthButton;
+ }
+
+ /**
+ * The button that causes the next month to be displayed by the DateChooser.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get nextMonthButton():TextButton
+ {
+ return _nextMonthButton;
+ }
+
+ /**
+ * The array of DateChooserButton instances that represent each day of the month.
+ */
+ public function get dayButtons():Array
+ {
+ return _dayButtons;
+ }
+
+ /**
+ * @private
+ */
+ private function createChildren():void
+ {
+ _prevMonthButton = new TextButton();
+ _prevMonthButton.width = 40;
+ _prevMonthButton.height = 20;
+ _prevMonthButton.x = 0;
+ _prevMonthButton.y = 0;
+ _prevMonthButton.text = "<";
+ UIBase(_strand).addElement(_prevMonthButton);
+
+ _nextMonthButton = new TextButton();
+ _nextMonthButton.width = 40;
+ _nextMonthButton.height = 20;
+ _nextMonthButton.x = UIBase(_strand).width - _nextMonthButton.width;
+ _nextMonthButton.y = 0;
+ _nextMonthButton.text = ">";
+ UIBase(_strand).addElement(_nextMonthButton);
+
+ monthLabel = new TextButton();
+ monthLabel.text = "Month Here";
+ monthLabel.width = 100;
+ monthLabel.height = 20;
+ monthLabel.x = (UIBase(_strand).width - monthLabel.width)/2;
+ monthLabel.y = 0;
+ UIBase(_strand).addElement(monthLabel);
+
+ dayContainer = new Container();
+ var tileLayout:TileLayout = new TileLayout();
+ dayContainer.addBead(tileLayout);
+ tileLayout.numColumns = 7;
+ dayContainer.x = 0;
+ dayContainer.y = monthLabel.y + monthLabel.height + 5;
+
+ var sw:Number = UIBase(_strand).width;
+ var sh:Number = UIBase(_strand).height;
+ trace("Strand's width x height is "+sw+" x "+sh);
+ dayContainer.width = sw;
+ dayContainer.height = sh - (monthLabel.height+5);
+
+ // the calendar has 7 columns with 6 rows, the first row are the day names
+ for(var i:int=0; i < 7; i++) {
+ var dayName:DateChooserButton = new DateChooserButton();
+ dayName.text = model.dayNames[i];
+ dayName.dayOfMonth = 0;
+ dayContainer.addElement(dayName);
+ }
+
+ _dayButtons = new Array();
+
+ for(i=0; i < 42; i++) {
+ var date:DateChooserButton = new DateChooserButton();
+ date.text = String(i+1);
+ dayContainer.addElement(date);
+ dayButtons.push(date);
+ }
+
+ UIBase(_strand).addElement(dayContainer);
+
+ IEventDispatcher(dayContainer).dispatchEvent( new Event("itemsCreated") );
+ IEventDispatcher(_strand).dispatchEvent( new Event("layoutNeeded") );
+ IEventDispatcher(dayContainer).dispatchEvent( new Event("layoutNeeded") );
+
+ updateCalendar();
+ }
+
+ /**
+ * @private
+ */
+ private function updateCalendar():void
+ {
+ monthLabel.text = model.monthNames[model.displayedMonth] + " " +
+ String(model.displayedYear);
+
+ var firstDay:Date = new Date(model.displayedYear,model.displayedMonth,1);
+
+ // blank out the labels for the first firstDay.day-1 entries.
+ for(var i:int=0; i < firstDay.getDay(); i++) {
+ var dateButton:DateChooserButton = dayButtons[i] as DateChooserButton;
+ dateButton.dayOfMonth = -1;
+ dateButton.text = "";
+ }
+
+ // renumber to the last day of the month
+ var dayNumber:int = 1;
+ var numDays:Number = numberOfDaysInMonth(model.displayedMonth, model.displayedYear);
+
+ for(; i < dayButtons.length && dayNumber <= numDays; i++) {
+ dateButton = dayButtons[i] as DateChooserButton;
+ dateButton.dayOfMonth = dayNumber;
+ dateButton.text = String(dayNumber++);
+ }
+
+ // blank out the rest
+ for(; i < dayButtons.length; i++) {
+ dateButton = dayButtons[i] as DateChooserButton;
+ dateButton.dayOfMonth = -1;
+ dateButton.text = "";
+ }
+ }
+
+ /**
+ * @private
+ */
+ private function numberOfDaysInMonth(month:Number, year:Number):Number
+ {
+ var n:int;
+
+ if (month == 1) // Feb
+ {
+ if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) // leap year
+ n = 29;
+ else
+ n = 28;
+ }
+
+ else if (month == 3 || month == 5 || month == 8 || month == 10)
+ n = 30;
+
+ else
+ n = 31;
+
+ return n;
+ }
+
+ /**
+ * @private
+ */
+ private function handleModelChange(event:Event):void
+ {
+ updateCalendar();
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateFieldView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateFieldView.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateFieldView.as
new file mode 100644
index 0000000..6a9008d
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/DateFieldView.as
@@ -0,0 +1,187 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.core.IBeadView;
+ import org.apache.flex.core.IDateChooserModel;
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IParent;
+ import org.apache.flex.core.IPopUpHost;
+ 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.utils.UIUtils;
+ import org.apache.flex.html.staticControls.DateChooser;
+ import org.apache.flex.html.staticControls.TextButton;
+ import org.apache.flex.html.staticControls.TextInput;
+
+ /**
+ * The DateFieldView class is a bead for DateField that creates the
+ * input and button controls. This class also handles the pop-up
+ * mechanics.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DateFieldView implements IBeadView
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DateFieldView()
+ {
+ }
+
+ private var _strand:IStrand;
+
+ private var _textInput:TextInput;
+ private var _button:TextButton;
+
+ /**
+ * The TextButton that triggers the display of the DateChooser pop-up.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get menuButton():TextButton
+ {
+ return _button;
+ }
+
+ /**
+ * The TextInput that displays the date selected.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get textInput():TextInput
+ {
+ return _textInput;
+ }
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ _textInput = new TextInput();
+ UIBase(_strand).addElement(_textInput);
+ _textInput.width = 100;
+ _textInput.height = 18;
+
+ _button = new TextButton();
+ _button.text = "M";
+ UIBase(_strand).addElement(_button);
+ _button.x = _textInput.width;
+ _button.y = _textInput.y;
+
+ IEventDispatcher(_strand).addEventListener("beadsAdded",handleBeadsAdded);
+ }
+
+ private function handleBeadsAdded(event:Event):void
+ {
+ var formatter:IFormatBead = _strand.getBeadByType(IFormatBead) as IFormatBead;
+ formatter.addEventListener("formatChanged",handleFormatChanged);
+ }
+
+ private function handleFormatChanged(event:Event):void
+ {
+ var formatter:IFormatBead = event.target as IFormatBead;
+ _textInput.text = formatter.formattedString;
+ }
+
+ private var _popUp:DateChooser;
+
+ /**
+ * The pop-up component that holds the selection list.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get popUp():DateChooser
+ {
+ return _popUp;
+ }
+
+ private var _popUpVisible:Boolean;
+
+ /**
+ * This property is true if the pop-up selection list is currently visible.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function get popUpVisible():Boolean
+ {
+ return _popUpVisible;
+ }
+ public function set popUpVisible(value:Boolean):void
+ {
+ if (value != _popUpVisible)
+ {
+ _popUpVisible = value;
+ if (value)
+ {
+ if (!_popUp)
+ {
+ _popUp = new DateChooser();
+ _popUp.width = 210;
+ _popUp.height = 220;
+ _popUp.x = UIBase(_strand).x;
+ _popUp.y = UIBase(_strand).y + 30;
+ }
+
+ var model:IDateChooserModel = _strand.getBeadByType(IDateChooserModel) as IDateChooserModel;
+ _popUp.selectedDate = model.selectedDate;
+
+ var host:IPopUpHost = UIUtils.findPopUpHost(UIBase(_strand));
+ host.addElement(_popUp);
+ }
+ else
+ {
+ UIUtils.removePopUp(_popUp);
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableLabelView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableLabelView.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableLabelView.as
new file mode 100644
index 0000000..1fc8e1a
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableLabelView.as
@@ -0,0 +1,90 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.IEventDispatcher;
+
+ /**
+ * The FormatableLabelView class is a View bead that is capable of working
+ * with a format bead to display a formatted value. When the format bead has
+ * created a formatted string, it dispatches a formatChanged event that the
+ * FormatableLabelView class intercepts and displays in the label.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class FormatableLabelView extends TextFieldView
+ {
+ /**
+ * constructor
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function FormatableLabelView()
+ {
+ super();
+ }
+
+ private var _formatter:IFormatBead;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
+ }
+
+ /**
+ * @private
+ */
+ private function handleBeadsAdded(event:Event):void
+ {
+ _formatter = strand.getBeadByType(IFormatBead) as IFormatBead;
+ _formatter.addEventListener("formatChanged",formatReadyHandler);
+
+ // process any text set in the label at this moment
+ text = _formatter.formattedString;
+ }
+
+ /**
+ * @private
+ */
+ private function formatReadyHandler(event:Event):void
+ {
+ if (_formatter) {
+ text = _formatter.formattedString;
+ }
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableTextInputView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableTextInputView.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableTextInputView.as
new file mode 100644
index 0000000..66fcab4
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/FormatableTextInputView.as
@@ -0,0 +1,89 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.core.IFormatBead;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.IEventDispatcher;
+
+ /**
+ * The FormatableTextInputView class is a View bead that extends TextInputWithBorderView
+ * and is capable of working with a format bead. When a format bead dispatches a
+ * formatChanged event, the FormatableTextInputView bead copies the formatted string to
+ * to the text field.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class FormatableTextInputView extends TextInputWithBorderView
+ {
+ /**
+ * constructor
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function FormatableTextInputView()
+ {
+ super();
+ }
+
+ private var _formatter:IFormatBead;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ override public function set strand(value:IStrand):void
+ {
+ super.strand = value;
+ IEventDispatcher(value).addEventListener("beadsAdded",handleBeadsAdded);
+ }
+
+ /**
+ * @private
+ */
+ private function handleBeadsAdded(event:Event):void
+ {
+ _formatter = strand.getBeadByType(IFormatBead) as IFormatBead;
+ _formatter.addEventListener("formatChanged",formatChangedHandler);
+ }
+
+ /**
+ * @private
+ */
+ private function formatChangedHandler(event:Event):void
+ {
+ this.textField.text = _formatter.formattedString;
+
+ // move the cursor to the end
+ var l:int = this.textField.text.length;
+ this.textField.setSelection(l,l);
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/IDataGridView.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/IDataGridView.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/IDataGridView.as
new file mode 100644
index 0000000..f359337
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/IDataGridView.as
@@ -0,0 +1,36 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads
+{
+ import org.apache.flex.core.IBeadView;
+
+ /**
+ * The IDataGridView interface marks as a component as being the bead that
+ * can create the visual pieces for a org.apache.flex.html.staticControls.DataGrid.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public interface IDataGridView extends IBeadView
+ {
+
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5759d50b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/controllers/DateChooserMouseController.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/controllers/DateChooserMouseController.as b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/controllers/DateChooserMouseController.as
new file mode 100644
index 0000000..69343eb
--- /dev/null
+++ b/frameworks/as/projects/FlexJSJX/src/org/apache/flex/html/beads/controllers/DateChooserMouseController.as
@@ -0,0 +1,126 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.staticControls.beads.controllers
+{
+ import org.apache.flex.html.staticControls.beads.DateChooserView;
+ import org.apache.flex.html.staticControls.beads.models.DateChooserModel;
+ import org.apache.flex.html.staticControls.supportClasses.DateChooserButton;
+
+ import org.apache.flex.core.IBeadController;
+ import org.apache.flex.core.IBeadModel;
+ import org.apache.flex.core.IBeadView;
+ import org.apache.flex.core.IStrand;
+ import org.apache.flex.events.Event;
+ import org.apache.flex.events.IEventDispatcher;
+
+ /**
+ * The DateChooserMouseController class is responsible for listening to
+ * mouse event related to the DateChooser. Events such as selecting a date
+ * or changing the calendar.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public class DateChooserMouseController implements IBeadController
+ {
+ /**
+ * constructor.
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function DateChooserMouseController()
+ {
+ }
+
+ private var _strand:IStrand;
+
+ /**
+ * @copy org.apache.flex.core.IBead#strand
+ *
+ * @langversion 3.0
+ * @playerversion Flash 10.2
+ * @playerversion AIR 2.6
+ * @productversion FlexJS 0.0
+ */
+ public function set strand(value:IStrand):void
+ {
+ _strand = value;
+
+ var view:DateChooserView = value.getBeadByType(IBeadView) as DateChooserView;
+ view.prevMonthButton.addEventListener("click", prevMonthClickHandler);
+ view.nextMonthButton.addEventListener("click", nextMonthClickHandler);
+
+ var dayButtons:Array = view.dayButtons;
+ for(var i:int=0; i < dayButtons.length; i++) {
+ IEventDispatcher(dayButtons[i]).addEventListener("click", dayButtonClickHandler);
+ }
+ }
+
+ /**
+ * @private
+ */
+ private function prevMonthClickHandler(event:Event):void
+ {
+ var model:DateChooserModel = _strand.getBeadByType(IBeadModel) as DateChooserModel;
+ var month:Number = model.displayedMonth - 1;
+ var year:Number = model.displayedYear;
+ if (month < 0) {
+ month = 11;
+ year--;
+ }
+ model.displayedMonth = month;
+ model.displayedYear = year;
+ }
+
+ /**
+ * @private
+ */
+ private function nextMonthClickHandler(event:Event):void
+ {
+ var model:DateChooserModel = _strand.getBeadByType(IBeadModel) as DateChooserModel;
+ var month:Number = model.displayedMonth + 1;
+ var year:Number = model.displayedYear;
+ if (month >= 12) {
+ month = 0;
+ year++;
+ }
+ model.displayedMonth = month;
+ model.displayedYear = year;
+ }
+
+ /**
+ * @private
+ */
+ private function dayButtonClickHandler(event:Event):void
+ {
+ var dateButton:DateChooserButton = event.target as DateChooserButton;
+ if (dateButton.dayOfMonth > 0) {
+ var model:DateChooserModel = _strand.getBeadByType(IBeadModel) as DateChooserModel;
+ var newDate:Date = new Date(model.displayedYear,model.displayedMonth,dateButton.dayOfMonth);
+ model.selectedDate = newDate;
+ IEventDispatcher(_strand).dispatchEvent( new Event("change") );
+ }
+ }
+ }
+}
\ No newline at end of file