Top Description Fields Constructors Methods
com.sun.javafx.scene.control

public Class VirtualScrollBar

extends ScrollBar
Class Inheritance
Imports
com.sun.javafx.util.Utils, javafx.beans.property.BooleanProperty, .SimpleBooleanProperty, javafx.scene.control.IndexedCell, .ScrollBar, javafx.scene.control.skin.VirtualFlow

This custom ScrollBar is used to map the increment & decrement features to pixel based scrolling rather than thumb/track based scrolling, if the "virtual" attribute is true.

Field Summary

Modifier and TypeField and Description
private boolean
private final VirtualFlow<T extends IndexedCell<T>>
flow

Private fields

private BooleanProperty
virtual

Properties

Constructor Summary

AccessConstructor and Description
public
VirtualScrollBar(final VirtualFlow<T extends IndexedCell<T>> flow)

Creates a new VirtualScrollBar, for use by the VirtualFlow control.

Method Summary

Modifier and TypeMethod and Description
public void
adjustValue(double
the position
pos
)

Overrides javafx.scene.control.ScrollBar.adjustValue.

Adjusts the value property by blockIncrement.

public void
decrement()

Overrides javafx.scene.control.ScrollBar.decrement.

Decrements the value of the ScrollBar by the unitIncrement

public void
increment()

Overrides javafx.scene.control.ScrollBar.increment.

Increments the value of the ScrollBar by the unitIncrement

public final boolean
public final void
setVirtual(boolean value)

public final BooleanProperty
Inherited from javafx.scene.control.ScrollBar:
blockIncrementPropertycreateDefaultSkinexecuteAccessibleActiongetBlockIncrementgetClassCssMetaDatagetControlCssMetaDatagetInitialFocusTraversablegetMaxgetMingetOrientationgetUnitIncrementgetValuegetVisibleAmountmaxPropertyminPropertyorientationPropertyqueryAccessibleAttributesetBlockIncrementsetMaxsetMinsetOrientationsetUnitIncrementsetValuesetVisibleAmountunitIncrementPropertyvaluePropertyvisibleAmountProperty

Field Detail

adjustingback to summary
private boolean adjusting
flowback to summary
private final VirtualFlow<T extends IndexedCell<T>> flow

Private fields

virtualback to summary
private BooleanProperty virtual

Properties

Constructor Detail

VirtualScrollBarback to summary
public VirtualScrollBar(final VirtualFlow<T extends IndexedCell<T>> flow)

Creates a new VirtualScrollBar, for use by the VirtualFlow control.

Method Detail

adjustValueback to summary
public void adjustValue(double pos)

Overrides javafx.scene.control.ScrollBar.adjustValue.

Doc from javafx.scene.control.ScrollBar.adjustValue.

Adjusts the value property by blockIncrement. The position is the fractional amount between the min and max. For example, it might be 50%. If #minProperty min were 0 and #maxProperty max were 100 and value were 25, then a position of .5 would indicate that we should increment value by blockIncrement. If value were 75, then a position of .5 would indicate that we should decrement value by blockIncrement.

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.

Parameters
pos:double

the position

Annotations
@Override
decrementback to summary
public void decrement()

Overrides javafx.scene.control.ScrollBar.decrement.

Doc from javafx.scene.control.ScrollBar.decrement.

Decrements the value of the ScrollBar by the unitIncrement

Annotations
@Override
incrementback to summary
public void increment()

Overrides javafx.scene.control.ScrollBar.increment.

Doc from javafx.scene.control.ScrollBar.increment.

Increments the value of the ScrollBar by the unitIncrement

Annotations
@Override
isVirtualback to summary
public final boolean isVirtual()
setVirtualback to summary
public final void setVirtual(boolean value)
virtualPropertyback to summary
public final BooleanProperty virtualProperty()