RichTextArea that renders links with the hand cursor.
The incubator control gives every segment's Text node the default text (I-beam) cursor, so a
link would otherwise be indistinguishable from ordinary selectable text on hover — unlike
org., whose link runs carry javafx.. The
control has no built-in notion of links; the recommended way to react to a custom character
attribute is to extend its StyleHandlerRegistry (see the incubator docs). This subclass adds a
segment handler for RichTextRenderer#HREF that appends an -fx-cursor: hand inline style via
the CellContext, exactly as the control's own attribute handlers do. Routing it through the
cell context (rather than setting the cursor on the node directly) means the skin re-applies it
on every layout and, because it replaces a segment node's whole inline style, a recycled node
reused for a non-link run does not keep a stale hand cursor.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | HAND_CURSOR_STYLE
Mirrors the |
| private static final StyleHandlerRegistry |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static StyleHandlerRegistry | |
| public StyleHandlerRegistry | getStyleHandlerRegistry()
Overrides jfx. Returns the style handler registry for this control. |
| HAND_CURSOR_STYLE | back to summary |
|---|---|
| private static final String HAND_CURSOR_STYLE Mirrors the | |
| REGISTRY | back to summary |
|---|---|
| private static final StyleHandlerRegistry REGISTRY | |
| HtmlRichTextArea | back to summary |
|---|---|
| public HtmlRichTextArea() | |
| HtmlRichTextArea | back to summary |
|---|---|
| public HtmlRichTextArea(StyledTextModel model) | |
| buildRegistry | back to summary |
|---|---|
| private static StyleHandlerRegistry buildRegistry() | |
| getStyleHandlerRegistry | back to summary |
|---|---|
| public StyleHandlerRegistry getStyleHandlerRegistry() Overrides jfx. Doc from jfx. Returns the style handler registry for this control. Applications should not normally call this method as it is intended for use by the skin subclasses.
| |