| Package | org.aswing |
| Class | public class GeneralListCellFactory |
| Implements | ListCellFactory |
| Method | Defined 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 | |||
|
getCellHeight():int
Returns the height for all cells
| GeneralListCellFactory | ||
|
isAllCellHasSameHeight():Boolean
| GeneralListCellFactory | ||
|
isShareCells():Boolean
| GeneralListCellFactory | ||
|
setCellHeight(h:int):void
Sets the height for all cells
| GeneralListCellFactory | ||
| 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.
ParameterslistCellClass: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
| createNewCell | () | method |
| getCellHeight | () | method |
public function getCellHeight():intReturns the height for all cells
Returnsint |
See also
| isAllCellHasSameHeight | () | method |
public function isAllCellHasSameHeight():BooleanReturns
Boolean |
See also
| isShareCells | () | method |
public function isShareCells():BooleanReturns
Boolean — is share cells for items.
|
See also
| setCellHeight | () | method |
public function setCellHeight(h:int):voidSets the height for all cells
Parametersh:int |