Top Description Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

pack-priv Class VFlowCellContext

extends Object
implements CellContext
Class Inheritance
All Implemented Interfaces
jfx.incubator.scene.control.richtext.skin.CellContext
Imports
javafx.scene.Node, jfx.incubator.scene.control.richtext.model.StyleAttributeMap, jfx.incubator.scene.control.richtext.skin.CellContext

Assist in creating virtualized text cells.

Field Summary

Modifier and TypeField and Description
private StyleAttributeMap
private Node
private final StringBuilder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addStyle(String
the inline style string
fxStyle
)

Implements jfx.incubator.scene.control.richtext.skin.CellContext.addStyle.

Adds an inline style.

pack-priv void
public StyleAttributeMap
public Node
getNode()

Implements jfx.incubator.scene.control.richtext.skin.CellContext.getNode.

Returns the node being styled.

pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attrsback to summary
private StyleAttributeMap attrs
nodeback to summary
private Node node
styleback to summary
private final StringBuilder style

Constructor Detail

VFlowCellContextback to summary
public VFlowCellContext()

Method Detail

addStyleback to summary
public void addStyle(String fxStyle)

Implements jfx.incubator.scene.control.richtext.skin.CellContext.addStyle.

Doc from jfx.incubator.scene.control.richtext.skin.CellContext.addStyle.

Adds an inline style.

The inline style must be a valid CSS style string, for example "-fx-font-size:15px;". This string might contain multiple CSS properties.

Parameters
fxStyle:String

the inline style string

Annotations
@Override
applyback to summary
pack-priv void apply()
getAttributesback to summary
public StyleAttributeMap getAttributes()

Implements jfx.incubator.scene.control.richtext.skin.CellContext.getAttributes.

Doc from jfx.incubator.scene.control.richtext.skin.CellContext.getAttributes.

Returns the current attributes.

Returns:StyleAttributeMap

the current attributes.

Annotations
@Override
getNodeback to summary
public Node getNode()

Implements jfx.incubator.scene.control.richtext.skin.CellContext.getNode.

Doc from jfx.incubator.scene.control.richtext.skin.CellContext.getNode.

Returns the node being styled.

This might be a TextFlow (for the paragraph cell context) or Text (for the text segment cell context).

Returns:Node

the node being styled.

Annotations
@Override
resetback to summary
pack-priv void reset(Node n, StyleAttributeMap a)