Class StyleAttribute<T>
java.lang.Object
jfx.incubator.scene.control.richtext.model.StyleAttribute<T>
- Type Parameters:
T- the attribute value type
Style Attribute provides a way to specify style in the RichTextArea.
- Since:
- 24
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic <P> StyleAttribute<P> Creates a character attribute.static <P> StyleAttribute<P> Creates a document attribute.getName()Attribute name.getType()Returns the class corresponding to the attribute value.booleanReturns true if this instance is a character attribute.booleanReturns true if this instance is a document attribute.booleanReturns true if this instance is a paragraph attribute.static <P> StyleAttribute<P> Creates a paragraph attribute.
-
Method Details
-
character
Creates a character attribute.- Type Parameters:
P- the attribute value type- Parameters:
name- the attribute nametype- the attribute value type- Returns:
- the new character attribute instance
- Since:
- 27
-
document
Creates a document attribute.- Type Parameters:
P- the attribute value type- Parameters:
name- the attribute nametype- the attribute value type- Returns:
- the new document attribute instance
- Since:
- 27
-
paragraph
Creates a paragraph attribute.- Type Parameters:
P- the attribute value type- Parameters:
name- the attribute nametype- the attribute value type- Returns:
- the new paragraph attribute instance
- Since:
- 27
-
getName
-
getType
-
isCharacterAttribute
public boolean isCharacterAttribute()Returns true if this instance is a character attribute.- Returns:
- true for a character attribute
- Since:
- 27
-
isDocumentAttribute
public boolean isDocumentAttribute()Returns true if this instance is a document attribute.- Returns:
- true for a document attribute
- Since:
- 27
-
isParagraphAttribute
public boolean isParagraphAttribute()Returns true if this instance is a paragraph attribute.- Returns:
- true for a paragraph attribute
-