| Package | qnx.fuse.ui.text |
| Class | public final class TextLineRecycler |
| Inheritance | TextLineRecycler Object |
| Method | Defined 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 | ||
| addLineForReuse | () | method |
public static function addLineForReuse(line:TextLine):voidAdds 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():TextLineRemoves a text line from the cache in order to be reused.
ReturnsTextLine — A TextLine instance from the cache. If null is returned no lines are left in the cache.
|