1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009" minWidth="13" minHeight="35"
alpha.disabled="0.5" alpha.inactive="0.5" >
<fx:Metadata>
<![CDATA[
/**
* @copy spark.skins.spark.ApplicationSkin#hostComponent
*/
[HostComponent("spark.components.VScrollBar")]
]]>
</fx:Metadata>
<fx:Script fb:purpose="styling">
/* Define the skin elements that should not be colorized.
For scroll bar, the skin itself is colorized but the individual parts are not. */
static private const exclusions:Array = ["track", "thumb", "decrementButton", "incrementButton"];
/**
* @private
*/
override public function get colorizeExclusions():Array {return exclusions;}
/**
* @private
*/
override protected function initializationComplete():void
{
useChromeColor = true;
super.initializationComplete();
}
</fx:Script>
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
<s:State name="inactive" />
</s:states>
<!--- The default skin class is VScrollBarTrackSkin.
@copy spark.components.supportClasses.TrackBase#track
@see spark.skins.spark.VScrollBarTrackSkin -->
<s:Button id="track" top="13" bottom="13" height="54" width="13"
focusEnabled="false" tabEnabled="false"
skinClass="org.pkg.skins.ScrollerTrackSkin" />
<!--- The default skin class is VScrollBarThumbSkin.
@copy spark.components.supportClasses.TrackBase#thumb
@see spark.skins.spark.VScrollBarThumbSkin -->
<s:Button id="thumb" width="13"
focusEnabled="false" visible.inactive="false" tabEnabled="false"
skinClass="org.pkg.skins.ScrollerThumbSkin" />
<!--- The default skin class is ScrollBarUpButtonSkin.
@copy spark.components.supportClasses.ScrollBarBase#decrementButton
@see spark.skins.spark.ScrollBarUpButtonSkin -->
<s:Button id="decrementButton" top="0" enabled.inactive="false"
focusEnabled="false" tabEnabled="false"
skinClass="org.pkg.skins.ScrollerLeftButtonSkin" />
<!--- The default skin class is ScrollBarDownButtonSkin.
@copy spark.components.supportClasses.ScrollBarBase#incrementButton
@see spark.skins.spark.ScrollBarDownButtonSkin -->
<s:Button id="incrementButton" bottom="0" enabled.inactive="false"
focusEnabled="false" tabEnabled="false"
skinClass="org.pkg.skins.ScrollerRightButtonSkin" />
</s:SparkSkin> |
Partager