Class TooltipBinder
java.lang.Object
io.github.snoopy137.languagemanager.binding.TooltipBinder
- All Implemented Interfaces:
ControlBinder
Binds the
textProperty
of Tooltip
controls to language keys.
This binder checks whether a given control is an instance of Tooltip
and binds its text to the language bundle using the provided key.
- Since:
- 1.1.0
- Author:
- alan
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TooltipBinder
public TooltipBinder()
-
-
Method Details
-
supports
Returnstrue
if the control is aTooltip
.- Specified by:
supports
in interfaceControlBinder
- Parameters:
control
- the control to check- Returns:
true
if the control is a Tooltip, otherwisefalse
-
bind
Binds thetextProperty
of theTooltip
to the language key.- Specified by:
bind
in interfaceControlBinder
- Parameters:
control
- the control to bindkey
- the language key used to retrieve localized text from the resource bundle
-