| <?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. |
| // |
| //////////////////////////////////////////////////////////////////////////////// |
| --> |
| <itemRenderers:MenuCoreItemRenderer |
| xmlns:fx="http://ns.adobe.com/mxml/2009" |
| xmlns:s="library://ns.adobe.com/flex/spark" |
| xmlns:itemRenderers="spark.components.itemRenderers.*" |
| autoDrawBackground="{!isSeparator}" |
| minWidth="150" minHeight="20" |
| useHandCursor="true" mouseChildren="false" buttonMode="true"> |
| <s:Group visible="{!isSeparator}" includeInLayout="{!isSeparator}" left="0" right="0" height="100%"> |
| <s:BitmapImage left="0" top="0" id="icon" source="{iconSource}" includeInLayout="{hasIcon}" visible="{hasIcon}"/> |
| <s:Label id="labelDisplay" left="16" right="10" height="100%" verticalAlign="middle"/> |
| <s:Group id="menuIcon" visible="{dataProvider.length > 0}" right="3" top="5"> |
| <s:Path data="M 0 2 L 6 6 L 0 10 L 0 2"> |
| <s:fill> |
| <s:SolidColor color="0x000000"/> |
| </s:fill> |
| </s:Path> |
| </s:Group> |
| <s:Group id="checkIcon" visible="{isChecked}" includeInLayout="{isCheckable}" right="3" top="5"> |
| <s:Path left="2" top="0" |
| data="M 9.2 0.1 L 4.05 6.55 L 3.15 5.0 L 0.05 5.0 L 4.6 9.7 L 12.05 0.1 L 9.2 0.1"> |
| <s:fill> |
| <s:SolidColor color="0" alpha="0.8"/> |
| </s:fill> |
| </s:Path> |
| </s:Group> |
| </s:Group> |
| |
| |
| <s:Group id="separator" |
| includeInLayout="{isSeparator}" |
| visible="{isSeparator}" left="0" right="0" verticalCenter="0"> |
| <s:Rect left="0" right="0" height="1"> |
| <s:fill> |
| <s:SolidColor color="0x4F4F4F"/> |
| </s:fill> |
| </s:Rect> |
| </s:Group> |
| <fx:Script> |
| <![CDATA[ |
| override public function get isSubMenuRenderer():Boolean { |
| return true; |
| } |
| ]]> |
| </fx:Script> |
| </itemRenderers:MenuCoreItemRenderer> |