Spec-Zone.ru › OpenJavaFX 24

Interface CellContext

public interface CellContext
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 Type Method Description
void addStyle(String fxStyle)
Adds an inline style.
StyleAttributeMap getAttributes()
Returns the current attributes.
Node getNode()
Returns the node being styled.

Method Details

addStyle

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 - 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

StyleAttributeMap getAttributes()
Returns the current attributes.
Returns:
the current attributes.

Report a bug or suggest an enhancement
Copyright © 2008, 2025, Oracle and/or its affiliates. All rights reserved.

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API