Interface CellContext
public interface CellContext
This interface provides a mechanism for the Skin to support custom
StyleAttribute
s.
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:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an inline style.Returns the current attributes.getNode()
Returns the node being styled.
-
Method Details
-
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
- the inline style string
-
getNode
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:
- the node being styled.
-
getAttributes
-