Package com.biglybt.pif.ui.tables
Class TableCellRefresher
- java.lang.Object
-
- com.biglybt.pif.ui.tables.TableCellRefresher
-
public class TableCellRefresher extends java.lang.Object
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
Fields Modifier and Type Field Description private boolean
inProgress
private static TableCellRefresher
instance
private long
iterationNumber
private java.util.Map<TableCell,TableColumn>
mapCellsToColumn
private AEThread2
refresher
private AERunnable
runnable
-
Constructor Summary
Constructors Modifier Constructor Description private
TableCellRefresher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_addColumnCell(TableColumn column, TableCell cell)
private int
_getRefreshIndex(int refreshEvery100ms, int nbIndices)
static void
addCell(TableColumn column, TableCell cell)
private static TableCellRefresher
getInstance()
static int
getRefreshIndex(int refreshEvery100ms, int nbIndices)
-
-
-
Field Detail
-
instance
private static TableCellRefresher instance
-
refresher
private AEThread2 refresher
-
mapCellsToColumn
private java.util.Map<TableCell,TableColumn> mapCellsToColumn
-
iterationNumber
private long iterationNumber
-
inProgress
private volatile boolean inProgress
-
runnable
private AERunnable runnable
-
-
Method Detail
-
_addColumnCell
private void _addColumnCell(TableColumn column, TableCell cell)
-
_getRefreshIndex
private int _getRefreshIndex(int refreshEvery100ms, int nbIndices)
-
getInstance
private static TableCellRefresher getInstance()
-
addCell
public static void addCell(TableColumn column, TableCell cell)
-
getRefreshIndex
public static int getRefreshIndex(int refreshEvery100ms, int nbIndices)
-
-