Class TableCellRefresher
java.lang.Object
com.biglybt.pif.ui.tables.TableCellRefresher
Provides a simple way to get a TableCell refreshed more often than the normal GUI refresh cycle
It always clocks at 100ms
as well as time synchronization methods for cells showing animated icons
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static TableCellRefresherprivate longprivate Map<TableCell, TableColumn> private AEThread2private AERunnable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void_addColumnCell(TableColumn column, TableCell cell) private int_getRefreshIndex(int refreshEvery100ms, int nbIndices) static voidaddCell(TableColumn column, TableCell cell) private static TableCellRefresherstatic intgetRefreshIndex(int refreshEvery100ms, int nbIndices)
-
Field Details
-
instance
-
refresher
-
mapCellsToColumn
-
iterationNumber
private long iterationNumber -
inProgress
private volatile boolean inProgress -
runnable
-
-
Constructor Details
-
TableCellRefresher
private TableCellRefresher()
-
-
Method Details
-
_addColumnCell
-
_getRefreshIndex
private int _getRefreshIndex(int refreshEvery100ms, int nbIndices) -
getInstance
-
addCell
-
getRefreshIndex
public static int getRefreshIndex(int refreshEvery100ms, int nbIndices)
-