Interface ControlBinder
- All Known Implementing Classes:
CheckBoxBinder
,ChoiceBoxBinder
,ComboBoxBinder
,ContextMenuBinder
,HyperlinkBinder
,LabeledBinder
,ListViewItemBinder
,MenuBinder
,MenuItemBinder
,RadioButtonBinder
,TabBinder
,TextInputBinder
,TitledPaneBinder
,TooltipBinder
,TreeItemBinder
public interface ControlBinder
Defines the contract for binding localized text to a specific type of JavaFX
control.
Implementations of this interface are responsible for determining if a given control is supported and applying the appropriate binding logic using the provided localization key.
This interface allows Language Manager to be extended with support for additional JavaFX UI controls beyond the default ones.
- Since:
- 1.1.0
- Author:
- alan
-
Method Summary
-
Method Details
-
supports
Checks whether this binder supports the given control type.- Parameters:
control
- the UI control to evaluate- Returns:
true
if this binder can bind the given control,false
otherwise
-
bind
Applies localization binding to the given control using the specified key.- Parameters:
control
- the UI control to bindkey
- the localization key to bind to the control
-