public class TooltipUtils
extends java.lang.Object
Tooltip.
When trying Kotlin, all static methods are candidates for extending the button class.
Legal stuff
Copyright 2010-2020 Ekkart Kleinod ekleinod@edgesoft.de
This file is part of edgeutils.
edgeutils is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
edgeutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with edgeutils. If not, see http://www.gnu.org/licenses/.
- Since:
- 0.13.0
- Author:
- Ekkart Kleinod
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACCELERATOR_TOKENAccelerator token.static java.lang.StringTOOLTIP_TOKENTooltip token. -
Constructor Summary
Constructors Constructor Description TooltipUtils() -
Method Summary
Modifier and Type Method Description static javafx.scene.control.TooltipcreateTooltip(java.lang.String theTooltipText)Creates a tooltip with text.static javafx.scene.control.TooltipcreateTooltip(java.lang.String theTooltipText, java.lang.String theAcceleratorText)Creates a tooltip with text and accelerator text.static javafx.scene.control.TooltipcreateTooltip(java.lang.String theTooltipText, javafx.scene.input.KeyCombination theKeyCombination)Creates a tooltip with text and key combination.
-
Field Details
-
TOOLTIP_TOKEN
public static final java.lang.String TOOLTIP_TOKENTooltip token.- See Also:
- Constant Field Values
-
ACCELERATOR_TOKEN
public static final java.lang.String ACCELERATOR_TOKENAccelerator token.- See Also:
- Constant Field Values
-
-
Constructor Details
-
TooltipUtils
public TooltipUtils()
-
-
Method Details
-
createTooltip
public static javafx.scene.control.Tooltip createTooltip(java.lang.String theTooltipText)Creates a tooltip with text.- Parameters:
theTooltipText- tooltip text- Returns:
- tooltip
-
createTooltip
public static javafx.scene.control.Tooltip createTooltip(java.lang.String theTooltipText, javafx.scene.input.KeyCombination theKeyCombination)Creates a tooltip with text and key combination.- Parameters:
theTooltipText- tooltip texttheKeyCombination- key combination (null for none)- Returns:
- tooltip
-
createTooltip
public static javafx.scene.control.Tooltip createTooltip(java.lang.String theTooltipText, java.lang.String theAcceleratorText)Creates a tooltip with text and accelerator text.- Parameters:
theTooltipText- tooltip texttheAcceleratorText- accelerator text (null or empty for none)- Returns:
- tooltip
-