Class TabBinder
java.lang.Object
io.github.snoopy137.languagemanager.binding.TabBinder
- All Implemented Interfaces:
ControlBinder
Binds the
textProperty and tooltip of Tab controls to
language keys.
This binder checks whether a given control is an instance of Tab and
binds its text and tooltip to the language bundle using the provided key.
The tooltip is bound using a key with the suffix .tooltip. If no
tooltip is initially present, one is created automatically.
- Since:
- 1.1.0
- Author:
- alan
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TabBinder
public TabBinder()
-
-
Method Details
-
supports
Returnstrueif the control is aTab.- Specified by:
supportsin interfaceControlBinder- Parameters:
control- the control to check- Returns:
trueif the control is a Tab, otherwisefalse
-
bind
Binds thetextPropertyandtooltip.textPropertyof theTabto the language key.- Specified by:
bindin interfaceControlBinder- Parameters:
control- the control to bindkey- the language key used to retrieve localized text from the resource bundle
-