Interface TableColumnCore
- All Superinterfaces:
Comparator<TableRowCore>, TableColumn
- All Known Implementing Classes:
AlertsItem, AnnounceCountItem, ASItem, AvailabilityItem, AvailabilityItem, AverageBytesInItem, AverageBytesOutItem, AvgAvailItem, BadAvailTimeItem, BadNATCountItem, BlockCountItem, BlocksItem, BytesQueuedForUpload, CategoryIconsItem, CategoryItem, CategoryItem, CategoryItem, ChokedItem, ChokingItem, ClientIdentificationItem, ClientItem, ColumnActivityActions, ColumnActivityDate, ColumnActivityNew, ColumnActivityText, ColumnActivityType, ColumnCheckBox2, ColumnControls, ColumnDateSizer, ColumnDoneWithDND, ColumnFileCount, ColumnPeerNetwork, ColumnProgressETA, ColumnSearchSubResultTags, ColumnSizeWithDND, ColumnStream, ColumnSubscriptionActions, ColumnSubscriptionAutoDownload, ColumnSubscriptionCategory, ColumnSubscriptionDependsOn, ColumnSubscriptionEnabled, ColumnSubscriptionError, ColumnSubscriptionLastChecked, ColumnSubscriptionMaxResults, ColumnSubscriptionName, ColumnSubscriptionNbNewResults, ColumnSubscriptionNbResults, ColumnSubscriptionNew, ColumnSubscriptionNewestDate, ColumnSubscriptionNextUpdate, ColumnSubscriptionParent, ColumnSubscriptionProtocol, ColumnSubscriptionPublic, ColumnSubscriptionSubscribers, ColumnSubscriptionTag, ColumnSubscriptionUpdatePeriod, ColumnSubscriptionURL, ColumnTC_ChosenColumn, ColumnTC_Info, ColumnTC_NameInfo, ColumnTC_Sample, ColumnThumbAndName, ColumnThumbnail, ColumnTorrentSpeed, ColumnUnopened, CommentIconItem, CommentItem, CompletedCountItem, CompletedItem, CompletedItem, CompletedItem, CompletionItem, ConnectedTimeItem, ConnectHealthItem, CoreTableColumn, CoreTableColumnSWT, DateAddedItem, DateAddedItem, DateCompletedItem, DateFileCompletedItem, DateItem, DateLastActiveItem, DateLastQueuedItem, DateLastXferItem, DescriptionItem, DiscardedItem, DiskLatencyItem, DLedFromOthersItem, DoneBytesItem, DoneItem, DoneItem, DownItem, DownItem, DownloadedItem, DownloadHealthItem, DownloadNameItem, DownloadNameItem, DownloadNameItem, DownSpeedItem, DownSpeedItem, DownSpeedLimitItem, DownSpeedLimitItem, EncryptionItem, ETAItem, ExternalItem, FileAvailabilityItem, FileCRC32Item, FileCreationItem, FileETAItem, FileExtensionItem, FileExtensionItem, FileHashItemBase, FileIndexItem, FileIndexPlus1Item, FileMD5Item, FileModifiedItem, FilePrioritiesItem, FileReadSpeedItem, FilesDoneItem, FileSHA1Item, FilesItem, FilesLinkedItem, FileWriteSpeedItem, FirstPieceItem, GainItem, HandshakeReservedBytesItem, HealthItem, HostNameItem, IncomingRequestCountItem, IndexItem, InterestedItem, InterestingItem, IntervalItem, IPFilterItem, IpItem, LANItem, LastPieceItem, LastScrapeTimeItem, LastUpdateItem, LatencyItem, LeecherMaxCompletion, LeechersItem, LeftItem, LocalInterfaceItem, MaskedItem, MaxSRItem, MaxUploadsItem, MergedDataItem, MessagingItem, MinSRItem, ModeItem, MoveOnCompleteItem, NameItem, NameItem, NameItem, NameItem, NameItem, NameItem, NetworksIconsItem, NetworksItem, OnlyCDing4Item, OptimisticUnchokeItem, OutgoingRequestCountItem, PassiveItem, PathItem, PathNameItem, PeakDownItem, PeakUpItem, PeerByteIDItem, PeerCountItem, PeerFilesView.NameItem, PeerFilesView.PercentItem, PeerFilesView.PiecesItem, PeerIDItem, PeersItem, PeersItem, PeerSourceItem, PeerSourcesItem, PercentHaveTheyNeedItem, PercentHaveWeNeedItem, PercentItem, PercentItem, PersistentItem, PersistentItem, PieceCountItem, PieceItem, PieceNumberItem, PiecesDoneAndCountItem, PiecesItem, PiecesItem, PortItem, PriorityItem, PriorityItem, ProgressGraphItem, ProtocolItem, RankItem, RelocatedItem, RemainingItem, RemainingItem, RemainingPiecesItem, ReportedDownItem, ReportedUpItem, RequestedItem, ReservedByItem, SavePathItem, ScrapeCountItem, SecondsDownloadingItem, SecondsSeedingItem, SeedCountItem, SeedsItem, SeedsItem, SeedToPeerRatioItem, SessionDownItem, SessionUpItem, ShareRatioItem, ShareRatioProgressItem, SizeBytesItem, SizeItem, SizeItem, SizeItem, SizeItem, SmoothedDownItem, SmoothedETAItem, SmoothedUpItem, SnubbedItem, SpeedItem, StateItem, StatUpItem, StatusItem, StatusItem, StatusItem, StorageTypeItem, SuperSeedingItem, SwarmAverageCompletion, SwarmAverageSpeed, SwarmMaxCompletion, SwarmTagsItem, TableColumnImpl, TagAddedToDateItem, TagColorsItem, TagIconsItem, TagsColumn, TagsItem, TagsItem, TagSortItem, TimeSinceDownloadItem, TimeSinceUploadItem, TimeToSendPieceItem, TimeUntilCompleteItem, TorrentCreateDateItem, TorrentHashItem, TorrentHashV2Item, TorrentPathItem, TorrentRelativePathItem, TorrentV2RootHashItem, TotalBytesInItem, TotalBytesOutItem, TotalDownSpeedItem, TotalSpeedItem, TrackerItem, TrackerNameItem, TrackerNextAccessItem, TrackerStatusItem, TypeItem, TypeItem, TypeItem, TypeItem, UniquePieceItem, UpdateInItem, UpDownRatioItem, UpItem, UpItem, UploadedItem, UploadHealthItem, UploadPriorityItem, UpRatioItem, UpSpeedItem, UpSpeedItem, UpSpeedLimitItem, UpSpeedLimitItem, WritersItem
Core Table Column functions are those available to plugins plus
some core-only functions. The core-only functions are listed here.
- See Also:
-
Field Summary
Fields inherited from interface 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCellOtherListener(String listenerID, Object listener) voidaddDataSourceType(Class<?> forDataSourceType) voidaddRefreshTime(long ms) booleanvoidgenerateDiagnostics(IndentWriter writer) int[]Retreive all the Cell Added listenersObject[]getCellOtherListeners(String listenerID) Retrieve all the refresh listeners for the cellgetClipboardText(TableCell cell) booleanRetrieve whether the column has been added to the TableColumnManagerintgetContextMenuItems(int menuStyle) int[]longintReturns the key in the properties bundle that has the title of the column.getTitleLanguageKey(boolean with_renames) booleanRetrieve whether a core or plugin object is sent via getDataSource()booleanhandlesDataSourceType(Class<?> cla) booleanbooleanhasCellOtherListeners(String listenerID) booleanbooleanvoidSend a cellAdded trigger to all listeners stored in TableColumnvoidSend a dispose trigger to all listeners stored in TableColumnvoidvoidSend a mouse event to the cell mouse listenersvoidinvokeCellRefreshListeners(TableCell cell, boolean fastRefresh) Send a refresh trigger to all listeners stored in TableColumnvoidinvokeCellToolTipListeners(TableCellCore cell, int type) Send a tool tip event to the tool tip listenersvoidinvokeCellVisibilityListeners(TableCellCore cell, int visibility) Send a visibility event to the cell's visibility listenersbooleanisDirty()booleanbooleanbooleanvoidloadSettings(Map mapSettings) Load width and position settings from config.voidremoveCellOtherListener(String listenerID, Object l) voidremoveContextMenuItem(TableContextMenuItem menuItem) voidreset()voidreset(boolean width, boolean alignment, boolean fg, boolean bg) voidsaveSettings(Map mapSettings) Save width and position settings to config.voidsetAutoTooltip(boolean auto_tooltip) voidsetBackgroundColor(int[] rgb) voidSet the internal flag specifying whether the column has been added to the TableColumnManager.voidsetConsecutiveErrCount(int iCount) voidsetDefaultSortAscending(boolean bAscending) voidsetForegroundColor(int[] rgb) voidvoidsetLastSortValueChange(long lastSortValueChange) voidsetPositionNoShift(int position) Sets the position of the column without adjusting the other columns.voidsetPreferredHeaderWidth(int width) voidsetSortAscending(boolean bAscending) voidsetSortValueLive(boolean live) voidsetTableID(String tableID) voidsetUseCoreDataSource(boolean bCoreDataSource) Changes what} andinvalid @link
{@link TableCellCore.getDataSource()} return.invalid @link
{@link TableRowCore.getDataSource()booleanvoidtriggerColumnSizeChange(int diff) Methods inherited from interface Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface TableColumn
addCellAddedListener, addCellDisposeListener, addCellMenuListener, addCellMouseListener, addCellRefreshListener, addCellToolTipListener, addColumnExtraInfoListener, addContextMenuItem, addContextMenuItem, addListeners, getAlignment, getForDataSourceType, getIconReference, getIconReferenceEnabled, getMaxWidth, getMinWidth, getName, getNameOverride, getPosition, getPreferredWidth, getRefreshInterval, getTableID, getType, getUserData, getUserDataString, getWidth, initialize, initialize, invalidateCell, invalidateCells, isObfuscated, isPreferredWidthAuto, isVisible, postConfigLoad, preConfigSave, remove, removeCellAddedListener, removeCellDisposeListener, removeCellMenuListener, removeCellMouseListener, removeCellRefreshListener, removeCellToolTipListener, removeColumnExtraInfoListener, removeUserData, setAlignment, setIconReference, setIconReferenceEnabled, setMaxWidth, setMinimumRequiredUserMode, setMinWidth, setNameOverride, setObfuscation, setPosition, setPreferredWidth, setPreferredWidthAuto, setRefreshInterval, setType, setUserData, setVisible, setWidth, setWidthLimits, setWidthPX
-
Method Details
-
setColumnAdded
void setColumnAdded()Set the internal flag specifying whether the column has been added to the TableColumnManager. Some functions can not be run after a column has been added.- Since:
- 2.1.0.0
-
getColumnAdded
boolean getColumnAdded()Retrieve whether the column has been added to the TableColumnManager- Returns:
- true - Column has been added
false - Column has not been added - Since:
- 2.1.0.0
-
setUseCoreDataSource
void setUseCoreDataSource(boolean bCoreDataSource) Changes what} andinvalid @link
{@link TableCellCore.getDataSource()} return.invalid @link
{@link TableRowCore.getDataSource()- Parameters:
bCoreDataSource- true - returns a core object
false - returns a plugin object (if available)- Since:
- 2.1.0.0
-
getUseCoreDataSource
boolean getUseCoreDataSource()Retrieve whether a core or plugin object is sent via getDataSource()- Returns:
- true - returns a core object
false - returns a plugin object (if available) - Since:
- 2.1.0.0
-
invokeCellRefreshListeners
-
getCellRefreshListeners
List getCellRefreshListeners()Retrieve all the refresh listeners for the cell- Returns:
- Cell refresh listeners
- Since:
- 2.5.0.0
-
invokeCellAddedListeners
Send a cellAdded trigger to all listeners stored in TableColumn- Parameters:
cell- the cell is being added- Since:
- 2.1.0.0
-
getCellAddedListeners
List getCellAddedListeners()Retreive all the Cell Added listeners- Returns:
- cell added listeners for this cell
- Since:
- 2.5.0.0
-
invokeCellDisposeListeners
Send a dispose trigger to all listeners stored in TableColumn- Parameters:
cell- the cell is being disposed- Since:
- 2.1.0.0
-
invokeCellToolTipListeners
Send a tool tip event to the tool tip listeners- Parameters:
cell- Cell to get the tool tip eventtype-- Since:
- 2.1.0.2
-
invokeCellMouseListeners
Send a mouse event to the cell mouse listeners- Parameters:
event- Mouse Event to send- Since:
- 2.4.0.0
-
invokeCellMenuListeners
-
invokeCellVisibilityListeners
Send a visibility event to the cell's visibility listeners- Parameters:
visibility- Visibility state- Since:
- 2.5.0.2
-
setPositionNoShift
void setPositionNoShift(int position) Sets the position of the column without adjusting the other columns. This will cause duplicate columns, and is only useful if you are adjusting the positions of multiple columns at once.- Parameters:
position- new position (0 based)- Since:
- 2.1.0.0
-
loadSettings
Load width and position settings from config.- Parameters:
mapSettings- map to place settings into- Since:
- 2.1.0.0
-
saveSettings
Save width and position settings to config.- Parameters:
mapSettings- map to place settings into- Since:
- 2.1.0.0
-
getTitleLanguageKey
String getTitleLanguageKey()Returns the key in the properties bundle that has the title of the column.- Returns:
- Title's language key
-
getTitleLanguageKey
-
getConsecutiveErrCount
int getConsecutiveErrCount()- Returns:
- # of consecutive errors
- Since:
- 2.1.0.0
-
setConsecutiveErrCount
void setConsecutiveErrCount(int iCount) - Parameters:
iCount- # of consecutive errors- Since:
- 2.1.0.0
-
removeContextMenuItem
- Parameters:
menuItem-- Since:
- 2.1.0.0
-
getContextMenuItems
- Returns:
- Since:
- 2.1.0.0
-
hasCellRefreshListener
boolean hasCellRefreshListener()- Returns:
- Since:
- 2.5.0.0
-
getLastSortValueChange
long getLastSortValueChange()- Returns:
- Since:
- 2.5.0.0
-
setLastSortValueChange
void setLastSortValueChange(long lastSortValueChange) - Parameters:
lastSortValueChange-- Since:
- 2.5.0.0
-
setSortValueLive
void setSortValueLive(boolean live) - Parameters:
live-- Since:
- 2.5.0.0
-
isSortValueLive
boolean isSortValueLive()- Returns:
- Since:
- 2.5.0.0
-
addRefreshTime
void addRefreshTime(long ms) - Parameters:
ms-- Since:
- 2.5.0.0
-
generateDiagnostics
- Parameters:
writer-- Since:
- 2.5.0.0
-
setTableID
- Parameters:
tableID-- Since:
- 2.5.0.2
-
isSortAscending
boolean isSortAscending()- Returns:
- Since:
- 2.5.0.2
-
setSortAscending
void setSortAscending(boolean bAscending) - Parameters:
bAscending-- Since:
- 2.5.0.2
-
setDefaultSortAscending
void setDefaultSortAscending(boolean bAscending) - Parameters:
bAscending-- Since:
- 4.7.2.1
-
hasCellMouseMoveListener
boolean hasCellMouseMoveListener()- Returns:
- Since:
- 3.0.1.1
-
triggerColumnSizeChange
void triggerColumnSizeChange(int diff) -
setAutoTooltip
void setAutoTooltip(boolean auto_tooltip) -
doesAutoTooltip
boolean doesAutoTooltip() -
addCellOtherListener
-
removeCellOtherListener
-
getCellOtherListeners
-
hasCellOtherListeners
- Parameters:
listenerID-- Returns:
- Since:
- 4.1.0.5
-
isRemoved
boolean isRemoved()- Returns:
- Since:
- 4005
-
getColumnExtraInfoListeners
List<TableColumnExtraInfoListener> getColumnExtraInfoListeners()- Returns:
- Since:
- 4.0.0.5
-
reset
void reset() -
reset
void reset(boolean width, boolean alignment, boolean fg, boolean bg) -
getClipboardText
-
handlesDataSourceType
-
addDataSourceType
- Parameters:
forDataSourceType-- Since:
- 4.6.0.1
-
showOnlyImage
boolean showOnlyImage() -
getInplaceEditorListener
TableCellInplaceEditorListener getInplaceEditorListener() -
hasInplaceEditorListener
boolean hasInplaceEditorListener() -
setInplaceEditorListener
-
getForegroundColor
int[] getForegroundColor() -
setForegroundColor
void setForegroundColor(int[] rgb) -
getBackgroundColor
int[] getBackgroundColor() -
setBackgroundColor
void setBackgroundColor(int[] rgb) -
getPreferredHeaderWidth
int getPreferredHeaderWidth() -
setPreferredHeaderWidth
void setPreferredHeaderWidth(int width) -
isDirty
boolean isDirty()
-