Package org.fxmisc.flowless
Class CellWrapper<T,N extends javafx.scene.Node,C extends Cell<T,N>>
- java.lang.Object
-
- org.fxmisc.flowless.CellWrapper<T,N,C>
-
-
Constructor Summary
Constructors Constructor Description CellWrapper(C delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>afterDispose(C cell, java.lang.Runnable action)static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>afterReset(C cell, java.lang.Runnable action)static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>afterUpdateIndex(C cell, java.util.function.IntConsumer action)static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>afterUpdateItem(C cell, java.util.function.Consumer<? super T> action)static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>beforeDispose(C cell, java.lang.Runnable action)static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>beforeReset(C cell, java.lang.Runnable action)static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>beforeUpdateIndex(C cell, java.util.function.IntConsumer action)static <T,N extends javafx.scene.Node,C extends Cell<T,N>>
CellWrapper<T,N,C>beforeUpdateItem(C cell, java.util.function.Consumer<? super T> action)voiddispose()Called when this cell is no longer going to be used at all.CgetDelegate()NgetNode()booleanisReusable()Indicates whether this cell can be reused to display different items.voidreset()Called when this cell is no longer used to display its item.java.lang.StringtoString()voidupdateIndex(int index)Called to update index of a visible cell.voidupdateItem(T item)If this cell is reusable (as indicated byCell.isReusable()), this method is called to display a different item.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.fxmisc.flowless.Cell
afterDispose, afterReset, afterUpdateIndex, afterUpdateItem, beforeDispose, beforeReset, beforeUpdateIndex, beforeUpdateItem
-
-
-
-
Constructor Detail
-
CellWrapper
public CellWrapper(C delegate)
-
-
Method Detail
-
beforeDispose
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> beforeDispose(C cell, java.lang.Runnable action)
-
afterDispose
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> afterDispose(C cell, java.lang.Runnable action)
-
beforeReset
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> beforeReset(C cell, java.lang.Runnable action)
-
afterReset
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> afterReset(C cell, java.lang.Runnable action)
-
beforeUpdateItem
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> beforeUpdateItem(C cell, java.util.function.Consumer<? super T> action)
-
afterUpdateItem
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> afterUpdateItem(C cell, java.util.function.Consumer<? super T> action)
-
beforeUpdateIndex
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> beforeUpdateIndex(C cell, java.util.function.IntConsumer action)
-
afterUpdateIndex
public static <T,N extends javafx.scene.Node,C extends Cell<T,N>> CellWrapper<T,N,C> afterUpdateIndex(C cell, java.util.function.IntConsumer action)
-
getDelegate
public C getDelegate()
-
isReusable
public boolean isReusable()
Description copied from interface:CellIndicates whether this cell can be reused to display different items.Default implementation returns
false.- Specified by:
isReusablein interfaceCell<T,N extends javafx.scene.Node>
-
updateItem
public void updateItem(T item)
Description copied from interface:CellIf this cell is reusable (as indicated byCell.isReusable()), this method is called to display a different item.Cell.reset()will have been called before a call to this method.The default implementation throws
UnsupportedOperationException.- Specified by:
updateItemin interfaceCell<T,N extends javafx.scene.Node>- Parameters:
item- the new item to display
-
updateIndex
public void updateIndex(int index)
Description copied from interface:CellCalled to update index of a visible cell.Default implementation does nothing.
- Specified by:
updateIndexin interfaceCell<T,N extends javafx.scene.Node>
-
reset
public void reset()
Description copied from interface:CellCalled when this cell is no longer used to display its item. If this cell is reusable, it may later be asked to display a different item by a call toCell.updateItem(Object).Default implementation does nothing.
-
dispose
public void dispose()
Description copied from interface:CellCalled when this cell is no longer going to be used at all.Cell.reset()will have been called before this method is invoked.Default implementation does nothing.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-