| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private static final String | |
| private static final boolean | |
| private final IntegerProperty | |
| private static final PseudoClass | |
| private static final PseudoClass | |
| private final ObjectProperty | |
| private StyleableBooleanProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public static List | getClassCssMetaData()
Hides javafx. Gets the |
| public final GridTableColumn | |
| public List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final int | |
| public S | |
| public final IntegerProperty | |
| public final boolean | |
| public ObjectProperty | |
| pack-priv final void | |
| pack-priv final void | |
| public void | |
| public final void | |
| public final StyleableBooleanProperty | |
| protected void | updateItem(T item, boolean empty)
Overrides javafx. The updateItem method should not be called by developers, but it is the best method for developers to override to allow for them to customise the visuals of the cell. |
| column | back to summary |
|---|---|
| private final ObjectProperty<GridTableColumn<S, T>> column | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS | |
| DEFAULT_TRANSPARENT | back to summary |
|---|---|
| private static final boolean DEFAULT_TRANSPARENT | |
| index | back to summary |
|---|---|
| private final IntegerProperty index | |
| PSEUDO_CLASS_EVEN | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_EVEN | |
| PSEUDO_CLASS_ODD | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_ODD | |
| rowItem | back to summary |
|---|---|
| private final ObjectProperty<S> rowItem | |
| transparent | back to summary |
|---|---|
| private StyleableBooleanProperty transparent | |
| GridTableCell | back to summary |
|---|---|
| public GridTableCell() | |
| columnProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the | |
| getColumn | back to summary |
|---|---|
| public final GridTableColumn | |
| getControlCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getIndex | back to summary |
|---|---|
| public final int getIndex() | |
| getRowItem | back to summary |
|---|---|
| public S getRowItem() | |
| indexProperty | back to summary |
|---|---|
| public final IntegerProperty indexProperty() | |
| isTransparent | back to summary |
|---|---|
| public final boolean isTransparent() | |
| rowItemProperty | back to summary |
|---|---|
| public ObjectProperty | |
| setColumn | back to summary |
|---|---|
| pack-priv final void setColumn(GridTableColumn<S, T> column) | |
| setIndex | back to summary |
|---|---|
| pack-priv final void setIndex(int index) | |
| setRowItem | back to summary |
|---|---|
| public void setRowItem(S rowItem) | |
| setTransparent | back to summary |
|---|---|
| public final void setTransparent(final boolean transparent) | |
| transparentProperty | back to summary |
|---|---|
| public final StyleableBooleanProperty transparentProperty() A custom property to enable CSS-based control of mouse transparency. Since mouseTransparent cannot be directly set through CSS, transparentProperty allows for CSS-driven adjustments, facilitating easier styling without altering existing code. | |
| updateItem | back to summary |
|---|---|
| protected void updateItem(T item, boolean empty) Overrides javafx. Doc from javafx. The updateItem method should not be called by developers, but it is the
best method for developers to override to allow for them to customise the
visuals of the cell. To clarify, developers should never call this method
in their code (they should leave it up to the UI control, such as the
It is very important that subclasses of Cell override the updateItem method properly, as failure to do so will lead to issues such as blank cells or cells with unexpected content appearing within them. Here is an example of how to properly override the updateItem method:
protected void updateItem(T item, boolean empty) {
super.updateItem(item, empty);
if (empty || item == null) {
setText(null);
setGraphic(null);
} else {
setText(item.toString());
}
}
Note in this code sample two important points:
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| TRANSPARENT | back to summary |
|---|---|
| private static final CssMetaData<GridTableCell<S, T>, Boolean> TRANSPARENT | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |