Packageorg.aswing
Classpublic class GeneralListCellFactory
ImplementsListCellFactory

GeneralListCellFactory let you can just specified a ListCell implemented class and other params to create a ListCellFactory



Public Methods
 MethodDefined by
  
GeneralListCellFactory(listCellClass:Class, shareCelles:Boolean = true, sameHeight:Boolean = true, height:int = 22)
Create a list cell factory with a list cell class and other properties.
GeneralListCellFactory
  
GeneralListCellFactory
  
Returns the height for all cells
GeneralListCellFactory
  
GeneralListCellFactory
  
isShareCells():Boolean
GeneralListCellFactory
  
setCellHeight(h:int):void
Sets the height for all cells
GeneralListCellFactory
Constructor detail
GeneralListCellFactory()constructor
public function GeneralListCellFactory(listCellClass:Class, shareCelles:Boolean = true, sameHeight:Boolean = true, height:int = 22)

Create a list cell 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 = 22) — (optional)the height for all cells if sameHeight, if not sameHeight, this param can be miss, default is 22.

See also

Method detail
createNewCell()method
public function createNewCell():ListCell

Returns
ListCell
getCellHeight()method 
public function getCellHeight():int

Returns the height for all cells

Returns
int

See also

isAllCellHasSameHeight()method 
public function isAllCellHasSameHeight():Boolean

Returns
Boolean

See also

isShareCells()method 
public function isShareCells():Boolean

Returns
Boolean — is share cells for items.

See also

setCellHeight()method 
public function setCellHeight(h:int):void

Sets the height for all cells

Parameters
h:int