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

mx.containers
NavBar クラス

継承を示す線継承を示す線継承を示す線継承を示す線継承を示す線
直接の既知のサブクラス
           mx.containers.LinkBar, mx.containers.TabBar

NavBar クラス
mx.containers.Box の拡張

NavBar クラスは、LinkBar および TabBar などのナビゲータバーの基本クラスです。このクラスを直接インスタンス化することはできません。

MXML シンタックス

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

  <mx:tagname
dataProvider="No default"
labeField="label"
click="Event handler; no default."
/>

関連項目
    ViewStack
    mx.controls.listclasses.DataProvider
    LinkBar
    TabBar



メソッド

mx.containers.Box クラスから継承されるメソッド
layoutChildren   measure   pixelsToPercent   setRelativeChildHeights   setRelativeChildWidths  

mx.containers.Container クラスから継承されるメソッド
createChildren   draw   executeChildBindings   getViewMetrics   getViewMetricsAndMargins   init  

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  



プロパティ
       dataProvider:Object
コンテナに値を格納するために使用されるデータです。
       labelField:String
ラベルとして表示する dataProvider 配列オブジェクト内のフィールドの名前です。
staticversion:String
このクラスのバージョンを表すストリングです。

mx.containers.Box クラスから継承されるプロパティ
direction  

mx.containers.Container クラスから継承されるプロパティ
autoLayout   childDescriptors   className   clipContent   creationIndex   creationPolicy   defaultButton   hLineScrollSize   hPageScrollSize   hPosition   hScrollPolicy   icon   label   maxHPosition   maxVPosition   numRepeaters   version   vLineScrollSize   vPageScrollSize   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  



イベント
clickナビゲーションアイテムが選択されたときにブロードキャストします。このイベントは、dataProvider が ViewStack コンテナではない場合のみ送信されます。イベントオブジェクトの target プロパティには、イベントをトリガしたコンテナへの参照が含まれます。イベントオブジェクトの type プロパティには click が含まれます。イベントオブジェクトには次のようなプロパティもあります。
  • label 現在選択されているアイテムのラベルです。
  • index 現在選択されているアイテムのインデックスです。
  • relatedNode 現在選択されているアイテムへの参照です。
  • data 現在選択されているアイテムに関連付けられたデータです。


mx.containers.Container クラスから継承されるイベント
childrenCreated  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 



スタイル

mx.containers.Box クラスから継承されるスタイル
horizontalAlign   horizontalGap   marginBottom   marginTop   verticalAlign   verticalGap  

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  



プロパティの詳細

dataProvider

dataProvider:Object  

コンテナに値を格納するために使用されるデータです。データの型は、ViewStack コンテナまたは Array です。

ViewStack コンテナを使用するときは、ナビゲーションアイテムに値を格納するために、ViewStack コンテナの子の label および icon プロパティが使用されます。たとえば、次のようになります。

<mx:LinkBar dataProvider="vs" />
<mx:ViewStack id="vs">
    <mx:VBox label="Accounts" icon="account_icon" />
    <mx:VBox label="Leads" icon="leads_icon" />
</mx:ViewStack>
LinkBar コンテナには、"Accounts" および "Leads" の 2 つのリンクが含まれ、それぞれ独自のアイコンが割り当てられています。リンクをクリックすると、対応するビューに ViewStack コンテナが移動します。

Array を使用するときは、ナビゲーションアイテムのラベルとして使用される dataProvider フィールドの名前が、labelField プロパティによって決定されます。ストリング配列を使用する場合、labelField プロパティは無視されます。


labelField

labelField:String  

ラベルとして表示する dataProvider 配列オブジェクト内のフィールドの名前です。デフォルト値は label です。labelField の詳細については、ScrollSelectList.labelField を参照してください。


version

static  version:String  

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