Module org.tentackle.fx
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures the control.protected voidfilterKeys(T control) Filters certain keys for special features.protected voidRemaps certain keys.protected voidsetupFocusHandling(T control) Adds focus handling to sync with model.protected voidupdateModelAndView(FxControl control) Updates the model and the view.
The view update will also trigger dynamic rendering such as mandatory/changeable.
-
Constructor Details
-
ComponentConfigurator
public ComponentConfigurator()Parent constructor.
-
-
Method Details
-
configure
Configures the control.- Specified by:
configurein interfaceConfigurator<T extends javafx.scene.control.Control>- Parameters:
control- the control
-
setupFocusHandling
Adds focus handling to sync with model.- Parameters:
control- the control
-
remapKeys
Remaps certain keys.- Parameters:
control- the control
-
filterKeys
Filters certain keys for special features.- Parameters:
control- the control
-
updateModelAndView
Updates the model and the view.
The view update will also trigger dynamic rendering such as mandatory/changeable.- Parameters:
control- the control
-