| Package | com.esri.aws.awx.widget |
| Class | public class BarWidgetContainer |
| Inheritance | BarWidgetContainer BaseWidgetContainer mx.core.UIComponent |
| Implements | IWidgetView |
BaseMapWidget is a good example of a BarWidgetContainer.
The BarWidgetContainer uses two different widget states: WidgetStates.ICON and WidgetStates.ICON_ACTION.
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | data : Object | BaseWidgetContainer | |
| direction : String
Set the direction of the bar -- either "horizontal" or "vertical".
| BarWidgetContainer | ||
| maxScrollPosition : int
The maximum allowable scroll position.
| BarWidgetContainer | ||
![]() | numWidgets : int
Number of widgets in widget container.
| BaseWidgetContainer | |
| pageSize : int
The size of the visible page.
| BarWidgetContainer | ||
| scrollPosition : int
The current scroll position of the container.
| BarWidgetContainer | ||
| widget : IWidget
[read-only]
| BarWidgetContainer | ||
| widgetContainer : IWidgetContainer
| BarWidgetContainer | ||
![]() | widgets : WidgetCollection
The widgetCollection of the widget container.
| BaseWidgetContainer | |
| widgetState : String
The widget state.
| BarWidgetContainer | ||
| widgetStatesInBar : Array
Sets the states of the widgets loaded in the bar.
| BarWidgetContainer | ||
| Property | Defined by | ||
|---|---|---|---|
| arrowGap : uint
The gap between icons and directional arrows.
| BarWidgetContainer | ||
| arrowHeight : uint
The height of "next" and "previous" arrows.
| BarWidgetContainer | ||
| arrowWidth : uint
The width of "next" and "previous" arrows.
| BarWidgetContainer | ||
| barBase : UIComponent
The UIComponent used as the widget bar.
| BarWidgetContainer | ||
| barMask : DisplayObject
The UIComponent used as the widget bar mask.
| BarWidgetContainer | ||
![]() | childrenCreationComplete : Boolean
Have the children been created?
| BaseWidgetContainer | |
![]() | collectionChanged : Boolean
Has the widget collection changed?
| BaseWidgetContainer | |
| horizontalGap : uint
The horizontal gap between icons (when direction=horizontal).
| BarWidgetContainer | ||
| iconHeight : uint
The height of each icon.
| BarWidgetContainer | ||
| iconWidth : uint
The width of each icon.
| BarWidgetContainer | ||
| moveEffect : Move
The effect used when scrolling between pages.
| BarWidgetContainer | ||
| nextArrowStyleName : String
The style setting for the "Next" arrow.
| BarWidgetContainer | ||
| nextPageArrow : Button
The next page arrow button.
| BarWidgetContainer | ||
![]() | paddingBottom : Number
Padding for the bottom of the container.
| BaseWidgetContainer | |
![]() | paddingLeft : Number
Padding for the left of the container.
| BaseWidgetContainer | |
![]() | paddingRight : Number
Padding for the right of the container.
| BaseWidgetContainer | |
![]() | paddingTop : Number
Padding for the top of the container.
| BaseWidgetContainer | |
| previousArrowStyleName : String
The style setting for the "Previous" arrow.
| BarWidgetContainer | ||
| previousPageArrow : Button
The previous page arrow button.
| BarWidgetContainer | ||
| scrollBase : UIComponent
The UIComponent used as the scroll bar.
| BarWidgetContainer | ||
![]() | updateStyles : Boolean
Have the styles been updated?
| BaseWidgetContainer | |
| verticalGap : uint
The vertical gap between icons (when direction=vertical).
| BarWidgetContainer | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
Adds a widget to widget container.
| BaseWidgetContainer | |
![]() |
addWidgetAt(widget:IWidget, index:int):void
Adds a widget to widget container (at a specific index).
| BaseWidgetContainer | |
![]() |
executeChildBindings(recurse:Boolean):void
Executes the bindings into this Container's child UIComponent objects.
| BaseWidgetContainer | |
![]() |
getAllWidgets():Array
Returns an array with all the widgets in the widget container.
| BaseWidgetContainer | |
![]() |
removeAllWidgets():void
Removes all widgets.
| BaseWidgetContainer | |
![]() |
removeWidget(widget:IWidget):void
Removes a widget from widget container.
| BaseWidgetContainer | |
![]() |
removeWidgetAt(index:int):IWidget
Removes widget from widget container (using index).
| BaseWidgetContainer | |
|
| BarWidgetContainer | ||
| Method | Defined by | ||
|---|---|---|---|
|
collectionChangeHandler(event:CollectionEvent):void
| BarWidgetContainer | ||
|
iconClickHandler(event:MouseEvent):void
This method handles the click event of the widget icon states.
| BarWidgetContainer | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| BarWidgetContainer | ||||
| Style | Description | Defined by | ||
|---|---|---|---|---|
|
arrowGap
| Type: Number Format: Length CSS Inheritance: no Number of pixels between icons and directional arrows. | BarWidgetContainer | ||
|
arrowHeight
| Type: uint Format: Length CSS Inheritance: no Height of "next" and "previous" arrows. | BarWidgetContainer | ||
|
arrowWidth
| Type: uint Format: Length CSS Inheritance: no Width of "next" and "previous" arrows. | BarWidgetContainer | ||
|
horizontalGap
| Type: Number Format: Length CSS Inheritance: no Number of pixels between icons in the horizontal direction. | BarWidgetContainer | ||
|
iconHeight
| Type: uint Format: Length CSS Inheritance: no Height of each icon. | BarWidgetContainer | ||
|
iconWidth
| Type: uint Format: Length CSS Inheritance: no Width of each icon. | BarWidgetContainer | ||
|
nextArrowStyleName
| Type: String CSS Inheritance: no Style name for the next arrow button. If the direction is horizontal the next arrow button is the one on the right. Otherwise, when direction is vertical, the button is the one at the bottom. | BarWidgetContainer | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the container's bottom border and the bottom of its content area. | BaseWidgetContainer | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the container's left border and the left of its content area. | BaseWidgetContainer | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the container's right border and the right of its content area. | BaseWidgetContainer | ||
![]() | Type: Number Format: Length CSS Inheritance: no Number of pixels between the container's top border and the top of its content area. | BaseWidgetContainer | ||
|
previousArrowStyleName
| Type: String CSS Inheritance: no Style name for the previous arrow button. If the direction is horizontal the previous arrow button is the one on the left. Otherwise, when direction is vertical, the button is the one at the top. | BarWidgetContainer | ||
|
previousArrowStyleName
| Type: String CSS Inheritance: no Number of pixels between icons and directional arrows. | BarWidgetContainer | ||
|
verticalGap
| Type: Number Format: Length CSS Inheritance: no Number of pixels between icons in the vertical direction. | BarWidgetContainer | ||
| Constant | Defined by | ||
|---|---|---|---|
| HORIZONTAL : String = "horizontal" [static]
Constant used to set the direction to horizontal.
| BarWidgetContainer | ||
| VERTICAL : String = "vertical" [static]
Constant used to set the direction to vertical.
| BarWidgetContainer | ||
| arrowGap | property |
protected var arrowGap:uintThe gap between icons and directional arrows.
| arrowHeight | property |
protected var arrowHeight:uintThe height of "next" and "previous" arrows.
| arrowWidth | property |
protected var arrowWidth:uintThe width of "next" and "previous" arrows.
| barBase | property |
protected var barBase:UIComponentThe UIComponent used as the widget bar.
| barMask | property |
protected var barMask:DisplayObjectThe UIComponent used as the widget bar mask.
| direction | property |
direction:String [read-write]Set the direction of the bar -- either "horizontal" or "vertical".
Implementation public function get direction():String
public function set direction(value:String):void
| horizontalGap | property |
protected var horizontalGap:uintThe horizontal gap between icons (when direction=horizontal).
| iconHeight | property |
protected var iconHeight:uintThe height of each icon.
| iconWidth | property |
protected var iconWidth:uintThe width of each icon.
| maxScrollPosition | property |
maxScrollPosition:int [read-write]The maximum allowable scroll position.
Implementation public function get maxScrollPosition():int
public function set maxScrollPosition(value:int):void
| moveEffect | property |
protected var moveEffect:MoveThe effect used when scrolling between pages.
| nextArrowStyleName | property |
protected var nextArrowStyleName:StringThe style setting for the "Next" arrow.
| nextPageArrow | property |
protected var nextPageArrow:ButtonThe next page arrow button.
| pageSize | property |
pageSize:int [read-write]The size of the visible page.
Implementation public function get pageSize():int
public function set pageSize(value:int):void
| previousArrowStyleName | property |
protected var previousArrowStyleName:StringThe style setting for the "Previous" arrow.
| previousPageArrow | property |
protected var previousPageArrow:ButtonThe previous page arrow button.
| scrollBase | property |
protected var scrollBase:UIComponentThe UIComponent used as the scroll bar.
| scrollPosition | property |
scrollPosition:int [read-write]The current scroll position of the container.
Implementation public function get scrollPosition():int
public function set scrollPosition(value:int):void
| verticalGap | property |
protected var verticalGap:uintThe vertical gap between icons (when direction=vertical).
| widget | property |
| widgetContainer | property |
widgetContainer:IWidgetContainer [read-write]Implementation
public function get widgetContainer():IWidgetContainer
public function set widgetContainer(value:IWidgetContainer):void
| widgetState | property |
widgetState:String [read-write]The widget state.
Implementation public function get widgetState():String
public function set widgetState(value:String):void
| widgetStatesInBar | property |
widgetStatesInBar:Array [read-write]Sets the states of the widgets loaded in the bar.
Implementation public function get widgetStatesInBar():Array
public function set widgetStatesInBar(value:Array):void
| collectionChangeHandler | () | method |
protected override function collectionChangeHandler(event:CollectionEvent):voidParameters
event:CollectionEvent |
| iconClickHandler | () | method |
protected function iconClickHandler(event:MouseEvent):voidThis method handles the click event of the widget icon states.
Parametersevent:MouseEvent |
| setWidget | () | method |
| itemClick | event |
| HORIZONTAL | constant |
public static const HORIZONTAL:String = "horizontal"Constant used to set the direction to horizontal.
| VERTICAL | constant |
public static const VERTICAL:String = "vertical"Constant used to set the direction to vertical.