scroller
scroller is a layout that creates a scrollable content area.
XML Element |
|
|---|---|
Java Class |
|
Basics
scroller displays overflowing content within a smaller area. It accepts one content component; use a layout such as vbox when several components must scroll together.
<scroller width="25%" height="20em" scrollBarsDirection="VERTICAL">
<vbox>
<h4 text="Vertical scrollbar"/>
<hbox>
<textField/>
<textField/>
<textField/>
<textField/>
<textField/>
</hbox>
</vbox>
</scroller>
Attributes
Common attributes serve the same purpose for all components. The following attribute is specific to scroller:
| Name | Description | Default |
|---|---|---|
Controls overflow scrolling: |
|
Handlers
| Name | Description |
|---|---|
Fires when the component is attached to the UI. |
|
Fires when the component is detached from the UI. |
Was this page helpful?
Thank you for your feedback