public class WScrollBar extends WObject
WScrollArea always has two scrollbars (even if they are not
visible, for example when the policy is
WScrollArea.ScrollBarPolicy.ScrollBarAlwaysOff). Using the
tie() functions, it is
possible to tie two scrollbars together, so that they will scroll together.
|Modifier and Type||Method and Description|
Returns the orientation of this scrollbar.
Sets the scrollbar value (in pixels).
Ties two scrollbars together.
Unties two scrollbars, that were previously tied together.
addChild, getId, getObjectName, remove, setFormData, setObjectName, tr
public Orientation getOrientation()
public static void tie(WScrollBar one, WScrollBar two)
The effect of this call is that these scrollbars will keep their positions synchronised.
public static void unTie(WScrollBar one, WScrollBar two)
public void setValue(int value)
This will move the scrollbar to the given value.