Class FxTextFieldDelegate

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

public class FxTextFieldDelegate extends AbstractTextFieldDelegate<FxTextField>
Delegate for FxTextField.
Author:
harald
  • Constructor Details

    • FxTextFieldDelegate

      public FxTextFieldDelegate(FxTextField component)
      Creates the delegate.
      Parameters:
      component - the component
  • Method Details

    • getViewObject

      public String getViewObject()
      Description copied from interface: FxComponent
      Retrieves the internal native object of the component.
      Returns:
      the component's object
    • setViewObject

      public void setViewObject(Object viewObject)
      Description copied from interface: FxComponent
      Sets the internal native object of the component.
      Parameters:
      viewObject - the internal object
    • setColumns

      public void setColumns(int columns)
      Description copied from interface: FxTextComponent
      Sets the number of columns in this component.
      The visible width is adjusted according to the current font.
      Parameters:
      columns - the number of columns ≥ 0
    • getColumns

      public int getColumns()
      Description copied from interface: FxTextComponent
      Gets the columns.
      Returns:
      the columns
    • setMaxColumns

      public void setMaxColumns(int maxColumns)
      Description copied from interface: FxTextComponent
      Sets the maximum number of columns.
      The number of columns will be enforced by the model.
      Specified by:
      setMaxColumns in interface FxTextComponent
      Overrides:
      setMaxColumns in class FxTextComponentDelegate
      Parameters:
      maxColumns - the maximum number of columns, 0 if unlimited (default)
    • setViewValue

      public void setViewValue(Object value)
      Description copied from interface: FxComponent
      Sets a value in this component.
      The value's type is that of the model.
      Specified by:
      setViewValue in interface FxComponent
      Overrides:
      setViewValue in class FxComponentDelegate
      Parameters:
      value - is the value to set