Packagecom.adobe.portfolio.cards
Interfacepublic interface IBasicCard extends ISimpleCard, flash.events.IEventDispatcher, mx.core.IVisualElement
Implementors BasicCard

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

IBasicCard is an interface that exposes the relevant information from a BasicCard implementation, to make it suitable for skinning. Skin classes should reference this interface rather than refencing BasicCard directly.



Public Properties
 PropertyDefined By
 InheritedcolorPalette : ColorPalette
[read-only] The color palette being used by this object.
ISimpleCard
 InheritedcompressedSize : uint
[read-only] The size of this card's underlying attachment as it is currently compressed in the Navigator file.
ISimpleCard
 InheritedcreationDate : Date
[read-only] The creation date of this card's underlying attachment.
ISimpleCard
  currentState : String
[read-only] Get the current state of the basicCard
IBasicCard
 Inheriteddata : Object
The data object to be renderered.
ISimpleCard
 InheriteddelayThumbnailGeneration : Boolean
[write-only] Delay the creation of the thumbnail image for this card.
ISimpleCard
 Inheriteddescription : String
The description of this card's underlying attachment.
ISimpleCard
 InheriteddoubleClickEnabled : Boolean
[write-only] Enable double clicking events.
ISimpleCard
 InheriteddownSampleOK : Boolean
true if it is OK to scale down the image; otherwise false.
ISimpleCard
 InheriteddropShadowPreference : String
[read-only] Returns the preferred drop shadow effect for the card
ISimpleCard
 InheritedenableThumbnailGeneration : Boolean
Allow the creation of the thumbnail image for this card.
ISimpleCard
 InheritedfileName : String
[read-only] The file name of this card's underlying attachment.
ISimpleCard
 InheritedmodDate : Date
[read-only] The modification date of this card's underlying attachment.
ISimpleCard
 Inheritedpadding : Point
[read-only] Get the padding around a card.
ISimpleCard
 InheritedpreviewComponent : IPreview
[read-only] Returns the preview component for this card.
ISimpleCard
 InheritedrollOverPreference : String
[read-only] Returns the preferred roll over effect for the card
ISimpleCard
 Inheritedselected : Boolean
true if the item renderer can show itself as selected; otherwise false.
ISimpleCard
 Inheritedsize : uint
[read-only] The size of this card's underlying attachment, if it were to be uncompressed.
ISimpleCard
Public Methods
 MethodDefined By
 Inherited
getDimensionsUsingPreview(maxWidth:Number, maxHeight:Number):Point
Returns the width and height dimensions to use for the folder card.
ISimpleCard
 Inherited
invalidatePreview(invalidateModel:Boolean = false, generateThumb:Boolean = true):void
invalidates the current preview
ISimpleCard
  
setCurrentState(stateName:String, playTransition:Boolean = true):void
Set the current state of the basicCard
IBasicCard
 Inherited
setFocus():void
Give this simpleCard the focus.
ISimpleCard
 Inherited
updateRenderer(oldRenderer:ISimpleCard):void
Update the renderer to use for the basicCard
ISimpleCard
Skin States

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.


 Skin State Description Defined By
  
infoNormal
IBasicCard
  
infoOver
IBasicCard
  
infoOverAndSelected
IBasicCard
  
infoSelected
IBasicCard
  
largeNormal
IBasicCard
  
largeOver
IBasicCard
  
largeOverAndSelected
IBasicCard
  
largeSelected
IBasicCard
  
mediumNormal
IBasicCard
  
mediumOver
IBasicCard
  
mediumOverAndSelected
IBasicCard
  
mediumSelected
IBasicCard
  
smallNormal
IBasicCard
  
smallOver
IBasicCard
  
smallOverAndSelected
IBasicCard
  
smallSelected
IBasicCard
Property Detail
currentStateproperty
currentState:String  [read-only]

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

Get the current state of the basicCard


Implementation
    public function get currentState():String
Method Detail
setCurrentState()method
public function setCurrentState(stateName:String, playTransition:Boolean = true):void

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

Set the current state of the basicCard

Parameters

stateName:String — The name of the new current state
 
playTransition:Boolean (default = true) — If true then play the state transition effect.