Class AbstractTextFieldDelegate<T extends javafx.scene.control.TextInputControl & FxTextComponent>

Type Parameters:
T - the text component type
All Implemented Interfaces:
Function<javafx.scene.control.TextFormatter.Change,javafx.scene.control.TextFormatter.Change>, UnaryOperator<javafx.scene.control.TextFormatter.Change>, ErrorPopupSupported, FxComponent, FxControl, FxTextComponent, InfoPopupSupported
Direct Known Subclasses:
FxPasswordFieldDelegate, FxTextAreaDelegate, FxTextFieldDelegate

public abstract class AbstractTextFieldDelegate<T extends javafx.scene.control.TextInputControl & FxTextComponent> extends FxTextComponentDelegate
Delegate for text input fields.
Author:
harald
  • Constructor Details

    • AbstractTextFieldDelegate

      public AbstractTextFieldDelegate(T component)
      Creates the delegate.
      Parameters:
      component - the component
  • Method Details

    • getComponent

      public T getComponent()
      Description copied from class: FxComponentDelegate
      Gets the component of this delegate.
      Specified by:
      getComponent in class FxComponentDelegate
      Returns:
      the component
    • mapErrorOffsetToCaretPosition

      public void mapErrorOffsetToCaretPosition()
      Description copied from interface: FxTextComponent
      Sets the caret position according to the error offset.
      Does nothing if error offset is null.