Class zebkit.ui.Menubar
extends <zebkit.ui.Menu>

Menu bar UI component class. Menu bar can be build in any part of UI application. There is no restriction regarding the placement of the component.

 var canvas = new zebkit.ui.zCanvas(300,200);

 var mbar = new zebkit.ui.Menubar([
         content: "Item 1",
         sub    : [
             "Subitem 1.1",
             "Subitem 1.2",
             "Subitem 1.3"
         content: "Item 2",
         sub: [
             "Subitem 2.1",
             "Subitem 2.2",
             "Subitem 2.3"
         content: "Item 3"

 canvas.root.add("bottom", mbar);
zebkit.ui.Menubar ( )

Inherited methods:
$canceled(m)    $childMenu( )    $hideMenu( )    $pointerMoved(x, y)    $select(o)    $setConstraints(c)    $showSubMenu(sub)    $topMenu( )    add(constr, d)    addDecorative(c)    byConstraints([p], c)    byPath(path, [cb])    calcMaxItemSize( )    calcPreferredSize(target)    childCompEnabled(e)    doLayout( )    drawView(g, id, x, y, w, h)    drawViewAt(g, id, index)    findSelectable(off, d)    fire(name, [path], [params])    fireSelected(prev)    focused( )    getBottom( )    getCanvas( )    getComponentAt(x, y)    getHorPadding( )    getItemIdxAt(x, y)    getItemLocation(i)    getItemSize(i)    getLeft( )    getLines( )    getLineSize(l)    getMaxOffset( )    getMenuAt(index)    getMenuItem(i)    getPreferredSize( )    getRight( )    getSelected( )    getTop( )    getValue( )    getVerPadding( )    hasFocus( )    hasSelectableItems( )    indexMenuOf(menu)    indexOf(c)    insert(i, constr, d)    invalidate( )    invalidateLayout( )    isDecorative(i)    isItemSelectable(i)    isSelected(i)    keyPressed(e)    keyTyped(e)    kidAdded(index, constr, l)    kidRemoved(i, l)    laidout( )    load(JSON)    lookupItem(ch)    makeItemVisible(index)    off([eventName], [path], [cb])    on([eventName], [path], cb)    pageSize(d)    paintComponent(g)    paintViewAt(g, ax, ay, v)    pointerExited(e)    properties([path], props)    property([path], name, value)    recalc( )    relocated(px, py)    remove(c)    removeAll( )    removeAt(i)    removeByConstraints(ctr)    removeMe([after])    repaint([x], [y], [w], [h])    repaintByOffsets(p, n)    replaceMe([ctr], c)    requestFocus( )    requestFocusIn([timeout])    resized(pw, ph)    select(index)    setAt(i, d)    setBackground(v)    setBorder([v])    setBorderLayout([gap])    setBottomPadding(bottom)    setBounds(x, y, w, h)    setByConstraints(constr, c)    setConstraints(ctr)    setEnabled(b)    setFlowLayout([ax], [ay], [dir], [gap])    setId(id)    setKids(a)    setLayout(m)    setLeftPadding(left)    setListLayout([ax], [gap])    setLocation(xx, yy)    setMenuAt(i, m)    setModel(m)    setPadding(v)    setParent(o)    setPosition(c)    setPreferredSize(w, h)    setProperties([path], props)    setRasterLayout([usePsSize])    setRightPadding(right)    setSize(w, h)    setStackLayout([gap])    setTopPadding(top)    setValue(v)    setViewProvider(v)    setViews(views)    setVisible(b)    toBack( )    toFront( )    toPreferredHeight( )    toPreferredSize( )    toPreferredWidth( )    toView(target)    validate( )    validateMetric( )    vrp( )   

Inherited attributes:
public zebkit.draw.View bg    public zebkit.draw.View border    public Boolean canHaveFocus    public Object constraints    public Integer height    public Boolean isComboMode    public Boolean isEnabled    public Boolean isValid    public Boolean isVisible    public Array kids    public zebkit.layout.Layout layout    public model    public zebkit.layout.Layoutable parent    public zebkit.util.Position position    protected zebkit.ui.ScrollManager scrollManager    public Integer selectedIndex    public Integer width    public Integer x    public Integer y