Package com.biglybt.ui.common.table
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
,ColumnSubscriptionAutoDownload
,ColumnSubscriptionCategory
,ColumnSubscriptionDependsOn
,ColumnSubscriptionEnabled
,ColumnSubscriptionError
,ColumnSubscriptionLastChecked
,ColumnSubscriptionMaxResults
,ColumnSubscriptionName
,ColumnSubscriptionNbNewResults
,ColumnSubscriptionNbResults
,ColumnSubscriptionNew
,ColumnSubscriptionNewestDate
,ColumnSubscriptionNextUpdate
,ColumnSubscriptionParent
,ColumnSubscriptionProtocol
,ColumnSubscriptionPublic
,ColumnSubscriptionSubscribers
,ColumnSubscriptionTag
,ColumnSubscriptionUpdatePeriod
,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
,DateLastActiveItem
,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
,FileMD5Item
,FileModifiedItem
,FilePrioritiesItem
,FileReadSpeedItem
,FilesDoneItem
,FileSHA1Item
,FilesItem
,FilesLinkedItem
,FileWriteSpeedItem
,FirstPieceItem
,GainItem
,HandshakeReservedBytesItem
,HealthItem
,HostNameItem
,IncomingRequestCountItem
,IndexItem
,InterestedItem
,InterestingItem
,IntervalItem
,IPFilterItem
,IpItem
,LANItem
,LastPieceItem
,LastUpdateItem
,LatencyItem
,LeecherMaxCompletion
,LeechersItem
,LeftItem
,LocalInterfaceItem
,MaskedItem
,MaxSRItem
,MaxUploadsItem
,MergedDataItem
,MessagingItem
,MinSRItem
,ModeItem
,MoveOnCompleteItem
,NameItem
,NameItem
,NameItem
,NameItem
,NameItem
,NameItem
,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
,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
,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 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCellOtherListener
(String listenerID, Object listener) void
addDataSourceType
(Class<?> forDataSourceType) void
addRefreshTime
(long ms) boolean
void
generateDiagnostics
(IndentWriter writer) int[]
Retreive all the Cell Added listenersObject[]
getCellOtherListeners
(String listenerID) Retrieve all the refresh listeners for the cellgetClipboardText
(TableCell cell) boolean
Retrieve whether the column has been added to the TableColumnManagerint
getContextMenuItems
(int menuStyle) int[]
long
Returns the key in the properties bundle that has the title of the column.getTitleLanguageKey
(boolean with_renames) boolean
Retrieve whether a core or plugin object is sent via getDataSource()boolean
handlesDataSourceType
(Class<?> cla) boolean
boolean
hasCellOtherListeners
(String listenerID) boolean
boolean
void
Send a cellAdded trigger to all listeners stored in TableColumnvoid
Send a dispose trigger to all listeners stored in TableColumnvoid
void
Send a mouse event to the cell mouse listenersvoid
invokeCellRefreshListeners
(TableCell cell, boolean fastRefresh) Send a refresh trigger to all listeners stored in TableColumnvoid
invokeCellToolTipListeners
(TableCellCore cell, int type) Send a tool tip event to the tool tip listenersvoid
invokeCellVisibilityListeners
(TableCellCore cell, int visibility) Send a visibility event to the cell's visibility listenersboolean
isDirty()
boolean
boolean
boolean
void
loadSettings
(Map mapSettings) Load width and position settings from config.void
removeCellOtherListener
(String listenerID, Object l) void
removeContextMenuItem
(TableContextMenuItem menuItem) void
reset()
void
saveSettings
(Map mapSettings) Save width and position settings to config.void
setAutoTooltip
(boolean auto_tooltip) void
setBackgroundColor
(int[] rgb) void
Set the internal flag specifying whether the column has been added to the TableColumnManager.void
setConsecutiveErrCount
(int iCount) void
setDefaultSortAscending
(boolean bAscending) void
setForegroundColor
(int[] rgb) void
void
setLastSortValueChange
(long lastSortValueChange) void
setPositionNoShift
(int position) Sets the position of the column without adjusting the other columns.void
setSortAscending
(boolean bAscending) void
setSortValueLive
(boolean live) void
setTableID
(String tableID) void
setUseCoreDataSource
(boolean bCoreDataSource) Changes what {@link TableCellCore.getDataSource()} and {@link TableRowCore.getDataSource()} return.boolean
void
triggerColumnSizeChange
(int diff) Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface com.biglybt.pif.ui.tables.TableColumn
addCellAddedListener, addCellDisposeListener, addCellMenuListener, addCellMouseListener, addCellRefreshListener, addCellToolTipListener, addColumnExtraInfoListener, addContextMenuItem, addContextMenuItem, addListeners, getAlignment, getForDataSourceType, getIconReference, 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, 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 {@link TableCellCore.getDataSource()} and {@link TableRowCore.getDataSource()} return.- 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
Send a refresh trigger to all listeners stored in TableColumn- Parameters:
cell
- the cell is being refreshed- Throws:
Throwable
- Since:
- 2.1.0.0
-
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
- Parameters:
listenerID
-listener
-- Since:
- 3.1.1.1
-
removeCellOtherListener
-
getCellOtherListeners
- Parameters:
listenerID
-- Returns:
- Since:
- 3.1.1.1
-
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() -
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) -
isDirty
boolean isDirty()
-