- java.lang.Object
-
- com.iamsoft.util.ui.javafx.ScrollBarUtil
-
public final class ScrollBarUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectadjustHScroll(javafx.scene.control.Control pControl)static ObjectadjustScroll(javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar> pScrollBar)static ObjectadjustScroll(javafx.scene.control.Control pControl)static ObjectadjustVScroll(javafx.scene.control.Control pControl)static javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar>createHScrollBarProperty(javafx.scene.control.Control pControl)Creates a read-only property providing the horizontal scroll bar of the specified control.static javafx.beans.value.ObservableValue<javafx.scene.layout.Region>createNodeProperty(javafx.beans.value.ObservableValue<javafx.scene.control.ScrollBar> pScrollBar, String pSelector)Creates an observable value providing the thumb node of the specified scroll bar.static javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar>createScrollBarProperty(javafx.scene.control.Control pControl, javafx.geometry.Orientation pOrientation)Creates a read-only property providing the horizontal/vertical scroll bar of the specified table.static javafx.beans.property.ReadOnlyProperty<Double>createThumbLengthProperty(javafx.beans.value.ObservableValue<javafx.scene.control.ScrollBar> pScrollBar)Creates an observable value providing the thumb node of the specified scroll bar.static javafx.beans.property.ReadOnlyProperty<Double>createTrackLengthProperty(javafx.beans.value.ObservableValue<javafx.scene.control.ScrollBar> pScrollBar)Creates an observable value providing the track node of the specified scroll bar.static javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar>createVScrollBarProperty(javafx.scene.control.Control pControl)Creates a read-only property providing the vertical scroll bar of the specified control.static javafx.scene.control.ScrollBargetScrollBar(javafx.scene.control.Control pControl, javafx.geometry.Orientation pOrientation)static javafx.scene.control.ScrollBargetScrollBar(javafx.scene.control.Control pControl, javafx.geometry.Orientation pOrientation, String pSelector)
-
-
-
Method Detail
-
createHScrollBarProperty
public static javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar> createHScrollBarProperty(javafx.scene.control.Control pControl)
Creates a read-only property providing the horizontal scroll bar of the specified control.
-
createVScrollBarProperty
public static javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar> createVScrollBarProperty(javafx.scene.control.Control pControl)
Creates a read-only property providing the vertical scroll bar of the specified control.
-
createScrollBarProperty
public static javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar> createScrollBarProperty(javafx.scene.control.Control pControl, javafx.geometry.Orientation pOrientation)Creates a read-only property providing the horizontal/vertical scroll bar of the specified table.- Parameters:
pOrientation- Specifies whether to return horizontal or vertical scroll bar property.
-
getScrollBar
public static javafx.scene.control.ScrollBar getScrollBar(javafx.scene.control.Control pControl, javafx.geometry.Orientation pOrientation)
-
getScrollBar
public static javafx.scene.control.ScrollBar getScrollBar(javafx.scene.control.Control pControl, javafx.geometry.Orientation pOrientation, String pSelector)
-
createNodeProperty
public static javafx.beans.value.ObservableValue<javafx.scene.layout.Region> createNodeProperty(javafx.beans.value.ObservableValue<javafx.scene.control.ScrollBar> pScrollBar, String pSelector)Creates an observable value providing the thumb node of the specified scroll bar.
-
createThumbLengthProperty
public static javafx.beans.property.ReadOnlyProperty<Double> createThumbLengthProperty(javafx.beans.value.ObservableValue<javafx.scene.control.ScrollBar> pScrollBar)
Creates an observable value providing the thumb node of the specified scroll bar.
-
createTrackLengthProperty
public static javafx.beans.property.ReadOnlyProperty<Double> createTrackLengthProperty(javafx.beans.value.ObservableValue<javafx.scene.control.ScrollBar> pScrollBar)
Creates an observable value providing the track node of the specified scroll bar.
-
adjustHScroll
public static Object adjustHScroll(javafx.scene.control.Control pControl)
- Returns:
- Weak reference that mustn't be garbage collected.
-
adjustVScroll
public static Object adjustVScroll(javafx.scene.control.Control pControl)
- Returns:
- Weak reference that mustn't be garbage collected.
-
adjustScroll
public static Object adjustScroll(javafx.scene.control.Control pControl)
- Returns:
- Weak reference that mustn't be garbage collected.
-
adjustScroll
public static Object adjustScroll(javafx.beans.property.ReadOnlyProperty<javafx.scene.control.ScrollBar> pScrollBar)
- Returns:
- Weak reference that mustn't be garbage collected.
-
-