Class zebkit.ui.Label
extends <zebkit.ui.ViewPan>

Label UI component class. The label can be used to visualize simple string or multi lines text or the given text render implementation:

       // render simple string
       var l = new zebkit.ui.Label("Simple string");

       // render multi lines text
       var l = new zebkit.ui.Label(new"Multiline\ntext"));

       // render password text
       var l = new zebkit.ui.Label(new zebkit.draw.PasswordText("password"));
zebkit.ui.Label ([r])


public <String> getColor ( )
public <zebkit.Font> getFont ( )
public <> getModel ( )
public <String> getValue ( )
public void setColor (c)
public void setFont (f)
public void setModel (m)
public void setValue (s)

Inherited methods:
$setConstraints(c)    add(constr, d)    byConstraints([p], c)    byPath(path, [cb])    calcPreferredSize(t)    doLayout( )    fire(name, [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])    replaceMe([ctr], c)    requestFocus( )    requestFocusIn([timeout])    resized(pw, ph)    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)    setPadding(v)    setParent(o)    setPreferredSize(w, h)    setProperties([path], props)    setRasterLayout([usePsSize])    setRightPadding(right)    setSize(w, h)    setStackLayout([gap])    setTopPadding(top)    setView(v)    setVisible(b)    toBack( )    toFront( )    toPreferredHeight( )    toPreferredSize( )    toPreferredWidth( )    toView(target)    validate( )    validateMetric( )    vrp( )   

public <String> getColor ( )

Get the label text color

Returns: <String>

a zebkit label color

public <zebkit.Font> getFont ( )

Get the label text font

Returns: <zebkit.Font>

a zebkit label font

public <> getModel ( )

Get a text model

Returns: <>

a text model

public <String> getValue ( )

Get the label text

Returns: <String>

a zebkit label text

public chainable setColor (c)

Set the label text color

public chainable setFont (f)

Set the label text font

public chainable setModel (m)

Set the text field text model

public chainable setValue (s)

Set the label text value


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 zebkit.draw.View view    public Integer width    public Integer x    public Integer y