Top Description Fields Constructors Methods
jfx.incubator.scene.control.richtext.model

public final Class StyleAttribute<T>

extends Object
Class Inheritance
Type Parameters
<T>
the attribute value type
Imports
java.util.Objects

Style Attribute provides a way to specify style in the RichTextArea.
Since
24
See Also
StyleAttributeMap

Field Summary

Modifier and TypeField and Description
private final boolean
private final String
private final Class<T>

Constructor Summary

AccessConstructor and Description
public
StyleAttribute(String
the attribute name (cannot be null)
name
,
Class<T>
the attribute type
type
,
boolean
specifies a paragraph attribute (true), or a character attribute (false)
isParagraph
)

Constructs the style attribute.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

attribute name
getName
()

Attribute name.

public final Class<T>

Returns:

attribute type
getType
()

Returns the class corresponding to the attribute value.

public boolean

Returns:

true for a paragraph attribute, false for a character attribute
isParagraphAttribute
()

Returns true for a paragraph attribute, false for a character attribute.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

isParagraphback to summary
private final boolean isParagraph
nameback to summary
private final String name
typeback to summary
private final Class<T> type

Constructor Detail

StyleAttributeback to summary
public StyleAttribute(String name, Class<T> type, boolean isParagraph)

Constructs the style attribute.

Parameters
name:String

the attribute name (cannot be null)

type:Class<T>

the attribute type

isParagraph:boolean

specifies a paragraph attribute (true), or a character attribute (false)

Method Detail

getNameback to summary
public String getName()

Attribute name.

Returns:String

attribute name

getTypeback to summary
public final Class<T> getType()

Returns the class corresponding to the attribute value.

Returns:Class<T>

attribute type

isParagraphAttributeback to summary
public boolean isParagraphAttribute()

Returns true for a paragraph attribute, false for a character attribute.

Returns:boolean

true for a paragraph attribute, false for a character attribute

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override