ScrollBar sets focusTraversable to false.
This example creates a vertical ScrollBar:
ScrollBar s1 = new ScrollBar();
s1.setOrientation(Orientation.VERTICAL);
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | blockIncrement
The amount by which to adjust the scrollbar if the track of the bar is clicked. |
| private static final String | DEFAULT_STYLE_CLASS
Initialize the style class to 'scroll-bar'. |
| private static final PseudoClass | HORIZONTAL_PSEUDOCLASS_STATE
Pseudo-class indicating this is a horizontal ScrollBar. |
| private DoubleProperty | max
The maximum value represented by this |
| private DoubleProperty | min
The minimum value represented by this |
| private ObjectProperty | orientation
The orientation of the |
| private DoubleProperty | unitIncrement
The amount by which to adjust the ScrollBar when the |
| private DoubleProperty | value
The current value represented by this |
| private static final PseudoClass | VERTICAL_PSEUDOCLASS_STATE
Pseud-class indicating this is a vertical ScrollBar. |
| private DoubleProperty | visibleAmount
Visible amount of the scrollbar's range, typically represented by the size of the scroll bar's thumb. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void | |
| private void | |
| public final DoubleProperty | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public void | |
| public void | executeAccessibleAction(AccessibleAction action, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed. |
| public final double | |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| public List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| protected Boolean | getInitialFocusTraversable()
Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. |
| public final double | |
| public final double | |
| public final Orientation | |
| public final double | |
| public final double | |
| public final double | |
| public void | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final ObjectProperty | |
| public Object | queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)
Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final DoubleProperty |
| blockIncrement | back to summary |
|---|---|
| private DoubleProperty blockIncrement The amount by which to adjust the scrollbar if the track of the bar is clicked. | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS Initialize the style class to 'scroll-bar'. This is the selector class from which CSS can be used to style this control. | |
| HORIZONTAL_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass HORIZONTAL_PSEUDOCLASS_STATE Pseudo-class indicating this is a horizontal ScrollBar. | |
| max | back to summary |
|---|---|
| private DoubleProperty max The maximum value represented by this | |
| min | back to summary |
|---|---|
| private DoubleProperty min The minimum value represented by this | |
| orientation | back to summary |
|---|---|
| private ObjectProperty<Orientation> orientation The orientation of the | |
| unitIncrement | back to summary |
|---|---|
| private DoubleProperty unitIncrement The amount by which to adjust the ScrollBar when the | |
| value | back to summary |
|---|---|
| private DoubleProperty value The current value represented by this | |
| VERTICAL_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static final PseudoClass VERTICAL_PSEUDOCLASS_STATE Pseud-class indicating this is a vertical ScrollBar. | |
| visibleAmount | back to summary |
|---|---|
| private DoubleProperty visibleAmount Visible amount of the scrollbar's range, typically represented by the size of the scroll bar's thumb. | |
| ScrollBar | back to summary |
|---|---|
| public ScrollBar() Creates a new horizontal ScrollBar (ie getOrientation() == Orientation.HORIZONTAL). | |
| adjustValue | back to summary |
|---|---|
| public void adjustValue(double position) Adjusts the Note This function is intended to be used by experts, primarily by those implementing new Skins or Behaviors. It is not common for developers or designers to access this function directly.
| |
| blockDecrement | back to summary |
|---|---|
| private void blockDecrement() | |
| blockIncrement | back to summary |
|---|---|
| private void blockIncrement() | |
| blockIncrementProperty | back to summary |
|---|---|
| public final DoubleProperty blockIncrementProperty() | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| decrement | back to summary |
|---|---|
| public void decrement() Decrements the value of the | |
| executeAccessibleAction | back to summary |
|---|---|
| public void executeAccessibleAction(AccessibleAction action, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the action indicated by the argument should be executed.
This method is commonly overridden by subclasses to implement
action that are required for a specific role.
| |
| getBlockIncrement | back to summary |
|---|---|
| public final double getBlockIncrement() | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Gets the
| |
| getControlCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getInitialFocusTraversable | back to summary |
|---|---|
| protected Boolean getInitialFocusTraversable() Overrides javafx. Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. This method is overridden as by default UI controls have focus traversable set to true, but that is not appropriate for this control.
| |
| getMax | back to summary |
|---|---|
| public final double getMax() | |
| getMin | back to summary |
|---|---|
| public final double getMin() | |
| getOrientation | back to summary |
|---|---|
| public final Orientation getOrientation() | |
| getUnitIncrement | back to summary |
|---|---|
| public final double getUnitIncrement() | |
| getValue | back to summary |
|---|---|
| public final double getValue() | |
| getVisibleAmount | back to summary |
|---|---|
| public final double getVisibleAmount() | |
| increment | back to summary |
|---|---|
| public void increment() Increments the value of the | |
| maxProperty | back to summary |
|---|---|
| public final DoubleProperty maxProperty() | |
| minProperty | back to summary |
|---|---|
| public final DoubleProperty minProperty() | |
| orientationProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| queryAccessibleAttribute | back to summary |
|---|---|
| public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. This method is called by the assistive technology to request the value for an attribute.
This method is commonly overridden by subclasses to implement
attributes that are required for a specific role.
| |
| setBlockIncrement | back to summary |
|---|---|
| public final void setBlockIncrement(double value) | |
| setMax | back to summary |
|---|---|
| public final void setMax(double value) | |
| setMin | back to summary |
|---|---|
| public final void setMin(double value) | |
| setOrientation | back to summary |
|---|---|
| public final void setOrientation(Orientation value) | |
| setUnitIncrement | back to summary |
|---|---|
| public final void setUnitIncrement(double value) | |
| setValue | back to summary |
|---|---|
| public final void setValue(double value) | |
| setVisibleAmount | back to summary |
|---|---|
| public final void setVisibleAmount(double value) | |
| unitIncrementProperty | back to summary |
|---|---|
| public final DoubleProperty unitIncrementProperty() | |
| valueProperty | back to summary |
|---|---|
| public final DoubleProperty valueProperty() | |
| visibleAmountProperty | back to summary |
|---|---|
| public final DoubleProperty visibleAmountProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| BLOCK_INCREMENT | back to summary |
|---|---|
| private static final CssMetaData<ScrollBar, Number> BLOCK_INCREMENT | |
| ORIENTATION | back to summary |
|---|---|
| private static final CssMetaData<ScrollBar, Orientation> ORIENTATION | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| UNIT_INCREMENT | back to summary |
|---|---|
| private static final CssMetaData<ScrollBar, Number> UNIT_INCREMENT | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |