Packagecom.adobe.portfolio.components.details
Classpublic class DetailsLayout
InheritanceDetailsLayout Inheritance spark.layouts.VerticalLayout
Implements ICardLayout

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The DetailsLayout class extends VerticalLayout to implement the layout of the Details navigator.



Public Properties
 PropertyDefined By
  cardLayoutHelper : CardLayoutHelper
[read-only] Returns the instance of the CardLayoutHelper to use.
DetailsLayout
  details : Details
The main Details class.
DetailsLayout
  dropIndicator : DisplayObject
[override] [write-only] The DisplayObject to use as the dropIndicator that provides visual feedback to the user of where the items will be inserted at the end of a drag and drop gesture.
DetailsLayout
  thumbFitSize : Point
The size to use for thumbnail images in the layout
DetailsLayout
Public Methods
 MethodDefined By
  
Constructor.
DetailsLayout
  
customizeDropIndicator(dropIndicator:DisplayObject):void
Customize the dropIndicator icon to look like an I-beam.
DetailsLayout
  
findCardsThatIntersect(rect:Rectangle):Vector.<int>
Find the list of cards that overlap the specified rectangle.
DetailsLayout
  
getDropIndicatorPosition(w:Number, h:Number, x:Number, y:Number, end:Boolean):Rectangle
Given a location, width, and height for the dropIndicator icon, this method returns the drawing rectangle for the dropIndicator icon.
DetailsLayout
  
measure():void
[override] Override measure and adjust the targets measured width to match the total widths of the detail fields.
DetailsLayout
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override] Updates the layout of the display list
DetailsLayout
Property Detail
cardLayoutHelperproperty
cardLayoutHelper:CardLayoutHelper  [read-only]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Returns the instance of the CardLayoutHelper to use.


Implementation
    public function get cardLayoutHelper():CardLayoutHelper
detailsproperty 
details:Details

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The main Details class.


Implementation
    public function get details():Details
    public function set details(value:Details):void
dropIndicatorproperty 
dropIndicator:DisplayObject  [write-only] [override]

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The DisplayObject to use as the dropIndicator that provides visual feedback to the user of where the items will be inserted at the end of a drag and drop gesture.


Implementation
    public function set dropIndicator(value:DisplayObject):void
thumbFitSizeproperty 
thumbFitSize:Point

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The size to use for thumbnail images in the layout


Implementation
    public function get thumbFitSize():Point
    public function set thumbFitSize(value:Point):void
Constructor Detail
DetailsLayout()Constructor
public function DetailsLayout()

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Constructor.

Method Detail
customizeDropIndicator()method
public function customizeDropIndicator(dropIndicator:DisplayObject):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Customize the dropIndicator icon to look like an I-beam.

Parameters

dropIndicator:DisplayObject — The displayObject instance to use as the dropIndicator icon

findCardsThatIntersect()method 
public function findCardsThatIntersect(rect:Rectangle):Vector.<int>

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Find the list of cards that overlap the specified rectangle. Always returns null for Details.

Parameters

rect:Rectangle — A bounding region for which you want to find cards that intersect it.

Returns
Vector.<int> — Vector A vector of integers that represent the indexes of the cards in the layout that intersect the specified rectangle.
getDropIndicatorPosition()method 
public function getDropIndicatorPosition(w:Number, h:Number, x:Number, y:Number, end:Boolean):Rectangle

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Given a location, width, and height for the dropIndicator icon, this method returns the drawing rectangle for the dropIndicator icon.

Parameters

w:Number — The width, in pixels of the drop indicator icon
 
h:Number — The height, in pixels of the drop indicator icon
 
x:Number — The horizontal position of the drop indicator, in pixels
 
y:Number — The vertical position of the drop indicator, in pixels
 
end:Boolean — If this is the last element

Returns
Rectangle — A rectangle that is the bounding box of the dropIndicator icon as it will be drawn.
measure()method 
override public function measure():void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Override measure and adjust the targets measured width to match the total widths of the detail fields.

See also

updateDisplayList()method 
override public function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Updates the layout of the display list

Parameters

unscaledWidth:Number — The unscaled target width
 
unscaledHeight:Number — The unscaled target height