Top Description Fields Constructors Methods
net.synedra.validatorfx

public Class TooltipWrapper<T extends Node>

extends HBox
Class Inheritance
Imports
javafx.beans.property.BooleanProperty, .SimpleBooleanProperty, javafx.beans.value.ObservableValue, javafx.geometry.Pos, javafx.scene.Node, javafx.scene.control.Tooltip, javafx.scene.layout.HBox, .Priority

TooltipWrapper will disable a node in case validation fails. It will also display a tooltip for the user to explain why the button is not enabled. It works around JDK-8090379 (tooltips don't show on disabled controls)
Author
[email protected]

Field Summary

Modifier and TypeField and Description
private ObservableValue<Boolean>
private Tooltip
private T
private BooleanProperty

Constructor Summary

AccessConstructor and Description
public
TooltipWrapper(T node, ObservableValue<Boolean> disabledProperty, ObservableValue<String> tooltipText)

Method Summary

Modifier and TypeMethod and Description
public Tooltip
public T
private void
Inherited from javafx.scene.layout.HBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillHeightPropertygetAlignmentgetBaselineOffsetgetClassCssMetaDatagetContentBiasgetCssMetaDatagetHgrowgetMargingetSpacingisFillHeightlayoutChildrenrequestLayoutsetAlignmentsetFillHeightsetHgrowsetMarginsetSpacingspacingProperty

Field Detail

disabledPropertyback to summary
private ObservableValue<Boolean> disabledProperty
disabledTooltipback to summary
private Tooltip disabledTooltip
nodeback to summary
private T node
visiblePropertyback to summary
private BooleanProperty visibleProperty

Constructor Detail

TooltipWrapperback to summary
public TooltipWrapper(T node, ObservableValue<Boolean> disabledProperty, ObservableValue<String> tooltipText)

Method Detail

getDisabledTooltipback to summary
public Tooltip getDisabledTooltip()
getWrappedNodeback to summary
public T getWrappedNode()
updateTooltipback to summary
private void updateTooltip()