ListCell TableCell TreeCell Abstract implementation of an AsWing cell component featuring a contextual menu management.
Take a look on Fever side to see Context menu API.
2 Events type are broadcasted when context menu is engaged.
Extends this class to create your own cell.
Example
var itemDelete : FvContextMenuItem = new FvContextMenuItem( "delete" ); var itemDisplay : FvContextMenuItem = new FvContextMenuItem( "show" ); var list : JList = new JList( ["male", "female", "others ?"], new FvListCellFactory ( new FvDefaultContextMenuCell(), [ itemDelete, itemDisplay ] ) ); list.addEventListener( FvContextMenuCellEvent.onContextCellItemEVENT, _onListClick, this );
public function setCellValue(value):VoidSets the value of this cell.
Overrides method to keep strong typing with your own value type.
value | which should represent on the component of this cell. |
public function getCellComponent():ComponentReturns concrete cell component.
Overrides method to keep strong typing with your own component.
public function setListCellStatus(component:JList, isSelected:Boolean, index:Number):VoidSets the list cell status, include the owner-JList isSelected, index position.
isSelected | true to set the cell selected, false to set not selected. |
index | the row position |
public function setTableCellStatus(component:JTable, isSelected:Boolean, row:Number, column:Number):VoidSets the table cell status, include the owner-JTable isSelected, row position, column position.
isSelected | true to set the cell selected, false to set not selected. |
row | the row position |
column | the column position |
public function setTreeCellStatus(tree:JTree, selected:Boolean, expanded:Boolean, leaf:Boolean, row:Number):VoidSets the table cell status, include the owner-JTree isSelected, row position, column position.
expanded | true the node is currently expanded, false not. |
leaf | true the node represets a leaf, false not. |
row | the row position |