Class org.aswing.GeneralListCellFactory

Implemented Interfaces

ListCellFactory

Description

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

Method Index

new GeneralListCellFactory()
createNewCell(), getCellHeight(), isAllCellHasSameHeight(), isShareCells(), setCellHeight()

Constructor Detail

GeneralListCellFactory

public function GeneralListCellFactory(listCellClass:Function, shareCelles:Boolean, sameHeight:Boolean, height:Number)

Parameters

listCellClassthe ListCell implementation, for example com.xlands.ui.list.UserListCell
shareCelles(optional)is share cells for list items, default is true.
sameHeight(optional)is all cells with same height, default is true.
height(optional)the height for all cells if sameHeight, if not sameHeight, this param can be miss, default is 22.

See Also

Method Detail

createNewCell

public function createNewCell():ListCell

Description copied from ListCellFactory

Creates a new list cell.

Specified By

createNewCell() in org.aswing.ListCellFactory

isAllCellHasSameHeight

public function isAllCellHasSameHeight():Boolean

isShareCells

public function isShareCells():Boolean

Return

is share cells for items.

Specified By

isShareCells() in org.aswing.ListCellFactory

See Also

setCellHeight

public function setCellHeight(h:Number):Void

Sets the height for all cells

getCellHeight

public function getCellHeight():Number

Returns the height for all cells

Specified By

getCellHeight() in org.aswing.ListCellFactory

See Also