Module flower.widget.ScrollView
Scrollable UIView class.
Extends:
Info:
- Release: V3.0.0
- Author: Makoto
Functions
ScrollView:_initInternal () | Initializes the internal variables. |
ScrollView:_createChildren () | Performing the initialization processing of the component. |
ScrollView:updateDisplay () | Update the ScrollGroup bounds. |
ScrollView:_updateScrollBounds () | Update the ScrollGroup bounds. |
ScrollView:addContent (content) | Add the content to scrollGroup. |
ScrollView:removeContent (content) | Add the content from scrollGroup. |
ScrollView:setContents (contents) | Add the content from scrollGroup. |
ScrollView:getContentLayout () | Return the layout from scrollGroup. |
ScrollView:getScrollSize () | Return the scroll size. |
ScrollView:getScrollGroup () | Return the scrollGroup. |
ScrollView:setLayout (layout) | Set the layout. |
ScrollView:setFriction (value) | Set the coefficient of friction at the time of scrolling. |
ScrollView:getFriction () | Returns the coefficient of friction at the time of scrolling. |
ScrollView:setScrollPolicy (horizontal, vertical) | Sets the horizontal and vertical scroll enabled. |
ScrollView:getScrollPolicy () | Return the scroll policy. |
ScrollView:setBouncePolicy (horizontal, vertical) | Sets the horizontal and vertical bounce enabled. |
ScrollView:getBouncePolicy () | Returns whether horizontal bouncing is enabled. |
ScrollView:scrollTo (x, y, sec, mode, callback) | Scroll to the specified location. |
ScrollView:onResize (e) | This event handler is called when resize. |
Functions
- ScrollView:_initInternal ()
- Initializes the internal variables.
- ScrollView:_createChildren ()
- Performing the initialization processing of the component.
- ScrollView:updateDisplay ()
- Update the ScrollGroup bounds.
- ScrollView:_updateScrollBounds ()
- Update the ScrollGroup bounds.
- ScrollView:addContent (content)
-
Add the content to scrollGroup.
Parameters:
- content
- ScrollView:removeContent (content)
-
Add the content from scrollGroup.
Parameters:
- content
- ScrollView:setContents (contents)
-
Add the content from scrollGroup.
Parameters:
- contents
- ScrollView:getContentLayout ()
-
Return the layout from scrollGroup.
Returns:
-
layout
- ScrollView:getScrollSize ()
-
Return the scroll size.
Returns:
-
scroll size
- ScrollView:getScrollGroup ()
-
Return the scrollGroup.
Returns:
-
scrollGroup
- ScrollView:setLayout (layout)
-
Set the layout.
Parameters:
- layout layout
- ScrollView:setFriction (value)
-
Set the coefficient of friction at the time of scrolling.
Parameters:
- value friction
- ScrollView:getFriction ()
-
Returns the coefficient of friction at the time of scrolling.
Returns:
-
friction
- ScrollView:setScrollPolicy (horizontal, vertical)
-
Sets the horizontal and vertical scroll enabled.
Parameters:
- horizontal horizontal scroll is enabled.
- vertical vertical scroll is enabled.
- ScrollView:getScrollPolicy ()
-
Return the scroll policy.
Returns:
- horizontal scroll enabled.
- vertical scroll enabled.
- ScrollView:setBouncePolicy (horizontal, vertical)
-
Sets the horizontal and vertical bounce enabled.
Parameters:
- horizontal horizontal scroll is enabled.
- vertical vertical scroll is enabled.
- ScrollView:getBouncePolicy ()
-
Returns whether horizontal bouncing is enabled.
Returns:
- horizontal bouncing enabled
- vertical bouncing enabled
- ScrollView:scrollTo (x, y, sec, mode, callback)
-
Scroll to the specified location.
Parameters:
- x position of the x
- y position of the x
- sec second
- mode EaseType
- callback (optional) allows callback notification when animation completes.
- ScrollView:onResize (e)
-
This event handler is called when resize.
Parameters:
- e Resize Event