Flex-vgroup
フレックス-VGroup
前書き
VGroupコンテナは、VerticalLayoutクラスを使用するグループコンテナです。 VGroupクラスのプロパティを使用して、VerticalLayoutクラスの特性を変更します。
クラス宣言
以下は spark.components.VGroup クラスの宣言です-
パブリックプロパティ
Sr.No | Property & Description |
---|---|
1 |
firstIndexInView : int [read-only] The index of the first layout element that is part of the layout and within the layout target’s scroll rectangle, or -1 if nothing has been displayed yet. |
2 |
gap : int レイアウト要素間の垂直方向のスペース(ピクセル単位)。 |
3 |
horizontalAlign : String レイアウト要素の水平方向の配置。 |
4 |
lastIndexInView : int [read-only] The index of the last row that’s part of the layout and within the container’s scroll rectangle, or -1 if nothing has been displayed yet. |
5 |
paddingBottom : Number コンテナの下端と最後のレイアウト要素の下端の間のピクセル数。 |
6 |
paddingLeft : Number コンテナの左端とレイアウト要素の左端の間の最小ピクセル数。 |
7 |
paddingRight : Number コンテナの右端とレイアウト要素の右端の間の最小ピクセル数。 |
8 |
paddingTop : Number コンテナの上端と最初のレイアウト要素の上端の間のピクセル数。 |
9 |
requestedMaxRowCount : int このレイアウトの測定された高さは、最大でrequestedMaxRowCountレイアウト要素を表示するのに十分な大きさです。 |
10 |
requestedMinRowCount : int このレイアウトの測定された高さは、少なくともrequestedMinRowCountレイアウト要素を表示するのに十分な大きさです。 |
11 |
requestedRowCount : int このレイアウトの測定サイズは、最初のrequestedRowCountレイアウト要素を表示するのに十分な高さです。 |
12 |
rowCount : int [read-only] The current number of visible elements. |
13 |
rowHeight : Number variableRowHeightがfalseの場合、このプロパティは各子の実際の高さをピクセル単位で指定します。 |
14 |
variableRowHeight : Boolean レイアウト要素に優先高さを割り当てるかどうかを指定します。 |
15 |
verticalAlign : String コンテナの高さに対するコンテンツの垂直方向の配置。 |
パブリックメソッド
Sr.No | Method & Description |
---|---|
1 |
VGroup() コンストラクタ。 |
継承されるメソッド
このクラスは、次のクラスからメソッドを継承します-
- spark.components.Group
- spark.components.supportClasses.GroupBase
- mx.core.UIComponent
- mx.core.FlexSprite
- flash.display.Sprite
- flash.display.DisplayObjectContainer
- flash.display.InteractiveObject
- flash.display.DisplayObject
- flash.events.EventDispatcher
- 対象
Flex VGroupの例
テストアプリケーションを作成して、FlexアプリケーションでVGroupの使用状況を確認するには、次の手順に従います-
Step | Description |
---|---|
1 | Create a project with a name HelloWorld under a package com.finddevguides.client as explained in the Flex - Create Application chapter. |
2 | Modify HelloWorld.mxml as explained below. Keep rest of the files unchanged. |
3 | Compile and run the application to make sure business logic is working as per the requirements. |
以下は、変更されたmxmlファイル src/com.finddevguides/HelloWorld.mxml の内容です。
すべての変更が完了したら、link:/flex/flex_create_application [Flex-アプリケーションの作成]の章で行ったように、アプリケーションを通常モードでコンパイルして実行します。 アプリケーションに問題がない場合、次の結果が生成されます。[link:/flex/samples/LayoutsApplicationl#currentlyLoaded = VGroup [オンラインで試す]]