Would you like to tell us how we are doing?

You bet No thanks
qnx.fuse.ui.text.TextLineRecycler

TextLineRecycler

Methods


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

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

Class information:
BlackBerry 10 Version:   10.0.0



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()


public static function addLineForReuse(line:TextLine):void

Adds a TextLine instance to the cache so it can be reused.

Recycling a TextLine allows a component to use the TextBlock.recreateTextLine() method instead of the TextBlock.createTextLine() method. Before you add 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()


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.