Class StyleHandlerRegistry.Builder
java.lang.Object
jfx.incubator.scene.control.richtext.StyleHandlerRegistry.Builder
- Enclosing class:
StyleHandlerRegistry
public static class StyleHandlerRegistry.Builder extends Object
The builder used to create an immutable instance of
StyleHandlerRegistry.- Since:
- 24
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
StyleHandlerRegistry |
build() |
Creates an immutable instance of StyleHandlerRegistry. |
<C extends RichTextArea, |
setParHandler |
Sets the paragraph handler for the given attribute. |
<C extends RichTextArea, |
setSegHandler |
Sets the text segment handler for the given attribute. |
Method Details
setParHandler
public <C extends RichTextArea, T> void setParHandler(StyleAttribute<T> a, StyleAttributeHandler<C,T> h)
Sets the paragraph handler for the given attribute.
- Type Parameters:
-
C- the control type -
T- the attribute value type - Parameters:
-
a- the attribute -
h- the handler
setSegHandler
public <C extends RichTextArea, T> void setSegHandler(StyleAttribute<T> a, StyleAttributeHandler<C,T> h)
Sets the text segment handler for the given attribute.
- Type Parameters:
-
C- the control type -
T- the attribute value type - Parameters:
-
a- the attribute -
h- the handler
build
public StyleHandlerRegistry build()
Creates an immutable instance of
StyleHandlerRegistry.- Returns:
- the
StyleHandlerRegistryinstance
© 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.