Class ColumnStream
- java.lang.Object
-
- com.biglybt.ui.common.table.impl.TableColumnImpl
-
- com.biglybt.ui.common.table.impl.CoreTableColumn
-
- com.biglybt.ui.swt.views.table.CoreTableColumnSWT
-
- com.biglybt.ui.swt.columns.torrent.ColumnStream
-
- All Implemented Interfaces:
TableCellAddedListener
,TableCellMouseListener
,TableCellRefreshListener
,TableCellToolTipListener
,TableColumn
,TableColumnExtraInfoListener
,TableColumnCore
,TableCellSWTPaintListener
,java.util.Comparator<TableRowCore>
public class ColumnStream extends CoreTableColumnSWT implements TableCellSWTPaintListener, TableCellAddedListener, TableCellRefreshListener, TableCellMouseListener, TableCellToolTipListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COLUMN_ID
static java.lang.Class[]
DATASOURCE_TYPES
private static boolean
first
private static java.lang.Object
firstLock
private static org.eclipse.swt.graphics.Image
imgBlue
private static org.eclipse.swt.graphics.Image
imgDisabled
private static org.eclipse.swt.graphics.Image
imgGreen
(package private) static boolean
skipPaint
private static int
WIDTH
-
Fields inherited from class com.biglybt.ui.common.table.impl.TableColumnImpl
this_mon
-
Fields inherited from interface com.biglybt.pif.ui.tables.TableColumn
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEAD, ALIGN_TOP, ALIGN_TRAIL, CAT_BYTES, CAT_CONNECTION, CAT_CONTENT, CAT_ESSENTIAL, CAT_PEER_IDENTIFICATION, CAT_PROGRESS, CAT_PROTOCOL, CAT_SETTINGS, CAT_SHARING, CAT_SWARM, CAT_TIME, CAT_TRACKER, INTERVAL_GRAPHIC, INTERVAL_INVALID_ONLY, INTERVAL_LIVE, MENU_STYLE_COLUMN_DATA, MENU_STYLE_HEADER, POSITION_INVISIBLE, POSITION_LAST, TYPE_GRAPHIC, TYPE_TEXT, TYPE_TEXT_ONLY, UD_FORCE_VISIBLE
-
-
Constructor Summary
Constructors Constructor Description ColumnStream(java.lang.String tableID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cellAdded(TableCell cell)
triggered when a cell is being added.void
cellHover(TableCell cell)
triggered when a cell's tooltip is about to be displayed.void
cellHoverComplete(TableCell cell)
triggered when a cell's tooltip is about to be removed.void
cellMouseTrigger(TableCellMouseEvent event)
triggered when a mouse event for the TableCell occurs, excluding mouse move.void
cellPaint(org.eclipse.swt.graphics.GC gc, TableCellSWT cell)
void
fillTableColumnInfo(TableColumnInfo info)
Provide the app with information about your Table Columnprivate boolean
noIconForYou(java.lang.Object ds, TableCell cell)
void
preAdd()
void
refresh(TableCell cell)
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
-
Methods inherited from class com.biglybt.ui.swt.views.table.CoreTableColumnSWT
addListeners
-
Methods inherited from class com.biglybt.ui.common.table.impl.CoreTableColumn
initializeAsGraphic, initializeAsGraphic
-
Methods inherited from class com.biglybt.ui.common.table.impl.TableColumnImpl
addCellAddedListener, addCellClipboardListener, addCellDisposeListener, addCellMouseListener, addCellMouseMoveListener, addCellOtherListener, addCellRefreshListener, addCellToolTipListener, addCellVisibilityListener, addColumnExtraInfoListener, addContextMenuItem, addContextMenuItem, addDataSourceType, addDataSourceTypes, addRefreshTime, compare, doesAutoTooltip, generateDiagnostics, getAlignment, getBackgroundColor, getCellAddedListeners, getCellOtherListeners, getCellRefreshListeners, getClipboardText, getColumnAdded, getColumnExtraInfoListeners, getConsecutiveErrCount, getContextMenuItems, getForDataSourceType, getForDataSourceTypes, getForegroundColor, getIconReference, getInplaceEditorListener, getLastSortValueChange, getMaxWidth, getMinWidth, getName, getNameOverride, getPosition, getPreferredWidth, getPreferredWidthMax, getRefreshInterval, getTableID, getTitleLanguageKey, getTitleLanguageKey, getType, getUseCoreDataSource, getUserData, getUserDataString, getWidth, handlesDataSourceType, hasCellMouseMoveListener, hasCellOtherListeners, hasCellRefreshListener, hasInplaceEditorListener, initialize, initialize, invalidateCell, invalidateCells, invokeCellAddedListeners, invokeCellDisposeListeners, invokeCellMouseListeners, invokeCellRefreshListeners, invokeCellToolTipListeners, invokeCellVisibilityListeners, isDirty, isFirstLoad, isObfuscated, isPreferredWidthAuto, isRemoved, isSortAscending, isSortValueLive, isVisible, loadSettings, postConfigLoad, preConfigSave, remove, removeCellAddedListener, removeCellClipboardListener, removeCellDisposeListener, removeCellMouseListener, removeCellMouseMoveListener, removeCellOtherListener, removeCellRefreshListener, removeCellToolTipListener, removeCellVisibilityListener, removeColumnExtraInfoListener, removeContextMenuItem, removeUserData, reset, saveSettings, setAlignment, setAutoTooltip, setBackgroundColor, setColumnAdded, setConsecutiveErrCount, setDefaultSortAscending, setForegroundColor, setIconReference, setInplaceEditorListener, setLastSortValueChange, setMaxWidth, setMinimumRequiredUserMode, setMinWidth, setNameOverride, setObfuscation, setPosition, setPositionNoShift, setPreferredWidth, setPreferredWidthAuto, setPreferredWidthMax, setRefreshInterval, setSortAscending, setSortValueLive, setTableID, setType, setUseCoreDataSource, setUserData, setVisible, setWidth, setWidthLimits, setWidthPX, showOnlyImage, triggerColumnSizeChange
-
-
-
-
Field Detail
-
COLUMN_ID
public static final java.lang.String COLUMN_ID
- See Also:
- Constant Field Values
-
DATASOURCE_TYPES
public static final java.lang.Class[] DATASOURCE_TYPES
-
WIDTH
private static final int WIDTH
- See Also:
- Constant Field Values
-
imgGreen
private static org.eclipse.swt.graphics.Image imgGreen
-
imgDisabled
private static org.eclipse.swt.graphics.Image imgDisabled
-
imgBlue
private static org.eclipse.swt.graphics.Image imgBlue
-
firstLock
private static final java.lang.Object firstLock
-
first
private static boolean first
-
skipPaint
static boolean skipPaint
-
-
Method Detail
-
fillTableColumnInfo
public void fillTableColumnInfo(TableColumnInfo info)
Description copied from interface:TableColumnExtraInfoListener
Provide the app with information about your Table Column- Specified by:
fillTableColumnInfo
in interfaceTableColumnExtraInfoListener
- Overrides:
fillTableColumnInfo
in classCoreTableColumn
- Parameters:
info
- Use setters to set information
-
preAdd
public void preAdd()
- Overrides:
preAdd
in classTableColumnImpl
-
noIconForYou
private boolean noIconForYou(java.lang.Object ds, TableCell cell)
-
cellPaint
public void cellPaint(org.eclipse.swt.graphics.GC gc, TableCellSWT cell)
- Specified by:
cellPaint
in interfaceTableCellSWTPaintListener
-
cellAdded
public void cellAdded(TableCell cell)
Description copied from interface:TableCellAddedListener
triggered when a cell is being added.- Specified by:
cellAdded
in interfaceTableCellAddedListener
- Parameters:
cell
- TableCell that is being added
-
refresh
public void refresh(TableCell cell)
Description copied from interface:TableCellRefreshListener
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
- Specified by:
refresh
in interfaceTableCellRefreshListener
- Parameters:
cell
- TableCell that the refresh trigger is for
-
cellMouseTrigger
public void cellMouseTrigger(TableCellMouseEvent event)
Description copied from interface:TableCellMouseListener
triggered when a mouse event for the TableCell occurs, excluding mouse move.- Specified by:
cellMouseTrigger
in interfaceTableCellMouseListener
- Parameters:
event
- Mouse event information
-
cellHover
public void cellHover(TableCell cell)
Description copied from interface:TableCellToolTipListener
triggered when a cell's tooltip is about to be displayed.- Specified by:
cellHover
in interfaceTableCellToolTipListener
- Parameters:
cell
- TableCell which the tooltip will be displayed for
-
cellHoverComplete
public void cellHoverComplete(TableCell cell)
Description copied from interface:TableCellToolTipListener
triggered when a cell's tooltip is about to be removed.- Specified by:
cellHoverComplete
in interfaceTableCellToolTipListener
- Parameters:
cell
- TableCell which the tooltip will be removed
-
-