class org.aswing.DefaultListTextCellFactory

The default list cell factory for text cells. @author paling

Instance Fields

function new(listCellClass:Class<Dynamic>, ?shareCelles:Bool = true, ?sameHeight:Bool = true, ?height:Int = -1): Void

Create a list cell(with text renderer) factory with a list cell class and other properties. @see #isShareCells()

listCellClass

the 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 -1, it means will use a sample to count at the first time.

function getCellHeight(): Int

Returns the height for all cells @see ListCellFactory#getCellHeight()

function isAllCellHasSameHeight(): Bool

@see ListCellFactory#isAllCellHasSameHeight()

function isShareCells(): Bool

@see ListCellFactory#isShareCells()

returns

is share cells for items.

function setCellHeight(h:Int): Void

Sets the height for all cells