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

mx.controls
SimpleButton クラス

継承を示す線継承を示す線
直接の既知のサブクラス
           mx.controls.Buttonmx.controls.sliderclasses.SliderThumb

SimpleButton クラス
mx.core.UIComponent の拡張

SimpleButton コントロールは、サイズ変更の必要がないボタンを作成します。SimpleButton コントロールではテキストラベルをサポートしています。また、MXML でスキンプロパティを指定できる唯一のコントロールでもあります。

MXML シンタックス

SimpleButton クラスは、親クラスのすべてのプロパティと、次のプロパティを継承します。

 <mx:SimpleButton
selected="true|false"
toggle="true|false"
falseUpSkin="SimpleButtonUp"
falseDownSkin="SimpleButtonIn"
falseOverSkin="No default."
falseDisabledSkin="SimpleButtonUp"
trueUpSkin="SimpleButtonIn"
trueDownSkin="No default."
trueOverSkin="No default."
trueDisabledSkin="SimpleButtonIn"
buttonDown="Event handler; no default."
buttonDragOut="Event handler; no default."
click="Event handler; no default."
/>



メソッド

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  



プロパティ
       falseDisabledSkin:String
無効状態用のスキンを指定します。
       falseDownSkin:String
ダウン状態用のスキンを指定します。
       falseOverSkin:String
オーバー状態用のスキンを指定します。
       falseUpSkin:String
アップ状態用のスキンを指定します。
       selected:Boolean
true の場合、ユーザーがボタンをクリックしたことを示します。
       toggle:Boolean
true の場合、ユーザーがボタンをクリックして押したままでいることを示します。
       trueDisabledSkin:String
トグルの無効状態用のスキンを指定します。
       trueDownSkin:String
トグルのダウン状態用のスキンを指定します。
       trueOverSkin:String
トグルのオーバー状態用のスキンを指定します。
       trueUpSkin:String
トグル状態用のスキンを指定します。
staticversion:String
このクラスのバージョンを表すストリングです。

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  



イベント
buttonDownユーザーが Button コントロールをクリックしたときにブロードキャストします。ユーザーが Button コントロールを離したときには click イベントが発生します。このイベントオブジェクトの target プロパティには、イベントをトリガしたコンポーネントへの参照が含まれます。type プロパティには、イベントの名前 buttonDown が含まれます。
buttonDragOutユーザーが Button コントロールをクリックし、それからマウスポインタをコントロールの外にドラッグしたときにブロードキャストします。このイベントオブジェクトの target プロパティには、イベントをトリガしたコンポーネントへの参照が含まれます。type プロパティには、イベントの名前 buttonDragOut が含まれます。
clickユーザーがボタンをクリックしたときにブロードキャストされます。このイベントオブジェクトの target プロパティには、イベントをトリガしたコンポーネントへの参照が含まれます。type プロパティには、イベントの名前 click が含まれます。

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   形式 : Time   CSS の継承 : なし
ユーザーがボタンを押し続けた場合に、buttonDown イベントを繰り返す間隔 (ミリ秒) です。デフォルト値は 35 です。

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  



プロパティの詳細

falseDisabledSkin

falseDisabledSkin:String  

無効状態用のスキンを指定します。デフォルト値は SimpleButtonUp です。


falseDownSkin

falseDownSkin:String  

ダウン状態用のスキンを指定します。デフォルト値は SimpleButtonIn です。


falseOverSkin

falseOverSkin:String  

オーバー状態用のスキンを指定します。デフォルト値はありません。


falseUpSkin

falseUpSkin:String  

アップ状態用のスキンを指定します。デフォルト値は SimpleButtonUp です。


selected

selected:Boolean  

true の場合、ユーザーがボタンをクリックしたことを示します。


toggle

toggle:Boolean  

true の場合、ユーザーがボタンをクリックして押したままでいることを示します。


trueDisabledSkin

trueDisabledSkin:String  

トグルの無効状態用のスキンを指定します。デフォルト値は SimpleButtonIn です。


trueDownSkin

trueDownSkin:String  

トグルのダウン状態用のスキンを指定します。デフォルト値はありません。


trueOverSkin

trueOverSkin:String  

トグルのオーバー状態用のスキンを指定します。デフォルト値はありません。


trueUpSkin

trueUpSkin:String  

トグル状態用のスキンを指定します。デフォルト値は SimpleButtonIn です。


version

static  version:String  

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