Spec-Zone.ru › OpenJavaFX 24

Class TooltipSkin

java.lang.Object
javafx.scene.control.skin.TooltipSkin
All Implemented Interfaces:
Skin<Tooltip>
public class TooltipSkin extends Object implements Skin<Tooltip>
CSS based skin for Tooltip. It deals mostly with show hide logic for Popup based controls, and specifically in this case for tooltip. It also implements some of the Skin interface methods. TooltipContent class is the actual skin implementation of the tooltip.

Constructor Summary

Constructor Description
TooltipSkin(Tooltip t)
Creates a new TooltipSkin instance for the given Tooltip.

Method Summary

Modifier and Type Method Description
void dispose()
Called when a previously installed skin is about to be removed from its associated control.
Node getNode()
Gets the Node which represents this Skin.
Tooltip getSkinnable()
Gets the Skinnable to which this Skin is assigned.

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods declared in interface javafx.scene.control.Skin

install

Constructor Details

TooltipSkin

public TooltipSkin(Tooltip t)
Creates a new TooltipSkin instance for the given Tooltip.
Parameters:
t - the tooltip

Method Details

getSkinnable

public Tooltip getSkinnable()
Gets the Skinnable to which this Skin is assigned. A Skin must be created for one and only one Skinnable. This value will only ever go from a non-null to null value when the Skin is removed from the Skinnable, and only as a consequence of a call to Skin.dispose().

The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.

Specified by:
getSkinnable in interface Skin<Tooltip>
Returns:
A non-null Skinnable, or null value if disposed.

getNode

public Node getNode()
Gets the Node which represents this Skin. This must never be null, except after a call to Skin.dispose(), and must never change except when changing to null.
Specified by:
getNode in interface Skin<Tooltip>
Returns:
A non-null Node, except when the Skin has been disposed.

dispose

public void dispose()
Called when a previously installed skin is about to be removed from its associated control. This allows the skin to do clean up, like removing listeners and bindings, and undo any changes to the control's properties. After this method completes, Skin.getSkinnable() and Skin.getNode() should return null.

Calling Skin.dispose() more than once has no effect.

Specified by:
dispose in interface Skin<Tooltip>

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API