Packagelunas
Classpublic class StyleCollector
InheritanceStyleCollector Inheritance Object

This collector use a Map to register all Displays in the application.



Public Methods
 MethodDefined By
  
clear():void
[static] Removes all elements in the StyleCollector.
StyleCollector
  
contains(id:*):Boolean
[static] Returns true if the StyleCollector contains the specified id.
StyleCollector
  
get(id:*):Style
[static] Returns the IStyle object register in the collector with the id passed-in argument.
StyleCollector
  
insert(id:*, style:Style):Boolean
[static] Insert a IStyle with an unique id into the StyleCollector.
StyleCollector
  
isEmpty():Boolean
[static] Returns 'true' if the StyleCollector is 'empty'.
StyleCollector
  
remove(id:*):void
[static] Removes the specified IStyle object with the passed-in id value into the StyleCollector.
StyleCollector
  
size():uint
[static] Returns the size of the StyleCollector.
StyleCollector
Method Detail
clear()method
public static function clear():void

Removes all elements in the StyleCollector.

contains()method 
public static function contains(id:*):Boolean

Returns true if the StyleCollector contains the specified id.

Parameters

id:*

Returns
Booleantrue if the StyleCollector contains the specified id.
get()method 
public static function get(id:*):Style

Returns the IStyle object register in the collector with the id passed-in argument.

Parameters

id:*

Returns
Style — the IStyle object register in the collector with the id passed-in argument.
insert()method 
public static function insert(id:*, style:Style):Boolean

Insert a IStyle with an unique id into the StyleCollector.

Parameters

id:* — the Id of the IStyle to register
 
style:Style — The IStyle object to insert in the collector.

Returns
Boolean

Throws
ArgumentError — if the specified 'id' is already register in the collector.
isEmpty()method 
public static function isEmpty():Boolean

Returns 'true' if the StyleCollector is 'empty'.

Returns
Boolean — 'true' if the StyleCollector is 'empty'.
remove()method 
public static function remove(id:*):void

Removes the specified IStyle object with the passed-in id value into the StyleCollector.

Parameters

id:*

size()method 
public static function size():uint

Returns the size of the StyleCollector.

Returns
uint — the size of the StyleCollector.