Package pyjamas :: Module ui :: Class MenuItem
[hide private]
[frames] | no frames]

Class MenuItem

source code

UIObject --+
           |
          MenuItem

A widget that can be placed in a MenuBar. Menu items can either fire a Command when they are clicked, or open a cascading sub-menu.

Instance Methods [hide private]
 
__init__(self, text, asHTML, subMenu=None)
also callable as: MenuItem(text, cmd) MenuItem(text, asHTML, cmd) MenuItem(text, subMenu) MenuItem(text, asHTML)
source code
 
getCommand(self) source code
 
getHTML(self) source code
 
getParentMenu(self) source code
 
getSubMenu(self) source code
 
getText(self) source code
 
setCommand(self, cmd) source code
 
setHTML(self, html) source code
 
setSubMenu(self, subMenu) source code
 
setText(self, text) source code
 
setParentMenu(self, parentMenu) source code
 
setSelectionStyle(self, selected) source code

Inherited from UIObject: addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setWidth, setzIndex, sinkEvents, unsinkEvents