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

mx.controls
List クラス

継承を示す線継承を示す線継承を示す線継承を示す線継承を示す線
直接の既知のサブクラス
           mx.controls.DataGridmx.controls.Tree

List クラス
mx.controls.listclasses.ScrollSelectList の拡張

List コントロールには、単一行アイテムの縦並びのリストが表示されます。その機能は、HTML の SELECT フォームエレメントによく似ています。通常は垂直スクロールバーを含みます。垂直スクロールバーは、リスト内のすべてのアイテムにアクセスするために使用されます。オプションの水平スクロールバーは、リストアイテムが水平方向に収まらない場合に、ユーザーがアイテムを表示するために使用します。multipleSelection プロパティの値に応じて、ユーザーはリストから単一または複数のアイテムを選択できます。

MXML シンタックス

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

 <mx:List
alternatingRowColors="No default."
change="Event handler; no default."
marginBotton="0"
marginTop="0"
rollOverColor="No default."
selectionColor="No default."
selectionDisabledColor="0xDDDDDD"
selectionEasing="No default."
textRollOverColor="0x2B333C"
textSelectedColor="0x05F33"
useRollOver="true|false"
/>

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

関連項目
    listclasses.ScrollSelectList;



メソッド

mx.controls.listclasses.ScrollSelectList クラスから継承されるメソッド
addItem   addItemAt   calculateWidths   clearSelected   createChildren   draw   fillRowsFromBottom   fillRowsFromTop   getDropLocation   getItemAt   hideDropFeedback   isSelected   layoutChildren   measure   removeAll   removeItemAt   replaceItemAt   setPropertiesAt   showDropFeedback   sortItems   sortItemsBy  

mx.core.ScrollView クラスから継承されるメソッド
childLoaded   createChildren   createChildWithStyles   getViewMetrics   init   layoutChildren   setScrollProperties  

mx.core.View クラスから継承されるメソッド
childLoaded   constructObject2   createChild   createChildren   destroyAllChildren   destroyChild   destroyChildAt   draw   getBorderMetrics   getChildAt   getChildIndex   getViewMetrics   init   layoutChildren   layoutChrome   setChildIndex  

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  



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

mx.controls.listclasses.ScrollSelectList クラスから継承されるプロパティ
cellRenderer   dataProvider   dataTipField   dataTipFunction   dragEnabled   dropIndicatorSkin   iconField   iconFunction   labelField   labelFunction   multipleSelection   rowCount   rowHeight   rowRenderer   selectable   selectedIndex   selectedIndices   selectedItem   selectedItems   showDataTips   value   variableRowHeight   verticalAlign   wordWrap  

mx.core.ScrollView クラスから継承されるプロパティ
className   hPosition   hScrollPolicy   liveScrolling   maxHPosition   maxVPosition   scrollTipFunction   showScrollTips   version   vPosition   vScrollPolicy  

mx.core.View クラスから継承されるプロパティ
baselinePosition   className   numChildren   version  

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  



イベント

mx.controls.listclasses.ScrollSelectList クラスから継承されるイベント
change  itemRollOut  itemRollOver 

mx.core.ScrollView クラスから継承されるイベント
scroll 

mx.core.View クラスから継承されるイベント
childCreated  childDestroyed  childIndexChanged 

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 



スタイル
alternatingRowColors 型 : Array   CSS の継承 : あり
切り替えパターンで行を表示する場合に使用する色です。値には、複数の色の配列を指定します。backgroundColor が指定されていない場合にのみ有効です。
marginBottom 型 : Number   形式 : Length   CSS の継承 : なし
アイテムの下端と、アイテム内のテキストの上端の間のピクセル数です。デフォルト値は 0 です。
marginTop 型 : Number   形式 : Length   CSS の継承 : なし
アイテムの上端と、アイテム内のテキストの上端の間のピクセル数です。デフォルト値は 0 です。
rollOverColor 型 : Number   形式 : Color   CSS の継承 : あり
ポインタがアイテム上に置かれたときのアイテムの背景色です。デフォルト値は 0xEFFD6 です。
selectionColor 型 : Number   形式 : Color   CSS の継承 : あり
ユーザーが行を選択したときの行の背景色です。デフォルト値は 0xDFFC1 です。
selectionDisabledColor 型 : Number   形式 : Color   CSS の継承 : あり
リストアイテムの無効な色を指定します。デフォルト値は 0xDDDDDD です。
selectionDuration 型 : Number   形式 : Time   CSS の継承 : なし
イージングの継続時間をミリ秒単位で表します。デフォルト値は 250 です。イージングを無効にする場合は 0 に設定します。
selectionEasing 型 : String   CSS の継承 : なし
プログラムによるトゥイーンの制御に使用されるイージング式 (関数) への参照です。
textRollOverColor 型 : Number   形式 : Color   CSS の継承 : あり
マウスポインタが行の上に置かれているときのテキストの色です。デフォルト値は 0x2B333C です。
textSelectedColor 型 : Number   形式 : Color   CSS の継承 : あり
ユーザーが行を選択したときのテキストの色です。デフォルト値は 0x05F33 です。
useRollOver 型 : Boolean   CSS の継承 : なし
true の場合、マウスポインタが置かれている行はハイライト表示されます。false の場合、行は選択された場合にのみハイライト表示されます。デフォルト値は true です。

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  



プロパティの詳細

version

static  version:String  

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


SimpleList.mxml
<?xml version="1.0"?>

<!-- List コントロールの使用方法を示す簡単な例 -->

<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" backgroundColor="#FFFFFF">

<mx:Script>
<![CDATA[
          
[Embed(source="FlexLogo.gif")]
var iconSymbol1:String;
          
[Embed(source="shockwave.gif")]
var iconSymbol2:String;
          
[Embed(source="breeze.png")]
var iconSymbol3:String;
	 
	  [Embed(source="flash.png")]
var iconSymbol4:String;

    ]]>
</mx:Script>

<mx:Panel title="List Panel" marginTop="10">

<mx:List id="SoftwareSelection" width="280">

<mx:dataProvider>
<mx:Array>
<mx:Object label="Macromedia Flex" icon="{ iconSymbol1 }"/>
<mx:Object label="Macromedia Shockwave" icon="{ iconSymbol2 }"/>
<mx:Object label="Macromedia Breeze" icon="{ iconSymbol3 }"/>
<mx:Object label="Macromedia Flash" icon="{ iconSymbol4 }"/>
</mx:Array>
</mx:dataProvider>

</mx:List>

</mx:Panel>

</mx:Application>