メソッド | プロパティ | エフェクト | イベント | スタイル | フレームあり | フレームなし

mx.controls
VScrollBar クラス

継承を示す線継承を示す線継承を示す線


VScrollBar クラス
mx.controls.scrollClasses.ScrollBar の拡張

VScrollBar (垂直の ScrollBar) コントロールを使用すると、データが多すぎて表示領域に収まらない場合に、表示される部分のデータを制御できます。このコントロールは、基本の ScrollBar コントロールをラップしたものです。

VScrollBar コントロールは単独のコントロールとしても使用できますが、通常は他のコンポーネントと組み合わせ、スクロール機能を持つ新しいコンポーネントの一部として使用します。

ScrollBar コントロールは、2 つの矢印ボタン、1 つのトラック、および 1 つのサムの 4 つの部分から構成されます。サムの位置とボタンの表示は、ScrollBar コントロールの現在の状態に依存します。ScrollBar コントロールでは、表示状態を計算するために次の 4 つのパラメータが使用されます。

MXML シンタックス

<mx:VScrollBar> タグは、親クラスのすべてのプロパティと、次のプロパティを継承します。

 <mx:VScrollBar
lineScrollSize="1"
pageScrollSize="No default."
repeatDelay="500"
repeatInterval="35"
scrollPosition="0"
scroll="Event handler; no default."
/>

を参照するにはここをクリックしてください

関連項目
    scrollClasses.ScrollBar



メソッド

mx.controls.scrollClasses.ScrollBar クラスから継承されるメソッド
setScrollProperties  

mx.core.UIComponent クラスから継承されるメソッド
drawFocus   getFocus   getFocusManager   setEnabled   setFocus  

mx.core.UIObject クラスから継承されるメソッド
addEventListener   applyProperties   buildDepthTable   commitProperties   constructObject2   createAccessibilityImplementation   createChildAtDepth   createChildren   createClassChildAtDepth   createClassObject   createEmptyObject   destroyObject   dispatchEvent   doLater   draw   drawRect   executeBindings   fillRect   findNextAvailableDepth   getRepeaterItem   getStyle   handleEvent   init   invalidate   invalidateLayout   invalidateProperties   invalidateSize   invalidateStyle   layoutChildren   measure   move   redraw   removeEventListener   setDepthAbove   setDepthBelow   setMask   setSize   setSizeNoLayout   setStyle   swapDepths  



プロパティ
       className:String
このクラスの名前です。
staticversion:String
このクラスのバージョンを表すストリングです。

mx.controls.scrollClasses.ScrollBar クラスから継承されるプロパティ
className   lineScrollSize   maxPos   minPos   pageScrollSize   pageSize   scrollPosition  

mx.core.UIComponent クラスから継承されるプロパティ
enabled   errorString   tabEnabled   tabIndex   version  

mx.core.UIObject クラスから継承されるプロパティ
alpha   baselinePosition   className   depth   documentDescriptor   height   heightFlex   id   instanceIndices   isDocument   kStretch   layoutHeight   layoutWidth   maxHeight   maxWidth   minHeight   minWidth   mouseX   mouseY   nestLevel   oldHeight   oldWidth   oldX   oldY   parent   parentApplication   parentDocument   percentHeight   percentWidth   preferredHeight   preferredWidth   repeaterIndices   scaleX   scaleY   styleName   tabEnabled   toolTip   version   visible   width   widthFlex   x   y  



エフェクト

mx.core.UIComponent クラスから継承されるエフェクト
focusInEffect   focusOutEffect  

mx.core.UIObject クラスから継承されるエフェクト
creationCompleteEffect   hideEffect   mouseDownEffect   mouseOutEffect   mouseOverEffect   mouseUpEffect   moveEffect   resizeEffect   showEffect  



イベント
scrollScrollBar コントロールの状態が変化したときにブロードキャストする scroll イベントのハンドラです。このイベントオブジェクトの target プロパティには、イベントをトリガしたコンポーネントへの参照が含まれます。type プロパティには、イベントの名前 scroll が含まれます。

mx.core.UIComponent クラスから継承されるイベント
focusIn  focusOut  invalid  keyDown  keyUp  valid  valueCommitted 

mx.core.UIObject クラスから継承されるイベント
creationComplete  dragComplete  dragDrop  dragEnter  dragExit  dragOver  draw  effectEnd  effectStart  hide  hideToolTip  initialize  load  mouseChangeSomewhere  mouseDown  mouseDownSomewhere  mouseMove  mouseMoveSomewhere  mouseOut  mouseOver  mouseUp  mouseUpSomewhere  move  resize  show  showToolTip  unload 



スタイル
repeatDelay型 : Number   形式 : Time   CSS の継承 : なし
最初の buttonDown イベントが発生してから、repeatInterval の間隔で buttonDown イベントが繰り返し発生し始めるまでの時間 (ミリ秒) です。デフォルト値は 500 です。
repeatInterval型 : Number   CSS の継承 : なし
ユーザーがボタンを押し続けた場合に、buttonDown イベントを繰り返す間隔 (ミリ秒) です。デフォルト値は 35 です。

mx.controls.scrollClasses.ScrollBar クラスから継承されるスタイル
trackColors  

mx.core.UIComponent クラスから継承されるスタイル
backgroundAlpha   backgroundColor   backgroundDisabledColor   backgroundImage   backgroundSize   barColor   borderCapColor   borderColor   borderSides   borderStyle   borderThickness   cornerRadius   disabledColor   dropShadow   errorColor   fillColors   highlightColor   modalTransparency   scrollTrackColor   selectedFillColors   shadowCapColor   shadowColor   shadowDirection   shadowDistance   symbolBackgroundColor   symbolBackgroundDisabledColor   symbolBackgroundPressedColor   symbolColor   symbolDisabledColor   themeColor  

mx.core.UIObject クラスから継承されるスタイル
color   fontFamily   fontSize   fontStyle   fontWeight   horizontalGap   leading   marginLeft   marginRight   textAlign   textDecoration   textIndent   verticalGap  



プロパティの詳細

className

className:String  

このクラスの名前です。


version

static  version:String  

このクラスのバージョンを表すストリングです。


VScrollBarExample.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- VScrollBar コントロールの使用方法を示す簡単な例 -->
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">
 
<mx:Script>
<![CDATA[
       
function myScroll(event)
           {
showPosition.text = "VScrollBar properties summary:"+ '\n' +
"------------------------------------" + '\n' +
"A number that represents the current scroll position:" + event.scrollPosition  + '\n' +
"Amount to scroll when an arrow button is pressed:" + event.lineScrollSize + '\n' +
"Amount to move the scroll when the scroll bar track is pressed:" + event.pageScrollSize + '\n' +
"A number which represents the maximum scroll position:" + event.maxPos + '\n' +
"A number which represents the minimum scroll position:" + event.minPos ;
           }
    ]]>
</mx:Script> 
  
<mx:Panel id="panel" title="Vertical Scrollbar Panel" hScrollPolicy="off" vScrollPolicy="off" height="85%" width="80%">
     
	 <mx:HBox height="100%" width="100%">
       
	    <mx:VScrollBar id="bar" minPos="0" lineScrollSize="50" pageScrollSize="100" height="100%" maxPos="{panel.height - 20}" 
scroll="myScroll(event.target);" repeatDelay="1000" repeatInterval="500" />
          
<mx:Label id="showPosition" text="click on scroll bar to view its properties." color="#0000FF" />
    
	</mx:HBox>   
  
</mx:Panel>
  
</mx:Application>