Class MFXStyleChangingRowFactory<T extends Modifiable>

java.lang.Object
cz.masci.commons.springfx.utility.MFXStyleChangingRowFactory<T>
Type Parameters:
T - Type of table item
All Implemented Interfaces:
Function<T,io.github.palexdev.materialfx.controls.MFXTableRow<T>>

public class MFXStyleChangingRowFactory<T extends Modifiable> extends Object implements Function<T,io.github.palexdev.materialfx.controls.MFXTableRow<T>>
Row factory for items in observable list. Add style class to the row if the item is found in the list.
Author:
Daniel Masek
  • Constructor Details

    • MFXStyleChangingRowFactory

      public MFXStyleChangingRowFactory()
  • Method Details

    • apply

      public io.github.palexdev.materialfx.controls.MFXTableRow<T> apply(T data)
      Add listener on table item to an observable list to check the item existence and therefor style changing.
      Specified by:
      apply in interface Function<T extends Modifiable,io.github.palexdev.materialfx.controls.MFXTableRow<T extends Modifiable>>
      Parameters:
      data - Data to add
      Returns:
      Table row