Class zebkit.ui.CompList
extends <zebkit.ui.BaseList>

List component consider its children UI components as a list model items. Every added to the component UI children component becomes a list model element. The implementation allows developers to use other UI components as its elements what makes list item view customization very easy and powerful:

// use image label as the component list items
var list = new zebkit.ui.CompList();
list.add(new zebkit.ui.ImageLabel("Caption 1", "icon1.gif"));
list.add(new zebkit.ui.ImageLabel("Caption 2", "icon2.gif"));
list.add(new zebkit.ui.ImageLabel("Caption 3", "icon3.gif"));
zebkit.ui.CompList ([model], [isComboMode])

  • [model] < | Array>

    a list model that should be passed as an instance of or as an array.

  • [isComboMode] <Boolean>

    true if the list navigation has to be triggered by pointer cursor moving

Inherited methods:
$pointerMoved(x, y)    $select(o)    $setConstraints(c)    add(constr, d)    byConstraints([p], c)    byPath(path, [cb])    calcMaxItemSize( )    calcPreferredSize(target)    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( )    getPreferredSize( )    getRight( )    getSelected( )    getTop( )    getValue( )    getVerPadding( )    hasFocus( )    indexOf(c)    insert(i, constr, d)    invalidate( )    invalidateLayout( )    isItemSelectable(i)    isSelected(i)    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)    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)    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