| Package | com.adobe.portfolio.components.details |
| Class | public class DetailsCard |
| Inheritance | DetailsCard SimpleCard NavSkinnableComponent spark.components.supportClasses.SkinnableComponent |
| Property | Defined By | ||
|---|---|---|---|
| adjustAspectRatio : Boolean [override] | DetailsCard | ||
![]() | colorPalette : ColorPalette
The color palette being used by this object. | SimpleCard | |
![]() | compressedSize : uint
The size of this card's underlying attachment as it is currently compressed
in the Navigator file. | SimpleCard | |
![]() | creationDate : Date
The creation date of this card's underlying attachment. | SimpleCard | |
| data : Object [override]
Subclass SimpleCard's data provider so we can pass the attachment on to
each of the card items. | DetailsCard | ||
![]() | delayThumbnailGeneration : Boolean
Indicates whether generation of the thumbnail image should be
delayed or not. | SimpleCard | |
![]() | description : String
The description of this card's underlying attachment. | SimpleCard | |
| details : Details | DetailsCard | ||
![]() | doubleClickEnabled : Boolean [override] [write-only]
Enables and disables double click events for this card. | SimpleCard | |
![]() | downSampleOK : Boolean
Indicates whether it is OK to reduce the size of the
image. | SimpleCard | |
![]() | dragging : Boolean
Is true if the item renderer is being dragged;
otherwise false. | SimpleCard | |
![]() | dropShadowPreference : String
The drop shadow effect preference. | SimpleCard | |
![]() | enableThumbnailGeneration : Boolean
Indicates whether generation of the thumbnail image is enabled or not. | SimpleCard | |
![]() | fileName : String
The file name of this card's underlying attachment. | SimpleCard | |
![]() | generateThumb : Boolean
Indicates whether or not to generate a thumbnail image for the card
| SimpleCard | |
![]() | isOpen : Boolean
Is true if the attachment is open in a native editor;
otherwise false. | SimpleCard | |
| itemIndex : int [override] | DetailsCard | ||
![]() | label : String
The String to display in the item renderer. | SimpleCard | |
![]() | mediumPreviewHasGlow : Boolean [read-only]
A boolean specifying if the skin should apply a glow to the mid-level preview
| SimpleCard | |
![]() | modDate : Date
The modification date of this card's underlying attachment. | SimpleCard | |
| oddCard : Boolean | DetailsCard | ||
![]() | padding : Point [read-only]
Get the horizontal and vertical padding for this UI component. | SimpleCard | |
![]() | previewComponent : IPreview [read-only]
The preview component for the simpleCard
| SimpleCard | |
![]() | rollOverPreference : String
A string specifying the preferred type of rollover effect on this component. | SimpleCard | |
| selected : Boolean [override] | DetailsCard | ||
![]() | showsCaret : Boolean
Is true if the item renderer can show itself as focused;
otherwise it is false. | SimpleCard | |
![]() | size : uint
The size of this card's underlying attachment, if it were to be uncompressed. | SimpleCard | |
![]() | skinState : String | NavSkinnableComponent | |
![]() | visible : Boolean [override] [write-only]
Set the visibility of the card
| SimpleCard | |
| Property | Defined By | ||
|---|---|---|---|
![]() | allowMultiPage : Boolean [read-only]
Should this card use a multi-page preview state. | SimpleCard | |
![]() | attachment : IAttachment = null
The IAttachment data object being rendered by this component. | SimpleCard | |
![]() | autoListen : AutoListen | NavSkinnableComponent | |
![]() | autoWatch : AutoWatch | NavSkinnableComponent | |
| fields : ArrayList | DetailsCard | ||
![]() | invalidPreview : Boolean
If true the preview for this card is invalid. | SimpleCard | |
![]() | mouseIsOver : Boolean
Returns true if the mouse is over the card;
returns false otherwise. | SimpleCard | |
![]() | preferredPreviewState : String [read-only]
The preferred preview state for this card
| SimpleCard | |
![]() | prefersMediaPreview : Boolean [read-only]
Does this card's attachment have a preferredPreviewState of AUDIO or VIDEO
| SimpleCard | |
![]() | previewMultiPageModel : IPreviewMultiPageModel [read-only]
Get a preview model that supports multipage preview of attachments
| SimpleCard | |
![]() | _skinState : String | NavSkinnableComponent | |
![]() | thumbnailMgr : ThumbnailManager [static]
The navigator's thumbnailManager instance. | SimpleCard | |
| Method | Defined By | ||
|---|---|---|---|
| DetailsCard | |||
![]() | addListenAndWatch():void | NavSkinnableComponent | |
![]() | getDimensionsUsingPreview(fitWidth:Number, fitHeight:Number):Point
Get the dimensions of the preview image. | SimpleCard | |
![]() | invalidatePreview(invalidateModel:Boolean = false, generateThumb:Boolean = true):void
Invalidate the current preview state for the card
| SimpleCard | |
![]() | removeListenAndWatch():void | NavSkinnableComponent | |
![]() | setCurrentState(stateName:String, playTransition:Boolean = true):void [override] | NavSkinnableComponent | |
![]() | setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void [override]
Sets the layout size of the card. | SimpleCard | |
![]() | toString():String [override]
The String to display in the item renderer. | SimpleCard | |
![]() | updateRenderer(oldRenderer:ISimpleCard):void
Update the renderer to use for the simpleCard
| SimpleCard | |
updateSortIndicators():void | DetailsCard | ||
| 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]
Save the current properties of this card. | SimpleCard | |
![]() | detachSkin():void [override] | NavSkinnableComponent | |
![]() | extensionFromAttachment():String
Returns the file extension for the attachment. | SimpleCard | |
![]() | generateThumbnail():void
Generate a thumbnail image for the underlying attachment. | SimpleCard | |
![]() | getAspectRatio():Number
Get the aspect ratio of the thumbnail for the attachment. | SimpleCard | |
![]() | getCurrentSkinState():String [override]
Returns the current skin state of this instance, which is
a variant of the component state depending on
whether or not the component is selected. | SimpleCard | |
![]() | getPreviewSize():Point
Get the size of the preview image
| SimpleCard | |
![]() | handlePreview():void
Have the collectionManager handle the preview for
the underlying attachment. | SimpleCard | |
![]() | hostPageCountChanged(val:uint):void
This function is called if the page count of the multipage model
has changed
| SimpleCard | |
![]() | initPageCount():void
Initialize the page count for the preview multipage model
to the page count of the underlying attachement. | SimpleCard | |
![]() | initStates():void | NavSkinnableComponent | |
![]() | invalidatePreviewFromSetData():void
Invalidate the preview because a new data object to be rendered has been set
| SimpleCard | |
measure():void [override] | DetailsCard | ||
![]() | mimeTypeFromAttachment():String
Returns the MIME type for the attachment. | SimpleCard | |
![]() | onAspectRatioChanged(event:PropertyChangeEvent):void
The event handler for changes in aspect ratio of the thumbnail. | SimpleCard | |
![]() | onAttachmentChange(evt:Event):void
Handles changes in the underlying attachement events
| SimpleCard | |
![]() | onEnableDynamicThumbnails(value:Boolean):void
Handle the enabling of dynamic thumbnails. | SimpleCard | |
![]() | onHostPropertyChange(event:PropertyChangeEvent):void
A listener for PropertyChangeEvents on the collectionManager. | SimpleCard | |
![]() | onIconChange(event:Event):void
Handle icon change events
| SimpleCard | |
partAdded(partName:String, instance:Object):void [override] Called when a skin has added a skin part for this instance. | DetailsCard | ||
![]() | partRemoved(partName:String, instance:Object):void [override]
This function is called when a skin has removed a skin part for this card instance. | SimpleCard | |
![]() | setAspectRatio(value:Number, mediaValue:Boolean = false):void
Set the aspect ratio of the thumbnail for the attachment. | SimpleCard | |
![]() | setAspectRatioField(value:Number):void
Set the aspect ratio of the appropriate field for the attachment
| SimpleCard | |
![]() | updatePreview(oldRenderer:ISimpleCard):void
Update the preview for this card. | SimpleCard | |
![]() | updatePreviewModelListeners(adding:Boolean):void
Update the listeners for preview model events. | SimpleCard | |
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 | ||
|---|---|---|---|---|
dataGroup:spark.components.DataGroup | Required: true Part Type: Static The data group that holds the card items. | DetailsCard | ||
![]() | icon:mx.controls.Image | Required: false Part Type: Static The icon image for the card | SimpleCard | |
![]() | paddingGroup:mx.core.UIComponent | Required: false Part Type: Static A UI Component whose left/right/top/bottom values can be adjusted to fit card UI to a particular aspect ratio without affecting the bounds of the card. | SimpleCard | |
![]() | ribbon:spark.components.Group | Required: false Part Type: Static A skin part representing the ribbon component that should be visible when the user is editing the attament in an external application. | SimpleCard | |
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.
| adjustAspectRatio | property |
adjustAspectRatio:Boolean[override] public function get adjustAspectRatio():Boolean public function set adjustAspectRatio(value:Boolean):void| data | property |
data:Object[override] Subclass SimpleCard's data provider so we can pass the attachment on to each of the card items.
public function get data():Object public function set data(value:Object):void| details | property |
details:Details public function get details():Details public function set details(value:Details):void| fields | property |
fields:ArrayList protected function get fields():ArrayList protected function set fields(value:ArrayList):void| itemIndex | property |
itemIndex:int[override] public function get itemIndex():int public function set itemIndex(value:int):void| oddCard | property |
oddCard:BooleanThis property can be used as the source for data binding.
public function get oddCard():Boolean public function set oddCard(value:Boolean):void| selected | property |
selected:Boolean[override] public function get selected():Boolean public function set selected(value:Boolean):void| DetailsCard | () | Constructor |
public function DetailsCard()| measure | () | method |
override protected function measure():void| partAdded | () | method |
override protected function partAdded(partName:String, instance:Object):voidCalled when a skin has added a skin part for this instance.
Parameters
partName:String | |
instance:Object |
| updateSortIndicators | () | method |
public function updateSortIndicators():void