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

A component that 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
[read-only] 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 NavHostEvents on the CollectionMgr.
Filecount
Property Detail
colorPaletteproperty
colorPalette:ColorPalette

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

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

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

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

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

fontSizeproperty 
fontSize:int

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  [read-only]

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
Constructor Detail
Filecount()Constructor
public function Filecount()

Default constructor for Filecount.

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

Function to setup the event listeners required by this component.

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

Synchronizes the fileCount and fileIndex information, if necessary.

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

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

A listener to respond to CollectionEvents on the current items.

Parameters

event:CollectionEvent

onNavHostEvent()method 
protected function onNavHostEvent(event:NavHostEvent):void

A listener to respond to NavHostEvents on the CollectionMgr.

Parameters

event:NavHostEvent

removeListenAndWatch()method 
public function removeListenAndWatch():void

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.