Name

menuitem

Synopsis

LZX: menuitem
JavaScript: lz.menuitem
Type: Class
Access: public
Topic: Components.Laszlo Components
Declared in: lps/components/lz/menu.lzx

Superclass Chain

node (LzNode) » view (LzView) » basecomponent » basevaluecomponent » baselistitem » listitem » textlistitem » menuitem

Known Subclasses

Details

Properties (6)

command
<attribute name="command" value="null" />
public var command;
the command object assigned to be executed when this menuitem is selected
delaytime
<attribute name="delaytime" value="300" />
private var delaytime;
_doshowsubmenu
<attribute name="_doshowsubmenu" value="false" />
private var _doshowsubmenu;
hidesubmenu_del
<attribute name="hidesubmenu_del" value="null" />
private var hidesubmenu_del;
showsubmenu_del
<attribute name="showsubmenu_del" value="null" />
private var showsubmenu_del;
_submenu
<attribute name="_submenu" value="null" />
private var _submenu;

Methods (10)

_applystyle()
<method name="_applystyle" args="s" />
private function _applystyle(s);
hideSubmenu()
<method name="hideSubmenu" />
private function hideSubmenu();
if a menuitem is unhilited and has a submenu then this method is called by a delegate after a period of time specified by delaytime
init()
<method name="init" />
private function init();
_opensubmenu()
<method name="_opensubmenu" args="doopen" />
private function _opensubmenu(doopen);
setCommand()
<method name="setCommand" args="cmd" />
public function setCommand(cmd : Command);
call this method to set the command associated with a menuitem
setHilite()
<method name="setHilite" args="ishilite" />
public function setHilite(ishilite);
Called automatically by the menu. The default action uses the colors defined in a styles object to change the colors of the background and text.
setSelected()
<method name="setSelected" args="isSelected" />
private function setSelected(isSelected);
_showEnabled()
<method name="_showEnabled" />
private function _showEnabled();
showSubmenu()
<method name="showSubmenu" />
private function showSubmenu();
if a menuitem is hilited and has a submenu then this method is called by a delegate after a period of time specified by delaytime
toString()
<method name="toString" />
private function toString();

Events (1)

onselect
<attribute name="onselect" />
public event onselect;
this event is sent to the menuitem when it is seleted

LZX Synopsis

<class name="lz.menuitem" extends=" lz.textlistitem ">
  <attribute name=" command " value="null" />
  <attribute name=" delaytime " value="300" />
  <attribute name=" _doshowsubmenu " value="false" />
  <attribute name=" hidesubmenu_del " value="null" />
  <attribute name=" showsubmenu_del " value="null" />
  <attribute name=" _submenu " value="null" />
  <method name=" _applystyle " args="s" />
  <method name=" hideSubmenu " />
  <method name=" init " />
  <event name=" onselect " />
  <method name=" _opensubmenu " args="doopen" />
  <method name=" setCommand " args="cmd" />
  <method name=" setHilite " args="ishilite" />
  <method name=" setSelected " args="isSelected" />
  <method name=" _showEnabled " />
  <method name=" showSubmenu " />
  <method name=" toString " />
</class>

JavaScript Synopsis

public lz.menuitem extends  lz.textlistitem  {
  public var command ;
  private var delaytime ;
  private var _doshowsubmenu ;
  private var hidesubmenu_del ;
  private var showsubmenu_del ;
  private var _submenu ;
  prototype private function _applystyle (s);
  prototype private function hideSubmenu ();
  prototype private function init ();
  prototype public event onselect ;
  prototype private function _opensubmenu (doopen);
  prototype public function setCommand (cmd : Command);
  prototype public function setHilite (ishilite);
  prototype private function setSelected (isSelected);
  prototype private function _showEnabled ();
  prototype private function showSubmenu ();
  prototype private function toString ();
}