blob: 51282420f5c5041fdbb9f8b64bca73cca4e972f9 [file] [log] [blame]
<?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:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Measure">
<!-- Ensure measure isn't called unnecessarily: SDK-27642 -->
<fx:Script>
<![CDATA[
import skins.MeasureButtonSkin;
import skins.MeasureVScrollBarSkin;
import renderers.MeasureIconItemRenderer;
protected function showMeasures(event:MouseEvent):void
{
trace("Button", getButtonSkinString());
trace("VScrollBar", getVScrollBarSkinString());
trace("IconItemRenderer", getIconItemRendererString());
}
public function getButtonSkinString():String {
return MeasureButtonSkin.outputString;
}
public function getVScrollBarSkinString():String {
return MeasureVScrollBarSkin.outputString;
}
public function getIconItemRendererString():String {
return MeasureIconItemRenderer.outputString;
}
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout />
</s:layout>
<s:Button label="Measure Button" skinClass="skins.MeasureButtonSkin" />
<s:VScrollBar skinClass="skins.MeasureVScrollBarSkin" />
<s:List itemRenderer="renderers.MeasureIconItemRenderer" typicalItem="-1">
<s:dataProvider>
<s:ArrayList>
<fx:String>0</fx:String>
</s:ArrayList>
</s:dataProvider>
</s:List>
<s:Button label="trace results" click="showMeasures(event)" />
</s:View>