Class VFXObservingTableCell.VFXObservingTableCellSkin

java.lang.Object
javafx.scene.control.SkinBase<VFXCellBase<T>>
io.github.palexdev.mfxcore.controls.MFXSkinBase<VFXCellBase<T>>
io.github.palexdev.virtualizedfx.cells.VFXLabeledCellSkin<T>
io.github.palexdev.virtualizedfx.cells.VFXObservingTableCell.VFXObservingTableCellSkin
All Implemented Interfaces:
javafx.scene.control.Skin<VFXCellBase<T>>
Enclosing class:
VFXObservingTableCell<T,E>

public class VFXObservingTableCell.VFXObservingTableCellSkin extends VFXLabeledCellSkin<T>
Default skin implementation used by VFXObservingTableCell and extension of VFXLabeledCellSkin.

I could have overridden the base class in-line, but I decided to make it a separate class to make it easier to customize.

The update() method is overridden and functions quite differently, make sure to carefully read the documentation. The addListeners() method has also been modified to call onItemChanged() rather than update() directly when the VFXCellBase.itemProperty() changes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected io.github.palexdev.mfxcore.observables.When<E>
     

    Fields inherited from class VFXLabeledCellSkin

    label
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Adds an InvalidationListener on the VFXCellBase.itemProperty() to call onItemChanged() when it changes, and an EventHandler to support "manual" updates through events of type VFXContainerEvent.UPDATE (although this should not be needed here).
    void
     
    protected void
    The auto-updating feature of this cell implementation is no magic.
    protected void
    Updates the label's text by using the converter on the property extracted by VFXObservingTableCell.getProperty().

    Methods inherited from class io.github.palexdev.mfxcore.controls.MFXSkinBase

    events, getBehavior, getBehaviorAs, getControl, listeners

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javafx.scene.control.Skin

    install
  • Field Details

    • listener

      protected io.github.palexdev.mfxcore.observables.When<E> listener
  • Constructor Details

    • VFXObservingTableCellSkin

      public VFXObservingTableCellSkin(VFXCellBase<T> cell)
  • Method Details