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:
  • Constructor Details Link icon

    • StyleAttribute Link icon

      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 Link icon

    • getName Link icon

      public String getName()
      Attribute name.
      Returns:
      attribute name
    • getType Link icon

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

      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