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

Class MenuBar

source code

UIObject --+    
           |    
      Widget --+
               |
              MenuBar

A standard menu bar widget. A menu bar can contain any number of menu items, each of which can either fire a Command or open a cascaded menu bar.

Instance Methods [hide private]
 
__init__(self, vertical=False) source code
 
addItem(self, item, asHTML=None, popup=None) source code
 
clearItems(self) source code
 
getAutoOpen(self) source code
 
onBrowserEvent(self, event) source code
 
onPopupClosed(self, sender, autoClosed) source code
 
removeItem(self, item) source code
 
setAutoOpen(self, autoOpen) source code
 
closeAllParents(self) source code
 
doItemAction(self, item, fireCommand) source code
 
onDetach(self)
Called when this widget is being removed from the DOM tree of the document.
source code
 
itemOver(self, item) source code
 
close(self) source code
 
findItem(self, hItem) source code
 
getItemContainerElement(self) source code
 
onHide(self) source code
 
onShow(self) source code
 
selectItem(self, item) source code

Inherited from Widget: getID, getLayoutData, getParent, isAttached, onAttach, onLoad, removeFromParent, setID, setLayoutData, setParent

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

Method Details [hide private]

__init__(self, vertical=False)
(Constructor)

source code 
Overrides: Widget.__init__

onBrowserEvent(self, event)

source code 
Overrides: Widget.onBrowserEvent

onDetach(self)

source code 

Called when this widget is being removed from the DOM tree of the document.

Overrides: Widget.onDetach
(inherited documentation)