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

    Modifier and Type
    Method
    Description
    void
    bind(Object control, String key)
    Applies localization binding to the given control using the specified key.
    boolean
    supports(Object control)
    Checks whether this binder supports the given control type.
  • Method Details

    • supports

      boolean supports(Object control)
      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

      void bind(Object control, String key)
      Applies localization binding to the given control using the specified key.
      Parameters:
      control - the UI control to bind
      key - the localization key to bind to the control