| Package | com.yahoo.astra.fl.containers |
| Class | public class BorderPane |
| Inheritance | BorderPane AdvancedLayoutPane BaseLayoutPane BaseScrollPane UIComponent flash.display.Sprite |
This layout container supports advanced options specified through the
configuration property.
Available Configuration Options
target : DisplayObjectconstraint : StringBorderConstraints.CENTER.maintainAspectRatio : BooleanhorizontalAlign : StringmaintainAspectRatio.verticalAlign : StringmaintainAspectRatio.aspectRatio : NumbermaintainAspectRatio. This value is optional.
If no aspect ratio is provided, it will be determined based on the target's original width and height.includeInLayout : Booleanfalse, the target will not be included in layout calculations. The default value is true.
pane.configuration = [
{ target: headerSprite, constraint: BorderContstraints.TOP },
{ target: contentSprite, constraint: BorderConstraints.CENTER,
maintainAspectRatio: true, horizontalAlign: "center",
verticalAlign: "middle" }
];
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | autoSize : Boolean
If true, the container will automatically calculate the ideal width
and height for itself.
| BaseLayoutPane | |
![]() | configuration : Array
A list of settings used by the layout algorithm for specific children
of the container.
| AdvancedLayoutPane | |
![]() | debugMode : Boolean
If true, a simple border around the layout pane will identify
its bounds.
| BaseLayoutPane | |
![]() | enabled : Boolean
Gets or sets a value that indicates whether the component can accept user interaction.
| UIComponent | |
![]() | focusEnabled : Boolean
Gets or sets a Boolean value that indicates whether the component can receive focus
after the user clicks it.
| UIComponent | |
![]() | focusManager : IFocusManager
Gets or sets the FocusManager that controls focus for this component and its
peers.
| UIComponent | |
![]() | height : Number
Gets or sets the height of the component, in pixels.
| UIComponent | |
| horizontalGap : Number
The number of horizontal pixels between each item displayed by this
container.
| BorderPane | ||
![]() | horizontalLineScrollSize : Number
Gets or sets a value that describes the amount of content to be scrolled,
horizontally, when a scroll arrow is clicked.
| BaseScrollPane | |
![]() | horizontalPageScrollSize : Number
Gets or sets the count of pixels by which to move the scroll thumb
on the horizontal scroll bar when the scroll bar track is pressed.
| BaseScrollPane | |
![]() | horizontalScrollBar : ScrollBar
Gets a reference to the horizontal scroll bar.
| BaseScrollPane | |
![]() | horizontalScrollPolicy : String
Gets or sets a value that indicates the state of the horizontal scroll
bar.
| BaseScrollPane | |
![]() | horizontalScrollPosition : Number
Gets or sets a value that describes the horizontal position of the
horizontal scroll bar in the scroll pane, in pixels.
| BaseScrollPane | |
![]() | layoutMode : ILayoutMode
The algorithm used to layout children of this container (no default).
| BaseLayoutPane | |
![]() | maxHorizontalScrollPosition : Number
Gets the maximum horizontal scroll position for the current content, in pixels.
| BaseScrollPane | |
![]() | maxVerticalScrollPosition : Number
Gets the maximum vertical scroll position for the current content, in pixels.
| BaseScrollPane | |
![]() | mouseFocusEnabled : Boolean
Gets or sets a value that indicates whether the component can receive focus after
the user clicks it.
| UIComponent | |
![]() | paddingBottom : Number
The number of pixels of extra spacing between the bottom edge of the
container and its children.
| AdvancedLayoutPane | |
![]() | paddingLeft : Number
The number of pixels of extra spacing between the left edge of the
container and its children.
| AdvancedLayoutPane | |
![]() | paddingRight : Number
The number of pixels of extra spacing between the right edge of the
container and its children.
| AdvancedLayoutPane | |
![]() | paddingTop : Number
The number of pixels of extra spacing between the top edge of the
container and its children.
| AdvancedLayoutPane | |
![]() | scaleX : Number
Multiplies the current width of the component by a scale factor.
| UIComponent | |
![]() | scaleY : Number
Multiplies the current height of the component by a scale factor.
| UIComponent | |
![]() | useBitmapScrolling : Boolean
When set to
true, the cacheAsBitmap property for the scrolling content is set
to true; when set to false this value is turned off. | BaseScrollPane | |
![]() | version : String = "3.0.0.15"
The version number of the components.
| UIComponent | |
| verticalGap : Number
The number of vertical pixels between each item displayed by this
container.
| BorderPane | ||
![]() | verticalLineScrollSize : Number
Gets or sets a value that describes how many pixels to scroll vertically when a scroll arrow is clicked.
| BaseScrollPane | |
![]() | verticalPageScrollSize : Number
Gets or sets the count of pixels by which to move the scroll thumb
on the vertical scroll bar when the scroll bar track is pressed.
| BaseScrollPane | |
![]() | verticalScrollBar : ScrollBar
Gets a reference to the vertical scroll bar.
| BaseScrollPane | |
![]() | verticalScrollPolicy : String
Gets or sets a value that indicates the state of the vertical scroll
bar.
| BaseScrollPane | |
![]() | verticalScrollPosition : Number
Gets or sets a value that describes the vertical position of the
vertical scroll bar in the scroll pane, in pixels.
| BaseScrollPane | |
![]() | visible : Boolean
Gets or sets a value that indicates whether the current component instance is visible.
| UIComponent | |
![]() | width : Number
Gets or sets the width of the component, in pixels.
| UIComponent | |
![]() | x : Number
Gets or sets the x coordinate that represents the position of the component along
the x axis within its parent container.
| UIComponent | |
![]() | y : Number
Gets or sets the y coordinate that represents the position of the component along
the y axis within its parent container.
| UIComponent | |
| Method | Defined by | ||
|---|---|---|---|
|
BorderPane(configuration:Array = null)
Constructor.
| BorderPane | ||
![]() |
clearStyle(style:String):void
Deletes a style property from this component instance.
| UIComponent | |
![]() |
drawFocus(focused:Boolean):void
Shows or hides the focus indicator on this component.
| UIComponent | |
![]() |
drawNow():void
Initiates an immediate draw operation, without invalidating everything as
invalidateNow does. | UIComponent | |
![]() |
getFocus():InteractiveObject
Retrieves the object that currently has focus.
| UIComponent | |
![]() |
getStyle(style:String):Object
Retrieves a style property that is set in the style lookup
chain of the component.
| UIComponent | |
![]() |
getStyleDefinition():Object
[static]
Retrieves the default style map for the current component.
| BaseLayoutPane | |
![]() |
invalidate(property:String, callLater:Boolean = true):void
Marks a property as invalid and redraws the component on the
next frame unless otherwise specified.
| UIComponent | |
![]() |
mergeStyles(... list):Object
[static]
Merges the styles from multiple classes into one object.
| UIComponent | |
![]() |
move(x:Number, y:Number):void
Moves the component to the specified position within its parent.
| UIComponent | |
![]() |
setFocus():void
Sets the focus to this component.
| UIComponent | |
![]() |
setSize(w:Number, h:Number):void
Sets the component to the specified width and height.
| BaseLayoutPane | |
![]() |
setStyle(style:String, value:Object):void
Sets a style property on this component instance.
| UIComponent | |
![]() |
validateNow():void
Validates and updates the properties and layout of this object, redrawing it
if necessary.
| UIComponent | |
| horizontalGap | property |
horizontalGap:Number [read-write]The number of horizontal pixels between each item displayed by this container.
Implementation public function get horizontalGap():Number
public function set horizontalGap(value:Number):void
| verticalGap | property |
verticalGap:Number [read-write]The number of vertical pixels between each item displayed by this container.
Implementation public function get verticalGap():Number
public function set verticalGap(value:Number):void
| BorderPane | () | constructor |
public function BorderPane(configuration:Array = null)Constructor.
Parametersconfiguration:Array (default = null) — An Array of optional configurations for the layout container's children.
|