| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> |
| <fx:Declarations> |
| <!-- Place non-visual elements (e.g., services, value objects) here --> |
| </fx:Declarations> |
| <s:Label x="50" y="50" color="maroon" fontSize="20" fontWeight="bold" |
| text="XYZ Corporation Directory"/> |
| <s:Button id="empBtn" x="50" y="100" label="Employees"/> |
| <s:Button id="deptBtn" x="140" y="100" label="Departments"/> |
| <s:DataGrid id="empDg" x="50" y="130" requestedRowCount="4"> |
| <s:columns> |
| <s:ArrayList> |
| <s:GridColumn dataField="dataField1" headerText="Column 1"></s:GridColumn> |
| <s:GridColumn dataField="dataField2" headerText="Column 2"></s:GridColumn> |
| <s:GridColumn dataField="dataField3" headerText="Column 3"></s:GridColumn> |
| </s:ArrayList> |
| </s:columns> |
| <s:typicalItem> |
| <fx:Object dataField1="Sample Data" dataField2="Sample Data" dataField3="Sample Data"></fx:Object> |
| </s:typicalItem> |
| <s:ArrayList> |
| <fx:Object dataField1="data1" dataField2="data1" dataField3="data1"></fx:Object> |
| <fx:Object dataField1="data2" dataField2="data2" dataField3="data2"></fx:Object> |
| <fx:Object dataField1="data3" dataField2="data3" dataField3="data3"></fx:Object> |
| <fx:Object dataField1="data4" dataField2="data4" dataField3="data4"></fx:Object> |
| </s:ArrayList> |
| </s:DataGrid> |
| </s:Application> |