Packagecom.adobe.portfolio.components
Classpublic class NavSkinnableComponent
InheritanceNavSkinnableComponent Inheritance spark.components.supportClasses.SkinnableComponent
Implements IListenAndWatch
Subclasses AudioPreview, CardTip, Details, DetailsCardItem, DetailsHeaderItem, FolderBack, MarqueeSelection, NavAlert, Preview, PreviewHUD, ScrollPad, SimpleCard

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

The NavSkinnableComponent class extends SkinnableComponent to provide extra navigator specific functionality. It implements the IListenAndWatch interface and synchronizes the currentState with the skin state.



Public Properties
 PropertyDefined By
  skinState : String
The current skin state
NavSkinnableComponent
Protected Properties
 PropertyDefined By
  autoListen : AutoListen
NavSkinnableComponent
  autoWatch : AutoWatch
NavSkinnableComponent
Public Methods
 MethodDefined By
  
Constructor.
NavSkinnableComponent
  
Creates autoListen and autoWatch for automatically tracking listeners and watchers.
NavSkinnableComponent
  
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
Protected Methods
 MethodDefined By
  
addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void
NavSkinnableComponent
  
addWatcher(watcher:ChangeWatcher):void
NavSkinnableComponent
  
detachSkin():void
[override]
NavSkinnableComponent
  
[override]
NavSkinnableComponent
  
initStates():void
NavSkinnableComponent
  
partRemoved(partName:String, instance:Object):void
[override]
NavSkinnableComponent
Public Constants
 ConstantDefined By
  STATE_DISABLED : String = disabled
[static]
NavSkinnableComponent
  STATE_NORMAL : String = normal
[static]
NavSkinnableComponent
Property Detail
autoListenproperty
protected var autoListen:AutoListen

autoWatchproperty 
protected var autoWatch:AutoWatch

skinStateproperty 
skinState:String

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

The current skin state


Implementation
    public function get skinState():String
    public function set skinState(value:String):void
Constructor Detail
NavSkinnableComponent()Constructor
public function NavSkinnableComponent()

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

Constructor.

Method Detail
addListenAndWatch()method
public function addListenAndWatch():void

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

Creates autoListen and autoWatch for automatically tracking listeners and watchers.

addListener()method 
protected function addListener(listener:IEventDispatcher, type:String, handler:Function, useCapture:Boolean = false, priority:int = 0):void

Parameters

listener:IEventDispatcher
 
type:String
 
handler:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)

addWatcher()method 
protected function addWatcher(watcher:ChangeWatcher):void

Parameters

watcher:ChangeWatcher

detachSkin()method 
override protected function detachSkin():void

getCurrentSkinState()method 
override protected function getCurrentSkinState():String

Returns
String
initStates()method 
protected function initStates():void

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

Parameters

partName:String
 
instance:Object

removeListenAndWatch()method 
public function removeListenAndWatch():void

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

Uses autoListen and autoWatch to remove all listeners and watchers.

setCurrentState()method 
override 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

Sets the current component state and skin state.

Parameters

stateName:String
 
playTransition:Boolean (default = true)

Constant Detail
STATE_DISABLEDConstant
public static const STATE_DISABLED:String = disabled

STATE_NORMALConstant 
public static const STATE_NORMAL:String = normal