Packagecom.esri.aws.awx.widget
Classpublic class AccordionWidgetContainer
InheritanceAccordionWidgetContainer Inheritance BaseWidgetContainer Inheritance mx.core.UIComponent

AccordionWidgetContainer can be used to group several widgets into one.

The AccordionWidgetContainer supports one widget state: WidgetStates.DEFAULT.


Example
Sample MXML usage of AccordionWidgetContainer:
      <widget:AccordionWidgetContainer width="450">
          <widget:PanZoomWidget id="panZoomW" />
          <widget:BaseMapWidget id="baseMapW"/>
          <widget:FindWidget id="findW" />
          <widget:MyCustomWidget id="whatever" />
      </widget:AccordionWidgetContainer>
    



Public Properties
 PropertyDefined by
  childrenMaximumHeight : Number
Maximum height for the widget views.
AccordionWidgetContainer
 Inheriteddata : Object
BaseWidgetContainer
 InheritednumWidgets : int
Number of widgets in widget container.
BaseWidgetContainer
 Inheritedwidgets : WidgetCollection
The widgetCollection of the widget container.
BaseWidgetContainer
Protected Properties
 PropertyDefined by
 InheritedchildrenCreationComplete : Boolean
Have the children been created?
BaseWidgetContainer
 InheritedcollectionChanged : Boolean
Has the widget collection changed?
BaseWidgetContainer
  itemCreationComplete : Boolean
Tells whether or not the items have been created.
AccordionWidgetContainer
  myStyleChanged : Boolean
Tells whether or not the style has changed.
AccordionWidgetContainer
 InheritedpaddingBottom : Number
Padding for the bottom of the container.
BaseWidgetContainer
 InheritedpaddingLeft : Number
Padding for the left of the container.
BaseWidgetContainer
 InheritedpaddingRight : Number
Padding for the right of the container.
BaseWidgetContainer
 InheritedpaddingTop : Number
Padding for the top of the container.
BaseWidgetContainer
  separatorColor : Number
Color of the widget separator.
AccordionWidgetContainer
  separators : Array
Array of separators visible in the widget container.
AccordionWidgetContainer
  separatorThickness : Number
Thickness of the widget separator.
AccordionWidgetContainer
  totalHeight : Number
Total height of the widget container.
AccordionWidgetContainer
  totalWidth : Number
Total width of the widget container.
AccordionWidgetContainer
 InheritedupdateStyles : Boolean
Have the styles been updated?
BaseWidgetContainer
  widgetViews : Array
Array of widget views visible in the widget container.
AccordionWidgetContainer
Public Methods
 MethodDefined by
  
Creates a new AccordionWidgetContainer.
AccordionWidgetContainer
 Inherited
addWidget(widget:IWidget):void
Adds a widget to widget container.
BaseWidgetContainer
 Inherited
addWidgetAt(widget:IWidget, index:int):void
Adds a widget to widget container (at a specific index).
BaseWidgetContainer
  
close():void
Closes the widget container and removes any widget popups.
AccordionWidgetContainer
 Inherited
executeChildBindings(recurse:Boolean):void
Executes the bindings into this Container's child UIComponent objects.
BaseWidgetContainer
 Inherited
getAllWidgets():Array
Returns an array with all the widgets in the widget container.
BaseWidgetContainer
  
openAll():void
Opens all of the views contained within the widget container.
AccordionWidgetContainer
 Inherited
Removes all widgets.
BaseWidgetContainer
 Inherited
removeWidget(widget:IWidget):void
Removes a widget from widget container.
BaseWidgetContainer
 Inherited
removeWidgetAt(index:int):IWidget
Removes widget from widget container (using index).
BaseWidgetContainer
  
styleChanged(styleProp:String):void
AccordionWidgetContainer
Protected Methods
 MethodDefined by
  
addSeparator(w:Number, h:Number):void
Adds a separator to the widget container.
AccordionWidgetContainer
  
