Represents a ScrollPane
.
A ScrollPane
allows you to simply manage a resizable
content that can be scrolled vertically and horizontally.
public function getVerticalScrollBar(Void):ScrollBar
Retrieves a vertical ScrollBar
for this ContentPane
.
Note that the ScrollBar
object returned is always the same. It means
that the following test will return true
:
var a:ScrollBar = myContentPane.getVerticalScrollBar(); var b:ScrollBar = myContentPane.getVerticalScrollBar(); trace(a == b); //true
If this method is not called, the vertical ScrollBar
won't be created.
A ScrollBar
object.
public function getHorizontalScrollBar(Void):ScrollBar
Retrieves an horizontal ScrollBar
for this ContentPane
.
Note that the ScrollBar
object returned is always the same. It means
that the following test will return true
:
var a:ScrollBar = myContentPane.getHorizontalScrollBar(); var b:ScrollBar = myContentPane.getHorizontalScrollBar(); trace(a == b); //true
If this method is not called, the horizontal ScrollBar
won't be created.
A ScrollBar
object.
public function refresh(source:Object, updateContent:Boolean):Void
Refresh the content of the ScrollPane
.
This method should be called everytime a size update happened to the content clip.
source | The source object that perform the refresh or null .
|
updateContent | Indicates if the content must be moved when it is out of bounds (false by default). |