Name
LzContextMenuItem (dhtml) — A menu item within a context menu
Description
The class LzContextMenuItem
represents a menu item within a context menu.
Details
Methods (7)
-
initialize()
-
public function initialize(title, del);
-
__select()
-
private function __select();
-
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 visibility of the menu item
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
setVisible
(
val : boolean);
}