Packagecom.adobe.portfolio.components.details
Classpublic class DetailsCardItem
InheritanceDetailsCardItem Inheritance NavSkinnableComponent Inheritance spark.components.supportClasses.SkinnableComponent
Implements mx.controls.listClasses.IListItemRenderer

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

The DetailsCardItem class extends NavSkinnableComponent to implement a cell in a DetailsCard in the Details navigator.



Public Properties
 PropertyDefined By
  attachment : IAttachment
The IAttachment for this card item.
DetailsCardItem
  data : Object
The data object to be rendered.
DetailsCardItem
  detailsField : DetailsField = null
The DetailsField data object being rendered by this component, set through the public data setter.
DetailsCardItem
  fieldName : String
The field name of the IField/DetailsField for this card item.
DetailsCardItem
 InheritedskinState : String
The current skin state
NavSkinnableComponent
  sortedField : Boolean
The sorted state of this field.
DetailsCardItem
Protected Properties
 PropertyDefined By
 InheritedautoListen : AutoListen
NavSkinnableComponent
 InheritedautoWatch : AutoWatch
NavSkinnableComponent
Public Methods
 MethodDefined By
  
Constructor.
DetailsCardItem
 Inherited
Creates autoListen and autoWatch for automatically tracking listeners and watchers.
NavSkinnableComponent
  
getCalculatedWidth(field:DetailsField, measureField:UIFTETextField = null):Number
Get the ideal width for this card item.
DetailsCardItem
 Inherited
Uses autoListen and autoWatch to remove all listeners and watchers.
NavSkinnableComponent
 Inherited
setCurrentState(stateName:String, playTransition:Boolean = true):void
[override] Sets the current component state and skin state.
NavSkinnableComponent
  
Called when the sort order of the IAttachment fields change.
DetailsCardItem
Protected Methods
 MethodDefined By
 Inherited
addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void
NavSkinnableComponent
 Inherited
addWatcher(watcher:ChangeWatcher):void
NavSkinnableComponent
  
[override]
DetailsCardItem
 Inherited
detachSkin():void
[override]
NavSkinnableComponent
  
[override] Returns the current state of this instance, which is a variant of the component state depending on whether or not the component is selected.
DetailsCardItem
 Inherited
initStates():void
NavSkinnableComponent
  
partAdded(partName:String, instance:Object):void
[override] Called when a skin has added a skin part for this instance.
DetailsCardItem
 Inherited
partRemoved(partName:String, instance:Object):void
[override]
NavSkinnableComponent
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
  
dateTimeChooser:DateTimeChooser
Required: false Part Type: Static
The date/time chooser for user defined date fields.
DetailsCardItem
  
manyLinesTextEntry:FieldTextArea
Required: true Part Type: Static
The multi line text field for the card item.
DetailsCardItem
  
oneLineTextEntry:FieldTextInput
Required: true Part Type: Static
The one line text field for the card item.
DetailsCardItem
Public Constants
 ConstantDefined By
 InheritedSTATE_DISABLED : String = disabled
[static]
NavSkinnableComponent
 InheritedSTATE_NORMAL : String = normal
[static]
NavSkinnableComponent
Protected Constants
 ConstantDefined By
  collectionMgr : CollectionManager
The navigator's CollectionManager instance.
DetailsCardItem
Property Detail
attachmentproperty
attachment:IAttachment

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

The IAttachment for this card item. The DetailsCardItemSkin binds to this value and uses it to display the FieldTextArea field to render the field information.

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


Implementation
    public function get attachment():IAttachment
    public function set attachment(value:IAttachment):void
dataproperty 
data:Object

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

The data object to be rendered. Only DetailsField objects are supported.


Implementation
    public function get data():Object
    public function set data(value:Object):void
detailsFieldproperty 
public var detailsField:DetailsField = null

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

The DetailsField data object being rendered by this component, set through the public data setter.

fieldNameproperty 
fieldName:String

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

The field name of the IField/DetailsField for this card item. The DetailsCardItemSkin binds to this value and uses it to display the FieldTextArea field to render the field information.

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


Implementation
    public function get fieldName():String
    public function set fieldName(value:String):void
sortedFieldproperty 
sortedField:Boolean

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

The sorted state of this field. The DetailsCardItemSkin binds to this value and uses it to draw sorted fields differently from other fields.

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


Implementation
    public function get sortedField():Boolean
    public function set sortedField(value:Boolean):void
Constructor Detail
DetailsCardItem()Constructor
public function DetailsCardItem()

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

Constructor.

Method Detail
commitProperties()method
override protected function commitProperties():void

getCalculatedWidth()method 
public function getCalculatedWidth(field:DetailsField, measureField:UIFTETextField = null):Number

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

Get the ideal width for this card item. Usually this is the measured width of the text plus some padding.

Parameters

field:DetailsField — The DetailsField for this card item. This method can be called before the DetailsField is set, which is why this is passed as an argument.
 
measureField:UIFTETextField (default = null) — A field on the stage appropriate for measuring text.

Returns
Number — Width of the text plus some padding.
getCurrentSkinState()method 
override protected function getCurrentSkinState():String

Returns the current state of this instance, which is a variant of the component state depending on whether or not the component is selected.

Returns
String
partAdded()method 
override protected function partAdded(partName:String, instance:Object):void

Called when a skin has added a skin part for this instance.

Parameters

partName:String
 
instance:Object

updateSortState()method 
public function updateSortState():void

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

Called when the sort order of the IAttachment fields change.

Constant Detail
collectionMgrConstant
protected const collectionMgr:CollectionManager

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

The navigator's CollectionManager instance. All host interaction should go through this instance, rather than the INavigatorHost directly.