Class fvaswing.cells.FvDefaultContextMenuCell

Description

Basic cell implementation based on FvAbstractContextMenuCell abstract class.

Creates a JLabel as main cell component.

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 );
 

Method Index

new FvDefaultContextMenuCell()
getCellComponent(), setCellValue()

Inherited from FvAbstractContextMenuCell

Constructor Detail

FvDefaultContextMenuCell

public function FvDefaultContextMenuCell(itemList:Array)

Constructor.

Method Detail

setCellValue

public function setCellValue(value):Void

Sets the value of this cell.

Parameters

valuewhich should represent on the component of this cell.

Overrides

setCellValue() in fvaswing.cells.FvAbstractContextMenuCell

getCellComponent

public function getCellComponent():JLabel

Returns concrete cell component.

Overrides method to keep strong typing with your own component.