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 Summary
| Constructor | Description |
|---|---|
StyleAttribute |
Constructs the style attribute. |
Method Summary
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
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.