Packageardisia.components.compassContainer
Classpublic class CompassRegionContainer
InheritanceCompassRegionContainer Inheritance spark.components.SkinnableContainer

Base class for region containers designed for use by the CompassContainer.

Default MXML PropertymxmlContentFactory



Public Properties
 PropertyDefined By
  canBeClosed : Boolean
True to allow this region to be closed via mouse interaction.
CompassRegionContainer
  canBeMinimized : Boolean
True to allow the container to be minimized via mouse interaction.
CompassRegionContainer
  compassRegion : String
String description of the region's cardinal location in the CompassContainer.
CompassRegionContainer
  floating : Boolean
True to display the region as a float outside the minimize region.
CompassRegionContainer
  minimized : Boolean
Controlled by the host CompassContainer.
CompassRegionContainer
  regionID : String
A unique string used to track this region.
CompassRegionContainer
  showChrome : Boolean
True to display region chrome in a header for the container.
CompassRegionContainer
  title : String
The region title.
CompassRegionContainer
Public Methods
 MethodDefined By
  
CompassRegionContainer
  
dispose():void
Remove the container from the display list and remove listeners.
CompassRegionContainer
Protected Methods
 MethodDefined By
  
closeButtonPartHandler(event:Event):void
Handles events on the close button part.
CompassRegionContainer
  
minimizeButtonPartHandler(event:Event):void
CompassRegionContainer
  
skinHandler(event:Event):void
Handles events on the skin.
CompassRegionContainer
  
Update the close button part.
CompassRegionContainer
  
Update the minimize button part.
CompassRegionContainer
  
Update the title label part.
CompassRegionContainer
Events
 Event Summary Defined By
  Dispatched when the minimize button is clicked.CompassRegionContainer
  Dispatched when a region's close button part is clicked.CompassRegionContainer
Styles
 Style Description Defined By
  
backgroundColor
Type: uint Format: Color CSS Inheritance: no
Color of the background for the region. The default value is #FFFFFF.
CompassRegionContainer
  
borderAlpha
Type: Number CSS Inheritance: no
Border alpha.
CompassRegionContainer
  
borderColor
Type: uint Format: Color CSS Inheritance: no
Border color.
CompassRegionContainer
  
borderVisible
Type: Boolean CSS Inheritance: no
Whether to display a border.
CompassRegionContainer
Skin Parts

This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.


 Skin Part Description Defined By
  
closeButtonPart:spark.components.supportClasses.ButtonBase
Required: false Part Type: Static
Optional button used to close the region. If the "canBeClosed" property is false, and this skin part is displayed, it will be disabled, hidden, and removed from layout.
CompassRegionContainer
  
draggingRegionPart:mx.core.IVisualElement
Required: false Part Type: Dynamic
Region of the CompassRegionCOntainer that originates dragging on mouse down. Used by the DockingCompassContainer class.
CompassRegionContainer
  
minimizeButtonPart:spark.components.supportClasses.ButtonBase
Required: false Part Type: Static
Optional button used to request the host container to minimize the region. If the "canBeMinimized" property is false, it will be disabled, hidden, and removed from layout.
CompassRegionContainer
  
titleLabelPart:spark.components.supportClasses.TextBase
Required: false Part Type: Static
Optional label used to display the title of the region.
CompassRegionContainer
Skin States

To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.


 Skin State Description Defined By
  
close
CompassRegionContainer
  
disabled
CompassRegionContainer
  
disabledAndNoChrome
CompassRegionContainer
  
floating
State when the region is floated while minimized. CompassRegionContainer
  
normal
CompassRegionContainer
  
normalAndNoChrome
CompassRegionContainer
Property Detail
canBeClosedproperty
canBeClosed:Boolean

True to allow this region to be closed via mouse interaction.

The default value is false.


Implementation
    public function get canBeClosed():Boolean
    public function set canBeClosed(value:Boolean):void
canBeMinimizedproperty 
canBeMinimized:Boolean

True to allow the container to be minimized via mouse interaction.

Can still be minimized programmatically even if this property is false.

The default value is true.


Implementation
    public function get canBeMinimized():Boolean
    public function set canBeMinimized(value:Boolean):void
compassRegionproperty 
public var compassRegion:String

String description of the region's cardinal location in the CompassContainer.

Possible values are defined by the CompassQuadrant class.

The default value is null.

floatingproperty 
floating:Boolean

True to display the region as a float outside the minimize region.

The default value is null.


Implementation
    public function get floating():Boolean
    public function set floating(value:Boolean):void
minimizedproperty 
public var minimized:Boolean

Controlled by the host CompassContainer.

The default value is false.

regionIDproperty 
public var regionID:String

A unique string used to track this region. Useful to identify the region after begin docked to new quadrants.

The default value is randomized string.

showChromeproperty 
showChrome:Boolean

True to display region chrome in a header for the container.

False to hide all the chrome and improve performance in the skin.

The default value is true.


Implementation
    public function get showChrome():Boolean
    public function set showChrome(value:Boolean):void
titleproperty 
title:String

The region title.

The default value is null.


Implementation
    public function get title():String
    public function set title(value:String):void
Constructor Detail
CompassRegionContainer()Constructor
public function CompassRegionContainer()



Method Detail
closeButtonPartHandler()method
protected function closeButtonPartHandler(event:Event):void

Handles events on the close button part.

Parameters

event:Event — the Event that triggered the handler

dispose()method 
public function dispose():void

Remove the container from the display list and remove listeners.

minimizeButtonPartHandler()method 
protected function minimizeButtonPartHandler(event:Event):void

Parameters

event:Event

skinHandler()method 
protected function skinHandler(event:Event):void

Handles events on the skin.

Parameters

event:Event — the Event that triggered the handler

updateCloseButtonPart()method 
protected function updateCloseButtonPart():void

Update the close button part.

updateMinimizeButtonPart()method 
protected function updateMinimizeButtonPart():void

Update the minimize button part.

updateTitleLabelPart()method 
protected function updateTitleLabelPart():void

Update the title label part.

Event Detail
minimizeRegionRequest Event
Event Object Type: ardisia.components.compassContainer.events.CompassContainerEvent
CompassContainerEvent.type property = ardisia.components.compassContainer.events.CompassContainerEvent

Dispatched when the minimize button is clicked.

regionCloseRequest Event  
Event Object Type: ardisia.components.compassContainer.events.CompassContainerEvent
CompassContainerEvent.type property = ardisia.components.compassContainer.events.CompassContainerEvent

Dispatched when a region's close button part is clicked.