StyleAttributeHandler (JavaFX 28)
Description: declaration: module: jfx.incubator.richtext, package: jfx.incubator.scene.control.richtext, interface: StyleAttributeHandler

# Interface StyleAttributeHandler<C extends RichTextArea, T>

Type Parameters:
  `C` - the actual type of RichTextArea control
  `T` - the attribute value type

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StyleAttributeHandler<C extends RichTextArea, T>
This functional interface defines a style attribute handler.

This interface is needed when extending the RichTextArea with support for other style attributes. Applications should not normally use this interface.

The purpose of this handler is to apply changes to the `CellContext` based on the value of the corresponding attribute.

Since:
  24

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `apply(C control, CellContext cx, T value)`
  Executes the attribute handler for the given control, cell context, and the attribute value.

- ## Method Details

  - ### apply

    void apply(C control, CellContext cx, T value)
    Executes the attribute handler for the given control, cell context, and the attribute value.
    Parameters:
      `control` - the control
      `cx` - the cell context
      `value` - the attribute value