Class zebkit.ui.Slider
mixed with <zebkit.ui.DecorationViews> <zebkit.EvenetProducer>
extends <zebkit.ui.Panel>

Slider UI component class.

zebkit.ui.Slider ([o])

  • [o] <String>

    a slider orientation ("vertical or "horizontal")

public <Number> getMax ( )
public <Number> getMin ( )
public void setGranularity (g)
public void setOrientation (o)
public void setRange (min, max, [granularity])
public void setRuler (r)
public void setRulerGap (g)
public void setValue (v)

Inherited methods:
$setConstraints(c)    add(constr, d)    byConstraints([p], c)    byPath(path, [cb])    calcPreferredSize(target)    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)    setViews(v)    setVisible(b)    toBack( )    toFront( )    toPreferredHeight( )    toPreferredSize( )    toPreferredWidth( )    toView(target)    validate( )    validateMetric( )    vrp( )   

public <Number> getMax ( )

Get maximal possible value.

Returns: <Number>

a value

public <Number> getMin ( )

Get minimal possible value.

Returns: <Number>

a value

public chainable setGranularity (g)

Set the granularity. Granularity defines a delta to a slider value can be decreased or increased.

public chainable setOrientation (o)

Set orientation

  • o <String>

    an orientation. Use "horizontal" or "vertical" as the parameter value

public chainable setRange (min, max, [granularity])

Set the range the slider value can be changed.

  • min <Number>

    a minimal possible value

  • max <Number>

    a maximal possible value

  • [granularity] <Number>

    a granularity

public chainable setRuler (r)

Set the ruler to be used

public chainable setRulerGap (g)

Set the gap between the slider handle and the ruler.

  • g <Integer>

    a gap

public chainable setValue (v)

Set the slider value that has to be withing the given defined range. If the value is out of the defined range then the value will be adjusted to maximum or minimum possible 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 Integer width    public Integer x    public Integer y   

public <Integer> gap

Gap between slider handle and ruler

public <Number> granularity

Granularity of sliding.

public <String> orient

Slider orientation.

public <zebkit.ui.RulerPan> ruler

Ruler component.

public <Number> value

Current slider value