Class ComponentConfigurator<T extends javafx.scene.control.Control>

java.lang.Object
org.tentackle.fx.component.config.ComponentConfigurator<T>
Type Parameters:
T - the control type
All Implemented Interfaces:
Configurator<T>
Direct Known Subclasses:
ButtonBaseConfigurator, ChoiceBoxConfigurator, ComboBoxBaseConfigurator, DatePickerConfigurator, HTMLEditorConfigurator, LabelConfigurator, ListViewConfigurator, TableViewConfigurator, TextInputControlConfigurator, TreeTableViewConfigurator, TreeViewConfigurator

public abstract class ComponentConfigurator<T extends javafx.scene.control.Control> extends Object implements Configurator<T>
Configures a component.

The implementation allows overriding the base methods for a single configurator or all configurators via FxUtilities.

Author:
harald
  • Constructor Details

    • ComponentConfigurator

      public ComponentConfigurator()
      Parent constructor.
  • Method Details

    • configure

      public void configure(T control)
      Configures the control.
      Specified by:
      configure in interface Configurator<T extends javafx.scene.control.Control>
      Parameters:
      control - the control
    • setupFocusHandling

      protected void setupFocusHandling(T control)
      Adds focus handling to sync with model.
      Parameters:
      control - the control
    • remapKeys

      protected void remapKeys(T control)
      Remaps certain keys.
      Parameters:
      control - the control
    • filterKeys

      protected void filterKeys(T control)
      Filters certain keys for special features.
      Parameters:
      control - the control
    • updateModelAndView

      protected void updateModelAndView(FxControl control)
      Updates the model and the view.
      The view update will also trigger dynamic rendering such as mandatory/changeable.
      Parameters:
      control - the control