Spec-Zone.ru › OpenJavaFX 24

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

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 java.lang.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

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

© 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.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API