Package | com.adobe.portfolio.components.details |
Class | public class DetailsCardItem |
Inheritance | DetailsCardItem ![]() ![]() |
Implements | mx.controls.listClasses.IListItemRenderer |
Language Version : | ActionScript 3.0 |
Product Version : | Portfolio 10.0 |
Runtime Versions : | Flash Player 10.1, AIR 2.0 |
Property | Defined 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 | ||
![]() | skinState : String
The current skin state
| NavSkinnableComponent | |
sortedField : Boolean
The sorted state of this field. | DetailsCardItem |
Method | Defined By | ||
---|---|---|---|
Constructor. | DetailsCardItem | ||
![]() | addListenAndWatch():void
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 | ||
![]() | removeListenAndWatch():void
Uses autoListen and autoWatch to remove all listeners and watchers. | NavSkinnableComponent | |
![]() | setCurrentState(stateName:String, playTransition:Boolean = true):void [override]
Sets the current component state and skin state. | NavSkinnableComponent | |
updateSortState():void
Called when the sort order of the IAttachment fields change. | DetailsCardItem |
Method | Defined By | ||
---|---|---|---|
![]() | addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void | NavSkinnableComponent | |
![]() | addWatcher(watcher:ChangeWatcher):void | NavSkinnableComponent | |
commitProperties():void [override] | DetailsCardItem | ||
![]() | detachSkin():void [override] | NavSkinnableComponent | |
getCurrentSkinState():String [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 | ||
![]() | initStates():void | NavSkinnableComponent | |
partAdded(partName:String, instance:Object):void [override] Called when a skin has added a skin part for this instance. | DetailsCardItem | ||
![]() | partRemoved(partName:String, instance:Object):void [override] | NavSkinnableComponent |
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 |
Constant | Defined By | ||
---|---|---|---|
collectionMgr : CollectionManager
The navigator's CollectionManager instance. | DetailsCardItem |
attachment | property |
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.
public function get attachment():IAttachment
public function set attachment(value:IAttachment):void
data | property |
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.
public function get data():Object
public function set data(value:Object):void
detailsField | property |
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.
fieldName | property |
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.
public function get fieldName():String
public function set fieldName(value:String):void
sortedField | property |
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.
public function get sortedField():Boolean
public function set sortedField(value:Boolean):void
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.
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.
|
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.
ReturnsString |
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.
collectionMgr | Constant |
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.