StyleAttribute (JavaFX 25)
Description: declaration: module: jfx.incubator.richtext, package: jfx.incubator.scene.control.richtext.model, class: StyleAttribute

# Class StyleAttribute<T>

java.lang.Object
jfx.incubator.scene.control.richtext.model.StyleAttribute<T>

Type Parameters:
  `T` - the attribute value type

public final class StyleAttribute<T> extends Object
Style Attribute provides a way to specify style in the RichTextArea.

Since:
  24
See Also:
  - `StyleAttributeMap`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StyleAttribute(String name, Class<T> type, boolean isParagraph)`
  Constructs the style attribute.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getName()`
  Attribute name.
  `final Class<T>`
  `getType()`
  Returns the class corresponding to the attribute value.
  `boolean`
  `isParagraphAttribute()`
  Returns true for a paragraph attribute, false for a character attribute.

  ### Methods declared in class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### StyleAttribute

    public StyleAttribute(String name, Class<T> type, boolean isParagraph)
    Constructs the style attribute.
    Parameters:
      `name` - the attribute name (cannot be null)
      `type` - the attribute type
      `isParagraph` - specifies a paragraph attribute (true), or a character attribute (false)

- ## Method Details

  - ### getName

    public String getName()
    Attribute name.
    Returns:
      attribute name

  - ### getType

    public final Class<T> getType()
    Returns the class corresponding to the attribute value.
    Returns:
      attribute type

  - ### isParagraphAttribute

    public boolean isParagraphAttribute()
    Returns true for a paragraph attribute, false for a character attribute.
    Returns:
      true for a paragraph attribute, false for a character attribute