Class StyleHandlerRegistry.Builder
java.lang.Object
jfx.incubator.scene.control.richtext.StyleHandlerRegistry.Builder
- Enclosing class:
StyleHandlerRegistry
The builder used to create an immutable instance of
StyleHandlerRegistry.- Since:
- 24
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutable instance ofStyleHandlerRegistry.<C extends RichTextArea, T>
voidsetParHandler(StyleAttribute<T> a, StyleAttributeHandler<C, T> h) Sets the paragraph handler for the given attribute.<C extends RichTextArea, T>
voidsetSegHandler(StyleAttribute<T> a, StyleAttributeHandler<C, T> h) 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 typeT- the attribute value type- Parameters:
a- the attributeh- 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 typeT- the attribute value type- Parameters:
a- the attributeh- the handler
-
build
Creates an immutable instance ofStyleHandlerRegistry.- Returns:
- the
StyleHandlerRegistryinstance
-