Top Description Methods
jfx.incubator.scene.control.richtext.skin

public Interface CellContext

Known Direct Implementers
com.sun.jfx.incubator.scene.control.richtext.VFlowCellContext
Imports
javafx.scene.Node, jfx.incubator.scene.control.richtext.model.StyleAttributeMap

This interface provides a mechanism for the Skin to support custom StyleAttributes. During the layout pass, the cell context is passed to the Skin so the latter can add inline style(s) to either the paragraph Node (typically TextFlow) or the text segment Node (Text).
Since
24
See Also
RichTextAreaSkin#applyStyles(CellContext, StyleAttributeMap, boolean)

Method Summary

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

Adds an inline style.

public StyleAttributeMap

Returns:

the current attributes.
getAttributes
()

Returns the current attributes.

public Node

Returns:

the node being styled.
getNode
()

Returns the node being styled.

Method Detail

addStyleback to summary
public void addStyle(String fxStyle)

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

getAttributesback to summary
public StyleAttributeMap getAttributes()

Returns the current attributes.

Returns:StyleAttributeMap

the current attributes.

getNodeback to summary
public Node 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.