Packageqnx.fuse.ui.text
Classpublic final class TextLineRecycler
InheritanceTextLineRecycler Inheritance Object

The TextLineRecycler is used by the text components to re-use TextLines.



Public Methods
 MethodDefined By
  
addLineForReuse(line:TextLine):void
[static] Adds a TextLine instance to the cache so it can be reused.
TextLineRecycler
  
getLineForReuse():TextLine
[static] Removes a text line from the cache in order to be reused.
TextLineRecycler
Method Detail
addLineForReuse()method
public static function addLineForReuse(line:TextLine):void

Adds a TextLine instance to the cache so it can be reused. Recycling TextLine's allows components to use the TextBlock.recreateTextLine method instead of the TextBlock.createTextLine method. Before adding a line to the cache it must not be on the stage, it's userData property must be null and it's validity property must be TextLineValidity.INVALID or TextLineValidity.STATIC.

Parameters

line:TextLine — The TextLine instance to be cached.

getLineForReuse()method 
public static function getLineForReuse():TextLine

Removes a text line from the cache in order to be reused.

Returns
TextLine — A TextLine instance from the cache. If null is returned no lines are left in the cache.