Name

LzContextMenuItem (as2) — A menu item within a context menu

Synopsis

JavaScript: LzContextMenuItem
Type: Class
Access: public
Runtimes: as2
Topic: LFC.Views
Declared in: WEB-INF/lps/lfc/kernel/swf/LzContextMenu.lzs

Description

The class LzContextMenuItem represents a menu item within a context menu.

Superclass Chain

node (LzNode) » LzContextMenuItem

Known Subclasses

Details

Methods (6)

initialize()
public function initialize(title, del);
setCaption()
public function setCaption(caption : String);
LzContextMenuItem.setCaption Sets the text string which is displayed for the menu item
setDelegate()
public function setDelegate(delegate : LzDelegate);
LzContextMenuItem.setDelegate Sets the delegate which will be called when the menu item is selected
setEnabled()
public function setEnabled(val : boolean);
LzContextMenuItem.setEnabled
setSeparatorBefore()
public function setSeparatorBefore(val : boolean);
LzContextMenuItem.separatorBefore Draw a horizontal separator line before this item in the menu
setVisible()
public function setVisible(val : boolean);
LzContextMenuItem.setVisible Sets the function which will be called when the menu item is selected

JavaScript Synopsis

public LzContextMenuItem extends  LzNode  {
  prototype public function initialize (title, del);
  prototype public function setCaption (caption : String);
  prototype public function setDelegate (delegate : LzDelegate);
  prototype public function setEnabled (val : boolean);
  prototype public function setSeparatorBefore (val : boolean);
  prototype public function setVisible (val : boolean);
}