This is an automated email from the ASF dual-hosted git repository. carlosrovira pushed a commit to branch feature/jewel-datagrid in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit d7207033841370dfc61282f9ba7ca3d0e51294fe Author: Carlos Rovira <[email protected]> AuthorDate: Wed Nov 27 18:20:19 2019 +0100 jewel-datagrid: Add DataGridButoonBar --- .../projects/Jewel/src/main/resources/defaults.css | 2 +- .../Jewel/src/main/resources/jewel-manifest.xml | 1 + .../royale/jewel/beads/views/DataGridView.as | 2 +- .../supportClasses/datagrid/DataGridButtonBar.as | 53 ++++++++++++++++++++++ .../Jewel/src/main/sass/components/_datagrid.sass | 2 +- 5 files changed, 57 insertions(+), 3 deletions(-) diff --git a/frameworks/projects/Jewel/src/main/resources/defaults.css b/frameworks/projects/Jewel/src/main/resources/defaults.css index c17f22c..752ea60 100644 --- a/frameworks/projects/Jewel/src/main/resources/defaults.css +++ b/frameworks/projects/Jewel/src/main/resources/defaults.css @@ -494,7 +494,7 @@ j|DataGrid { IBeadModel: ClassReference("org.apache.royale.html.beads.models.DataGridCollectionViewModel"); IBeadLayout: ClassReference("org.apache.royale.jewel.beads.layouts.DataGridLayout"); columnClass: ClassReference("org.apache.royale.jewel.supportClasses.datagrid.DataGridColumnList"); - columnContainerClass: ClassReference("org.apache.royale.html.DataGridButtonBar"); + columnContainerClass: ClassReference("org.apache.royale.jewel.supportClasses.datagrid.DataGridButtonBar"); columnLayoutClass: ClassReference("org.apache.royale.html.beads.layouts.ButtonBarLayout"); listAreaClass: ClassReference("org.apache.royale.jewel.supportClasses.datagrid.DataGridListArea"); } diff --git a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml index aecc645..7d7dfc1 100644 --- a/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml +++ b/frameworks/projects/Jewel/src/main/resources/jewel-manifest.xml @@ -46,6 +46,7 @@ <component id="DataGrid" class="org.apache.royale.jewel.DataGrid"/> <component id="DataGridColumn" class="org.apache.royale.jewel.supportClasses.datagrid.DataGridColumn"/> <component id="DataGridListArea" class="org.apache.royale.jewel.supportClasses.datagrid.DataGridListArea"/> + <component id="DataGridButtonBar" class="org.apache.royale.jewel.supportClasses.datagrid.DataGridButtonBar"/> <component id="ButtonBarItemRenderer" class="org.apache.royale.jewel.itemRenderers.ButtonBarItemRenderer"/> <component id="SimpleButton" class="org.apache.royale.jewel.supportClasses.button.SimpleButton"/> diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as index a62aac7..1916204 100644 --- a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/views/DataGridView.as @@ -32,12 +32,12 @@ package org.apache.royale.jewel.beads.views import org.apache.royale.debugging.assert; import org.apache.royale.events.Event; import org.apache.royale.events.IEventDispatcher; - import org.apache.royale.html.DataGridButtonBar; import org.apache.royale.html.beads.GroupView; import org.apache.royale.html.beads.IDataGridView; import org.apache.royale.html.beads.layouts.ButtonBarLayout; import org.apache.royale.html.supportClasses.IDataGridColumnList; import org.apache.royale.jewel.supportClasses.Viewport; + import org.apache.royale.jewel.supportClasses.datagrid.DataGridButtonBar; import org.apache.royale.jewel.supportClasses.datagrid.IDataGridColumn; /** diff --git a/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/datagrid/DataGridButtonBar.as b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/datagrid/DataGridButtonBar.as new file mode 100644 index 0000000..2e6f854 --- /dev/null +++ b/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/supportClasses/datagrid/DataGridButtonBar.as @@ -0,0 +1,53 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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.royale.jewel.supportClasses.datagrid +{ + import org.apache.royale.jewel.ButtonBar; + + COMPILE::JS + { + import org.apache.royale.core.WrappedHTMLElement; + } + + /** + * The DataGridButtonBar class extends ButtonBar and provides a class for styling + * the header region of the DataGrid. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.9.7 + */ + public class DataGridButtonBar extends ButtonBar + { + /** + * constructor. + * + * @langversion 3.0 + * @playerversion Flash 10.2 + * @playerversion AIR 2.6 + * @productversion Royale 0.9.7 + */ + public function DataGridButtonBar() + { + super(); + typeNames = "jewel dataGridButtonBar"; + } + } +} diff --git a/frameworks/projects/Jewel/src/main/sass/components/_datagrid.sass b/frameworks/projects/Jewel/src/main/sass/components/_datagrid.sass index 86d3185..7523558 100644 --- a/frameworks/projects/Jewel/src/main/sass/components/_datagrid.sass +++ b/frameworks/projects/Jewel/src/main/sass/components/_datagrid.sass @@ -39,7 +39,7 @@ j|DataGrid IBeadModel: ClassReference("org.apache.royale.html.beads.models.DataGridCollectionViewModel") IBeadLayout: ClassReference("org.apache.royale.jewel.beads.layouts.DataGridLayout") columnClass: ClassReference("org.apache.royale.jewel.supportClasses.datagrid.DataGridColumnList") - columnContainerClass: ClassReference("org.apache.royale.html.DataGridButtonBar") + columnContainerClass: ClassReference("org.apache.royale.jewel.supportClasses.datagrid.DataGridButtonBar") columnLayoutClass: ClassReference("org.apache.royale.html.beads.layouts.ButtonBarLayout") listAreaClass: ClassReference("org.apache.royale.jewel.supportClasses.datagrid.DataGridListArea")
