Package com.biglybt.pif.ui.tables
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 boolean
private static TableCellRefresher
private long
private Map<TableCell,
TableColumn> private AEThread2
private AERunnable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
_addColumnCell
(TableColumn column, TableCell cell) private int
_getRefreshIndex
(int refreshEvery100ms, int nbIndices) static void
addCell
(TableColumn column, TableCell cell) private static TableCellRefresher
static int
getRefreshIndex
(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)
-