Class zebkit.ui.ImageLabel
extends <zebkit.ui.Panel>

Image label UI component. This is UI container that consists from an image component and an label component.Image is located at the left size of text.

zebkit.ui.ImageLabel ([img], [txt], [w], [h])


public <zebkit.ui.Panel> getValue ( )
public void setColor (a)
public void setFont (a)
public void setImage (p)
public void setImgAlignment (an)
public void setImgPreferredSize (w, [h])
public void setValue (c)

Inherited methods:
$setConstraints(c)    add(constr, d)    byConstraints([p], c)    byPath(path, [cb])    calcPreferredSize(target)    doLayout( )    fire(event, [path], [params])    focused( )    getBottom( )    getCanvas( )    getComponentAt(x, y)    getHorPadding( )    getLeft( )    getPreferredSize( )    getRight( )    getTop( )    getVerPadding( )    hasFocus( )    indexOf(c)    insert(i, constr, d)    invalidate( )    invalidateLayout( )    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)    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])    requestFocus( )    requestFocusIn([timeout])    resized(pw, ph)    setAt(i, d)    setBackground(v)    setBorder([v])    setBottomPadding(bottom)    setBounds(x, y, w, h)    setByConstraints(constr, c)    setConstraints(ctr)    setEnabled(b)    setId(id)    setKids(a)    setLayout(m)    setLeftPadding(left)    setLocation(xx, yy)    setPadding(v)    setParent(o)    setPreferredSize(w, h)    setProperties([path], props)    setRightPadding(right)    setSize(w, h)    setTopPadding(top)    setVisible(b)    toBack( )    toFront( )    toPreferredHeight( )    toPreferredSize( )    toPreferredWidth( )    toView(target)    validate( )    validateMetric( )    vrp( )   

public <zebkit.ui.Panel> getValue ( )

Get caption value

Returns: <zebkit.ui.Panel>

a caption value

public chainable setColor (a)

Set the caption color

public chainable setFont (a)

Set the caption font

public chainable setImage (p)

Set the specified label image

  • p <String | Image>

    a path to an image of image object

public chainable setImgAlignment (an)

Set the image alignment.

  • an <String>

    alignment. Following values are possible:

    • "left"
    • "right"
    • "top"
    • "bottom"
public chainable setImgPreferredSize (w, [h])

Set image preferred size.

  • w <Integer>

    a width and height if the second argument has not been specified

  • [h] <Integer>

    a height

public chainable setValue (c)

Set the specified caption


Inherited attributes:
public zebkit.draw.View bg    public zebkit.draw.View border    public Boolean canHaveFocus    public Object constraints    public Integer height    public Boolean isEnabled    public Boolean isValid    public Boolean isVisible    public Array kids    public zebkit.layout.Layout layout    public zebkit.layout.Layoutable parent    public Integer width    public Integer x    public Integer y