collectionChangeHandler(event:CollectionEvent):void
AccordionWidgetContainer
  
AccordionWidgetContainer
  
AccordionWidgetContainer
  
createItems():void
Creates the widget views and adds them to the widget container.
AccordionWidgetContainer
  
layoutItems(unscaledWidth:Number, unscaledHeight:Number):void
Lays out the widget views and separators accordingly
AccordionWidgetContainer
  
makeSeperators(width:Number):void
Creates the separator with the given width
AccordionWidgetContainer
  
measure():void
AccordionWidgetContainer
  
measureItems():void
Determines the height and width of the widget container.
AccordionWidgetContainer
  
removeAll():void
Removes all separators and widgets from the widget container.
AccordionWidgetContainer
  
restoreState(stateCache:Array):void
Restores the last known state of the widget container.
AccordionWidgetContainer
  
saveState():Array
Saves the current state of the widget container.
AccordionWidgetContainer
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
AccordionWidgetContainer
Styles
 StyleDescriptionDefined by
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's bottom border and the bottom of its content area.
BaseWidgetContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's left border and the left of its content area.
BaseWidgetContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's right border and the right of its content area.
BaseWidgetContainer
 Inherited Type: Number   Format: Length   CSS Inheritance: no
Number of pixels between the container's top border and the top of its content area.
BaseWidgetContainer
Property detail
childrenMaximumHeightproperty
public var childrenMaximumHeight:Number

Maximum height for the widget views.

This property can be used as the source for data binding.

itemCreationCompleteproperty 
protected var itemCreationComplete:Boolean

Tells whether or not the items have been created.

myStyleChangedproperty 
protected var myStyleChanged:Boolean

Tells whether or not the style has changed.

separatorColorproperty 
protected var separatorColor:Number

Color of the widget separator.

separatorsproperty 
protected var separators:Array

Array of separators visible in the widget container.

separatorThicknessproperty 
protected var separatorThickness:Number

Thickness of the widget separator.

totalHeightproperty 
protected var totalHeight:Number

Total height of the widget container.

totalWidthproperty 
protected var totalWidth:Number

Total width of the widget container.

widgetViewsproperty 
protected var widgetViews:Array

Array of widget views visible in the widget container.

Constructor detail
AccordionWidgetContainer()constructor
public function AccordionWidgetContainer()

Creates a new AccordionWidgetContainer.

Method detail
addSeparator()method
protected function addSeparator(w:Number, h:Number):void

Adds a separator to the widget container.

Parameters
w:Number
 
h:Number
close()method 
public function close():void

Closes the widget container and removes any widget popups.

collectionChangeHandler()method 
protected override function collectionChangeHandler(event:CollectionEvent):void

Parameters
event:CollectionEvent
commitProperties()method 
protected override function commitProperties():void

createChildren()method 
protected override function createChildren():void

createItems()method 
protected function createItems():void

Creates the widget views and adds them to the widget container.

layoutItems()method 
protected function layoutItems(unscaledWidth:Number, unscaledHeight:Number):void

Lays out the widget views and separators accordingly

Parameters
unscaledWidth:Number
 
unscaledHeight:Number
makeSeperators()method 
protected function makeSeperators(width:Number):void

Creates the separator with the given width

Parameters
width:Number
measure()method 
protected override function measure():void

measureItems()method 
protected function measureItems():void

Determines the height and width of the widget container.

openAll()method 
public function openAll():void

Opens all of the views contained within the widget container.

removeAll()method 
protected function removeAll():void

Removes all separators and widgets from the widget container.

restoreState()method 
protected function restoreState(stateCache:Array):void

Restores the last known state of the widget container.

Parameters
stateCache:Array
saveState()method 
protected function saveState():Array

Saves the current state of the widget container.

Returns
Array
styleChanged()method 
public override function styleChanged(styleProp:String):void

Parameters
styleProp:String
updateDisplayList()method 
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Parameters
unscaledWidth:Number
 
unscaledHeight:Number