Class zebkit.ui.Scroll
mixed with <zebkit.util.Position.Metric>
extends <zebkit.ui.Panel>

Scroll bar UI component

zebkit.ui.Scroll ([t])

  • [t] <String>

    orientation of the scroll bar components:

           "vertical" - vertical scroll bar
           "horizontal"- horizontal scroll bar

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( )    getLines( )    getLineSize(l)    getMaxOffset( )    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 <Boolean> catchInput (child)

Define composite component catch input method

Returns: <Boolean>

true if the given children component has to be input events transparent

public <Boolean> isInThumb (x, y)

Evaluate if the given point is in scroll bar thumb element

  • x <Integer>

    a x location

  • y <Integer>

    a y location

Returns: <Boolean>

true if the point is located inside the scroll bar thumb element

public void pointerClicked (e)

Define pointer clicked events handler

public void pointerDragEnded (e)

Define pointer drag ended events handler

public void pointerDragged (e)

Define pointer dragged events handler

public void pointerDragStarted (e)

Define pointer drag started events handler

public chainable setMaximum (m)

Set the specified maximum value of the scroll bar component

  • m <Integer>

    a maximum value

public chainable setValue (v)

Set the scroll bar value.

  • v <Integer>

    a scroll bar 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 <zebkit.ui.Button> decBt

Decrement button

public <zebkit.ui.Button> incBt

Increment button

public <Integer> max

Maximal possible value

public <String> orient

Scroll orientation.

public <Integer> pageIncrement

Page increment value

public <zebkit.ui.Panel> thumb

Scroll bar thumb component

public <Integer> unitIncrement

Unit increment value