Class NameItem
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.views.tableitems.files.NameItem
- All Implemented Interfaces:
TableCellInplaceEditorListener
,TableCellLightRefreshListener
,TableCellMouseListener
,TableCellMouseMoveListener
,TableCellRefreshListener
,TableCellToolTipListener
,TableColumn
,TableColumnExtraInfoListener
,TableColumnCore
,ObfuscateCellText
,TableCellSWTPaintListener
,Comparator<TableRowCore>
public class NameItem
extends CoreTableColumnSWT
implements TableCellLightRefreshListener, ObfuscateCellText, TableCellSWTPaintListener, TableCellMouseMoveListener, TableCellInplaceEditorListener, TableCellToolTipListener
Torrent name cell for My Torrents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static boolean
private ParameterListener
private static AsyncDispatcher
private static final String
private static final Object
private static final Object
(package private) final TableContextMenuItem
private static boolean
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
triggered when a mouse event for the TableCell occurs, excluding mouse move.void
cellPaint
(org.eclipse.swt.graphics.GC gc, TableCellSWT cell) private void
cellPaintName
(TableCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle cellBounds, int textX, int originalBoundxsX) void
Provide the app with information about your Table ColumngetClipboardText
(TableCell cell) getObfuscatedText
(TableCell cell) boolean
inplaceValueSet
(TableCell cell, String value, boolean finalEdit) Override this function to obtain edited valuesvoid
implement this method if you want to be notified when the stored column configuration such as user data or GUI-adjustable properties have been loadedvoid
implement this method if you want to be notified when the column configuration is about to be serializedvoid
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
void
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
void
remove()
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, addCellMenuListener, addCellMouseListener, addCellMouseMoveListener, addCellOtherListener, addCellRefreshListener, addCellToolTipListener, addCellVisibilityListener, addColumnExtraInfoListener, addContextMenuItem, addContextMenuItem, addDataSourceType, addDataSourceTypes, addRefreshTime, compare, doesAutoTooltip, generateDiagnostics, getAlignment, getBackgroundColor, getCellAddedListeners, getCellOtherListeners, getCellRefreshListeners, getColumnAdded, getColumnExtraInfoListeners, getConsecutiveErrCount, getContextMenuItems, getForDataSourceType, getForDataSourceTypes, getForegroundColor, getIconReference, getIconReferenceEnabled, 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, invokeCellMenuListeners, invokeCellMouseListeners, invokeCellRefreshListeners, invokeCellToolTipListeners, invokeCellVisibilityListeners, isDirty, isFirstLoad, isObfuscated, isPreferredWidthAuto, isRemoved, isSortAscending, isSortValueLive, isVisible, loadSettings, preAdd, removeCellAddedListener, removeCellClipboardListener, removeCellDisposeListener, removeCellMenuListener, removeCellMouseListener, removeCellMouseMoveListener, removeCellOtherListener, removeCellRefreshListener, removeCellToolTipListener, removeCellVisibilityListener, removeColumnExtraInfoListener, removeContextMenuItem, removeUserData, reset, saveSettings, setAlignment, setAutoTooltip, setBackgroundColor, setColumnAdded, setConsecutiveErrCount, setDefaultSortAscending, setForegroundColor, setIconReference, setIconReferenceEnabled, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
ID_CHECKHITAREA
- See Also:
-
KEY_OLD_CELL_TT
-
KEY_PATH_ICON
-
NEVER_SHOW_TWISTY
private static boolean NEVER_SHOW_TWISTY -
bShowIcon
private static boolean bShowIcon -
dispatcher
-
configShowProgramIconListener
-
-
Constructor Details
-
NameItem
public NameItem()Default Constructor
-
-
Method Details
-
remove
public void remove()- Specified by:
remove
in interfaceTableColumn
- Overrides:
remove
in classTableColumnImpl
-
fillTableColumnInfo
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
-
postConfigLoad
public void postConfigLoad()Description copied from interface:TableColumn
implement this method if you want to be notified when the stored column configuration such as user data or GUI-adjustable properties have been loaded- Specified by:
postConfigLoad
in interfaceTableColumn
- Overrides:
postConfigLoad
in classTableColumnImpl
-
preConfigSave
public void preConfigSave()Description copied from interface:TableColumn
implement this method if you want to be notified when the column configuration is about to be serialized- Specified by:
preConfigSave
in interfaceTableColumn
- Overrides:
preConfigSave
in classTableColumnImpl
-
refresh
Description copied from interface:TableCellLightRefreshListener
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
- Specified by:
refresh
in interfaceTableCellLightRefreshListener
- Parameters:
cell
- TableCell that the refresh trigger is forsortOnlyRefresh
- true when the cell is being refreshed despite not being visible (this usually occurs when the cell belongs to the sort column)
-
refresh
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
-
cellPaint
- Specified by:
cellPaint
in interfaceTableCellSWTPaintListener
-
cellPaintName
private void cellPaintName(TableCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle cellBounds, int textX, int originalBoundxsX) -
cellHover
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
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
-
getClipboardText
- Specified by:
getClipboardText
in interfaceTableColumnCore
- Overrides:
getClipboardText
in classTableColumnImpl
-
getObfuscatedText
- Specified by:
getObfuscatedText
in interfaceObfuscateCellText
-
cellMouseTrigger
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
-
inplaceValueSet
Description copied from interface:TableCellInplaceEditorListener
Override this function to obtain edited values- Specified by:
inplaceValueSet
in interfaceTableCellInplaceEditorListener
- Parameters:
cell
- that is being editedvalue
- the new valuefinalEdit
- true if the user finalizes his editing- Returns:
- should be false if the currently entered value is invalid
-