Packageorg.aswing
Classpublic class DefaultListTextCellFactory
ImplementsListCellFactory
SubclassesDefaultComboBoxListCellFactory, DefaultListCellFactory

The default list cell factory for text cells.



Protected Properties
 PropertyDefined by
  cellHeight : int
DefaultListTextCellFactory
  listCellClass : Class
DefaultListTextCellFactory
  sameHeight : Boolean
DefaultListTextCellFactory
  shareCelles : Boolean
DefaultListTextCellFactory
Public Methods
 MethodDefined by
  
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.
DefaultListTextCellFactory
  
DefaultListTextCellFactory
  
Returns the height for all cells
DefaultListTextCellFactory
  
DefaultListTextCellFactory
  
isShareCells():Boolean
DefaultListTextCellFactory
  
setCellHeight(h:int):void
Sets the height for all cells
DefaultListTextCellFactory
Property detail
cellHeightproperty
protected var cellHeight:int
listCellClassproperty 
protected var listCellClass:Class
sameHeightproperty 
protected var sameHeight:Boolean
shareCellesproperty 
protected var shareCelles:Boolean
Constructor detail
DefaultListTextCellFactory()constructor
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

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