Module MaterialFX

Class BoundTextField

All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class BoundTextField extends TextField
Similar to BoundLabel.

A special text field used by custom controls which has all its properties bound to another TextField control.

Note: JavaFX's text fields do not allow to also bind the selection and the caret position (thank you very much for making everything close/private you fucking donkeys devs), the only consistent way of doing this is to keep the reference in the custom control and redirect all the related methods to this field.

Oh, also another feature of this field is that it uses a special skin which allows to hide the caret. Because for some fucking reason the JavaFX's -fx-caret-visible property was not working, and I didn't want to understand why another borked JavaFX feature was not working so, as always, here's a brute force workaround, you're welcome.
  • Constructor Details

    • BoundTextField

      public BoundTextField(MFXTextField textField)
  • Method Details