Packagecom.adobe.portfolio.components
Classpublic class Filecount
InheritanceFilecount Inheritance spark.components.supportClasses.SkinnableComponent
Implements IListenAndWatch

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

The Filecount class extends SkinnableComponent and displays the total number of attachments in the current folder, as well as the index of the attachment that is currently in focus.



Public Properties
 PropertyDefined By
  colorPalette : ColorPalette
The color palette being used by this object.
Filecount
  currentItems : IList
Filecount
  fileCount : int
The total number of attachments at the in the collection's current folder.
Filecount
  fileIndex : int
The index of the current focus attachment in the collection's current folder.
Filecount
  fontSize : int
Setting the font size on the label
Filecount
  showCurrentIndex : Boolean
A boolean indicating whether to display only the number of files, or both the current index and the number of files.
Filecount
Protected Properties
 PropertyDefined By
  fileInfoDirty : Boolean = true
A boolean indicating that the cached information concerning the fileCount and fileIndex needs to be synchronized.
Filecount
Public Methods
 MethodDefined By
  
Default constructor for Filecount.
Filecount
  
Function to setup the event listeners required by this component.
Filecount
  
Function to cleanup the event listeners required by this component.
Filecount
Protected Methods
 MethodDefined By
  
[override] Synchronizes the fileCount and fileIndex information, if necessary.
Filecount
  
[override]
Filecount
  
onCollectionEvent(event:CollectionEvent):void
A listener to respond to CollectionEvents on the current items.
Filecount
  
A listener to respond to CollectionMangagerEvents on the CollectionMgr.
Filecount
Property Detail
colorPaletteproperty
colorPalette:ColorPalette

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

The color palette being used by this object.

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


Implementation
    public function get colorPalette():ColorPalette
    public function set colorPalette(value:ColorPalette):void
currentItemsproperty 
currentItems:IList

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

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


Implementation
    public function get currentItems():IList
    public function set currentItems(value:IList):void
fileCountproperty 
fileCount:int

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

The total number of attachments at the in the collection's current folder.

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


Implementation
    public function get fileCount():int
    public function set fileCount(value:int):void
fileIndexproperty 
fileIndex:int

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

The index of the current focus attachment in the collection's current folder.

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


Implementation
    public function get fileIndex():int
    public function set fileIndex(value:int):void
fileInfoDirtyproperty 
protected var fileInfoDirty:Boolean = true

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

A boolean indicating that the cached information concerning the fileCount and fileIndex needs to be synchronized.

fontSizeproperty 
fontSize:int

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

Setting the font size on the label

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


Implementation
    public function get fontSize():int
    public function set fontSize(value:int):void
showCurrentIndexproperty 
showCurrentIndex:Boolean

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

A boolean indicating whether to display only the number of files, or both the current index and the number of files.

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


Implementation
    public function get showCurrentIndex():Boolean
    public function set showCurrentIndex(value:Boolean):void
Constructor Detail
Filecount()Constructor
public function Filecount()

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

Default constructor for Filecount.

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

Function to setup the event listeners required by this component.

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

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

Synchronizes the fileCount and fileIndex information, if necessary.

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

onCollectionEvent()method 
protected function onCollectionEvent(event:CollectionEvent):void

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

A listener to respond to CollectionEvents on the current items.

Parameters

event:CollectionEvent

onHostEvent()method 
protected function onHostEvent(event:CollectionManagerEvent):void

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

A listener to respond to CollectionMangagerEvents on the CollectionMgr.

Parameters

event:CollectionManagerEvent

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

Function to cleanup the event listeners required by this component. This should be called when the component is no longer needed, to prevent memory leaks.