Zebra API Doc

zebra.ui.Scroll Class

Extends zebra.ui.Panel

Scroll bar UI component

Constructor

zebra.ui.Scroll

(
  • t
)

Parameters:

  • t Integer | String

    type of the scroll bar components:

       zebra.layout.VERTICAL or "vertical" - vertical scroll bar
       zebra.layout.HORIZONTAL or "horizontal"- horizontal scroll bar

Methods

catchInput

(
  • child
)
Boolean

Inherited from zebra.ui.Composite

Define composite component catch input method

Parameters:


Return: Boolean

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

isInBundle

(
  • x
  • y
)
Boolean

Evaluate if the given point is in scroll bar bundle element

Parameters:

  • x Integer

    a x location

  • y Integer

    a y location


Return: Boolean

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

mouseClicked

(
  • e
)

Define mouse clicked events handler

Parameters:

mouseDragEnded

(
  • e
)

Define mouse drag ended events handler

Parameters:

mouseDragged

(
  • e
)

Define mouse dragged events handler

Parameters:

mouseDragStarted

(
  • e
)

Define mouse drag started events handler

Parameters:

setMaximum

(
  • m
)

Set the specified maximum value of the scroll bar component

Parameters:

  • m Integer

    a maximum value

Attributes

bundle

zebra.ui.Panel readonly

Scroll bar bundle component

decBt

zebra.ui.Button readonly

Decrement button

incBt

zebra.ui.Button readonly

Increment button

max

Integer readonly

Maximal possible value

Default: 100

pageIncrement

Integer readonly

Page increment value

Default: 20

unitIncrement

Integer readonly

Unit increment value

Default: 5