Class zebkit.ui.date.Calendar.MonthsCombo
extends <zebkit.ui.Combo>
<zebkit.ui.date>

Combo box component to render and host selectable list of months.

Constructor:
zebkit.ui.date.Calendar.MonthsCombo ( )




Inherited methods:
$setConstraints(c)    add(constr, d)    byConstraints([p], c)    byPath(path, [cb])    calcPreferredSize(target)    doLayout( )    fire(name, [path], [params])    fired(src)    focused( )    getBottom( )    getCanvas( )    getComponentAt(x, y)    getHorPadding( )    getLeft( )    getPreferredSize( )    getRight( )    getTop( )    getValue( )    getVerPadding( )    hasFocus( )    hidePad( )    indexOf(c)    insert(i, constr, d)    invalidate( )    invalidateLayout( )    isPadShown( )    keyPressed(e)    keyTyped(e)    kidAdded(index, constr, l)    kidRemoved(i, l)    laidout( )    load(JSON)    off([eventName], [path], [cb])    on([eventName], [path], cb)    paintComponent(g)    paintViewAt(g, ax, ay, v)    pointerPressed(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])    replaceMe([ctr], c)    requestFocus( )    requestFocusIn([timeout])    resized(pw, ph)    select(i)    selected(src, data)    setAt(i, d)    setBackground(v)    setBorder([v])    setBorderLayout([gap])    setBottomPadding(bottom)    setBounds(x, y, w, h)    setByConstraints(constr, c)    setConstraints(ctr)    setEditable(b)    setEnabled(b)    setFlowLayout([ax], [ay], [dir], [gap])    setId(id)    setKids(a)    setLayout(m)    setLeftPadding(left)    setList(l)    setListLayout([ax], [gap])    setLocation(xx, yy)    setMaxPadHeight(h)    setPadding(v)    setParent(o)    setPreferredSize(w, h)    setProperties([path], props)    setRasterLayout([usePsSize])    setRightPadding(right)    setSelectView(c)    setSize(w, h)    setStackLayout([gap])    setTopPadding(top)    setValue(v)    setVisible(b)    showPad( )    toBack( )    toFront( )    toPreferredHeight( )    toPreferredSize( )    toPreferredWidth( )    toView(target)    validate( )    validateMetric( )    vrp( )   


public <Object> getSelectedMonth ( )

Get selected month item.


Returns: <Object>

a selected month as a the following structure:

 {
     name     : "<name of month>",
     nickname : "<short name of month>",
     value    : an integer number of the month
 }
public chainable setMonths (array)

Set the list of months.


Parameters:
  • array <Array>

    of months. It is expected every item in the array is:

     {
         name     : "<name of month>",
         nickname : "<short name of month>",
         value    : an integer number of the month
     }


Inherited attributes:
public zebkit.ui.Panel adjustPadTo    public zebkit.draw.View bg    public zebkit.draw.View border    public zebkit.ui.Panel button    public Boolean canHaveFocus    public Object constraints    public zebkit.ui.Panel content    public Integer height    public Boolean isEnabled    public Boolean isValid    public Boolean isVisible    public Array kids    public zebkit.layout.Layout layout    public zebkit.ui.BaseList list    public Integer maxPadHeight    public zebkit.layout.Layoutable parent    public zebkit.draw.View selectView    public Integer width    public zebkit.ui.Panel winpad    public Integer x    public Integer y