Packagecom.adobe.portfolio.components
Classpublic class CardTip
InheritanceCardTip Inheritance NavSkinnableComponent Inheritance spark.components.supportClasses.SkinnableComponent
Implements mx.core.IDataRenderer

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

The CardTip class extends NavSkinnableComponent and is used in conjunction with CardSlider to display a card thumbnail.



Public Properties
 PropertyDefined By
  cardName : String
The name of the card displayed by the CardTip.
CardTip
  cardProvider : ICardProvider
A CardProvider used to obtain information about the thumbnail.
CardTip
  data : Object
The index of the card whose thumb should be displayed (formatted as a String).
CardTip
 InheritedskinState : String
The current skin state
NavSkinnableComponent
Protected Properties
 PropertyDefined By
 InheritedautoListen : AutoListen
NavSkinnableComponent
 InheritedautoWatch : AutoWatch
NavSkinnableComponent
  pendingCard : ISimpleCard
CardTip
Public Methods
 MethodDefined By
  
Constructor.
CardTip
 Inherited
Creates autoListen and autoWatch for automatically tracking listeners and watchers.
NavSkinnableComponent
 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
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
  
attachSkin():void
[override]
CardTip
 Inherited
detachSkin():void
[override]
NavSkinnableComponent
 Inherited
[override]
NavSkinnableComponent
 Inherited
initStates():void
NavSkinnableComponent
  
partAdded(partName:String, instance:Object):void
[override]
CardTip
 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
  Required: true Part Type: Static
A required skin part that is used to display a card thumbnail.
CardTip
Public Constants
 ConstantDefined By
 InheritedSTATE_DISABLED : String = disabled
[static]
NavSkinnableComponent
 InheritedSTATE_NORMAL : String = normal
[static]
NavSkinnableComponent
Property Detail
cardNameproperty
cardName:String

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

The name of the card displayed by the CardTip.

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


Implementation
    public function get cardName():String
    public function set cardName(value:String):void
cardProviderproperty 
cardProvider:ICardProvider

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

A CardProvider used to obtain information about the thumbnail.

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


Implementation
    public function get cardProvider():ICardProvider
    public function set cardProvider(value:ICardProvider):void
dataproperty 
data:Object

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

The index of the card whose thumb should be displayed (formatted as a String). The use of Object and String instead of just an int is dictated by the HSlider component.

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


Implementation
    public function get data():Object
    public function set data(value:Object):void
pendingCardproperty 
protected var pendingCard:ISimpleCard

Constructor Detail
CardTip()Constructor
public function CardTip()

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

Constructor.

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

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

Parameters

partName:String
 
instance:Object