The default list cell factory for text cells.
protected var cellHeight:int
protected var listCellClass:Class
protected var sameHeight:Boolean
protected var shareCelles:Boolean
public function DefaultListTextCellFactory(listCellClass:Class, shareCelles:Boolean = true, sameHeight:Boolean = true, height:int = -1)
Create a list cell(with text renderer) factory with a list cell class and other properties.
Parameters
| listCellClass:Class — the ListCell implementation, for example com.xlands.ui.list.UserListCell
|
| |
| shareCelles:Boolean (default = true) — (optional)is share cells for list items, default is true.
|
| |
| sameHeight:Boolean (default = true) — (optional)is all cells with same height, default is true.
|
| |
| height:int (default = -1) — (optional)the height for all cells if sameHeight, if not sameHeight,
this param can be miss, default is -1, it means will use a sample to count at the first time.
|
See also
public function createNewCell():ListCell
Returns
public function getCellHeight():int
Returns the height for all cells
Returns
See also
public function isAllCellHasSameHeight():Boolean
Returns
See also
public function isShareCells():Boolean
Returns
| Boolean — is share cells for items.
|
See also
public function setCellHeight(h:int):void
Sets the height for all cells
Parameters