Name

menuitem

Synopsis

LZX: menuitem
JavaScript: 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 (1)

command
<attribute name="command" value="null" />
public var command;
the command object assigned to be executed when this menuitem is selected

Methods (2)

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.

Events (1)

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

LZX Synopsis

<class name="menuitem" extends=" textlistitem ">
  <attribute name=" command " value="null" />
  <event name=" onselect " />
  <method name=" setCommand " args="cmd" />
  <method name=" setHilite " args="ishilite" />
</class>

JavaScript Synopsis

public menuitem extends  textlistitem  {
  public var command ;
  prototype public event onselect ;
  prototype public function setCommand (cmd : Command);
  prototype public function setHilite (ishilite);
}