Top Description Fields Constructors Methods
org.jabref.htmltonode.rich

public final Class HtmlRichTextArea

extends RichTextArea
Class Inheritance
Imports
jfx.incubator.scene.control.richtext.RichTextArea, .StyleHandlerRegistry, jfx.incubator.scene.control.richtext.model.StyledTextModel, jfx.incubator.scene.control.richtext.skin.CellContext

A 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.jabref.htmltonode.FxRenderer, whose link runs carry javafx.scene.Cursor#HAND. 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.

Field Summary

Modifier and TypeField and Description
private static final String
HAND_CURSOR_STYLE

Mirrors the -fx-...:value; shape the control's built-in handlers append to the cell style.

private static final StyleHandlerRegistry
Inherited from jfx.incubator.scene.control.richtext.RichTextArea:
styleHandlerRegistry

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private static StyleHandlerRegistry
public StyleHandlerRegistry
getStyleHandlerRegistry()

Overrides jfx.incubator.scene.control.richtext.RichTextArea.getStyleHandlerRegistry.

Returns the style handler registry for this control.

Inherited from jfx.incubator.scene.control.richtext.RichTextArea:
anchorPositionPropertyappendTextappendTextappendTextapplyStylebackspacecaretBlinkPeriodPropertycaretPositionPropertyclearclearSelectionclearUndoRedocontentPaddingPropertycopycopycreateDefaultSkincutdeletedeleteParagraphdeleteParagraphStartdeleteWordNextEnddeleteWordNextStartdeleteWordPreviousdeselectdisplayCaretPropertyeditablePropertyerrorFeedbackexecuteexecuteAccessibleActionexecuteDefaultextendSelectiongetActiveStyleAttributeMapgetAnchorPositiongetCaretBlinkPeriodgetCaretPositiongetClassCssMetaDatagetContentPaddinggetControlCssMetaDatagetDocumentEndgetInputMapgetInsertStylesgetLeftDecoratorgetLineEndinggetModelgetParagraphCountgetParagraphEndgetPlainTextgetRightDecoratorgetSelectiongetTextPositionhasNonEmptySelectionhighlightCurrentParagraphPropertyinsertLineBreakinsertStylesPropertyinsertTabinsertTextinsertTextisDisplayCaretisEditableisHighlightCurrentParagraphisRedoableisUndoableisUndoRedoEnabledisUseContentHeightisUseContentWidthisWrapTextleftDecoratorPropertymodelPropertymoveDocumentEndmoveDocumentStartmoveDownmoveLeftmoveLineEndmoveLineStartmoveParagraphDownmoveParagraphEndmoveParagraphStartmoveParagraphUpmoveRightmoveUpmoveWordLeftmoveWordNextEndmoveWordNextStartmoveWordPreviousmoveWordRightpageDownpageUppastepastepastePlainTextqueryAccessibleAttributereadreadredoredoablePropertyreplaceTextreplaceTextrightDecoratorPropertyselectselectselectAllselectDownselectionPropertyselectLeftselectPageDownselectPageUpselectParagraphselectParagraphDownselectParagraphEndselectParagraphStartselectParagraphUpselectRightselectToDocumentEndselectToDocumentStartselectToLineEndselectToLineStartselectUpselectWordselectWordLeftselectWordNextEndselectWordNextStartselectWordPreviousselectWordRightsetCaretBlinkPeriodsetContentPaddingsetDisplayCaretsetEditablesetHighlightCurrentParagraphsetInsertStylessetLeftDecoratorsetLineEndingsetModelsetRightDecoratorsetStylesetUndoRedoEnabledsetUseContentHeightsetUseContentWidthsetWrapTextundoundoablePropertyuseContentHeightPropertyuseContentWidthPropertyvalidateModelwrapTextPropertywritewrite

Field Detail

HAND_CURSOR_STYLEback to summary
private static final String HAND_CURSOR_STYLE

Mirrors the -fx-...:value; shape the control's built-in handlers append to the cell style.

REGISTRYback to summary
private static final StyleHandlerRegistry REGISTRY

Constructor Detail

HtmlRichTextAreaback to summary
public HtmlRichTextArea()
HtmlRichTextAreaback to summary
public HtmlRichTextArea(StyledTextModel model)

Method Detail

buildRegistryback to summary
private static StyleHandlerRegistry buildRegistry()
getStyleHandlerRegistryback to summary
public StyleHandlerRegistry getStyleHandlerRegistry()

Overrides jfx.incubator.scene.control.richtext.RichTextArea.getStyleHandlerRegistry.

Doc from jfx.incubator.scene.control.richtext.RichTextArea.getStyleHandlerRegistry.

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.

Annotations
@Override