Top Fields Constructors Methods
com.dlsc.workbenchfx.view.controls.selectionstrip

public Class SelectionStripSkin<T>

extends SkinBase<SelectionStrip<T>>
Class Inheritance
Imports
java.util.HashMap, .Map, java.util.stream.Collectors, javafx.animation.Animation, .FadeTransition, .Interpolator, .KeyFrame, .KeyValue, .ParallelTransition, .Timeline, javafx.application.Platform, javafx.beans.Observable, javafx.beans.property.BooleanProperty, .DoubleProperty, .SimpleBooleanProperty, .SimpleDoubleProperty, javafx.geometry.Bounds, .Pos, javafx.scene.Node, javafx.scene.control.SkinBase, javafx.scene.input.MouseEvent, .ScrollEvent, javafx.scene.layout.HBox, .Region, javafx.scene.shape.Rectangle, javafx.util.Duration

Field Summary

Modifier and TypeField and Description
private final HBox
private final Region
private final Region
private final Map<T, Node>
private final Region
private final Region
private static final String
private final BooleanProperty
private final BooleanProperty
private Timeline
private final DoubleProperty

Constructor Summary

AccessConstructor and Description
public
SelectionStripSkin(SelectionStrip<T>
The strip for which this Skin should attach to.
strip
)

Constructor for all SkinBase instances.

Method Summary

Modifier and TypeMethod and Description
private void
private FadeTransition
createFadeTransition(Node node, double from, double to)

private void
fadeSupport(Boolean newShow, Region fader, Region button)

private void
protected void
layoutChildren(double
the x position
contentX
,
double
the y position
contentY
,
double
the width
contentWidth
,
double
the height
contentHeight
)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

private void
scroll(boolean scrollToRight)

private void
scrollTo(T item)

private void
private void
private void
Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

contentback to summary
private final HBox content
leftBtnback to summary
private final Region leftBtn
leftFaderback to summary
private final Region leftFader
nodeMapback to summary
private final Map<T, Node> nodeMap
rightBtnback to summary
private final Region rightBtn
rightFaderback to summary
private final Region rightFader
SCROLL_TO_KEYback to summary
private static final String SCROLL_TO_KEY
showLeftScrollback to summary
private final BooleanProperty showLeftScroll
showRightScrollback to summary
private final BooleanProperty showRightScroll
timelineback to summary
private Timeline timeline
translateXback to summary
private final DoubleProperty translateX

Constructor Detail

SelectionStripSkinback to summary
public SelectionStripSkin(SelectionStrip<T> strip)

Constructor for all SkinBase instances.

Parameters
strip:SelectionStrip<T>

The strip for which this Skin should attach to.

Method Detail

buildContentback to summary
private void buildContent()
createFadeTransitionback to summary
private FadeTransition createFadeTransition(Node node, double from, double to)
fadeSupportback to summary
private void fadeSupport(Boolean newShow, Region fader, Region button)
fixTranslateback to summary
private void fixTranslate()
layoutChildrenback to summary
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Parameters
contentX:double

the x position

contentY:double

the y position

contentWidth:double

the width

contentHeight:double

the height

Annotations
@Override
scrollback to summary
private void scroll(boolean scrollToRight)
scrollToback to summary
private void scrollTo(T item)
setupBindingsback to summary
private void setupBindings()
setupEventHandlersback to summary
private void setupEventHandlers()
setupListenersback to summary
private void setupListeners()