Class FxHTMLEditorDelegate

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 FxHTMLEditorDelegate extends FxTextComponentDelegate
Delegate for FxHTMLEditor.
Author:
harald
  • Constructor Details

    • FxHTMLEditorDelegate

      public FxHTMLEditorDelegate(FxHTMLEditor component)
      Creates the delegate.
      Parameters:
      component - the component
  • Method Details

    • getComponent

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

      public FxContainer getParentContainer()
      Description copied from interface: FxControl
      Gets the parent container.
      Specified by:
      getParentContainer in interface FxControl
      Overrides:
      getParentContainer in class FxComponentDelegate
      Returns:
      the parent, null if not a component of a container
    • 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
    • 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
    • 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.