com.aelitis.azureus.ui.common.table
Interface TableColumnCore

All Superinterfaces:
java.util.Comparator, TableColumn
All Known Implementing Classes:
AlertsItem, AnnounceCountItem, ASItem, AvailabilityItem, AvailabilityItem, AverageBytesInItem, AverageBytesOutItem, AvgAvailItem, BadAvailTimeItem, BadNATCountItem, BlockCountItem, BlocksItem, CategoryItem, CategoryItem, CategoryItem, ChokedItem, ChokingItem, ClientIdentificationItem, ClientItem, ColumnActivityActions, ColumnActivityDate, ColumnActivityNew, ColumnActivityText, ColumnActivityType, ColumnControls, ColumnDateSizer, ColumnDoneWithDND, ColumnFileCount, ColumnPeerNetwork, ColumnProgressETA, ColumnSizeWithDND, ColumnStream, ColumnSubscriptionAutoDownload, ColumnSubscriptionCategory, ColumnSubscriptionEnabled, ColumnSubscriptionError, ColumnSubscriptionLastChecked, ColumnSubscriptionMaxResults, ColumnSubscriptionName, ColumnSubscriptionNbNewResults, ColumnSubscriptionNbResults, ColumnSubscriptionNew, ColumnSubscriptionParent, ColumnSubscriptionSubscribers, ColumnSubscriptionTag, ColumnTC_ChosenColumn, ColumnTC_Info, ColumnTC_NameInfo, ColumnTC_Sample, ColumnThumbAndName, ColumnThumbnail, ColumnTorrentSpeed, ColumnUnopened, CommentIconItem, CommentItem, CompletedCountItem, CompletedItem, CompletedItem, CompletedItem, CompletionItem, ConnectedTimeItem, CoreTableColumn, CoreTableColumnSWT, DateAddedItem, DateAddedItem, DateCompletedItem, DateFileCompletedItem, DateLastActiveItem, DescriptionItem, DiscardedItem, DLedFromOthersItem, DoneItem, DoneItem, DownItem, DownItem, DownloadedItem, DownloadNameItem, DownSpeedItem, DownSpeedItem, DownSpeedLimitItem, DownSpeedLimitItem, EncryptionItem, ETAItem, FileAvailabilityItem, FileCRC32Item, FileETAItem, FileExtensionItem, FileExtensionItem, FileHashItemBase, FileIndexItem, FileMD5Item, FileReadSpeedItem, FilesDoneItem, FileSHA1Item, FilesLinkedItem, FileWriteSpeedItem, FirstPieceItem, GainItem, HandshakeReservedBytesItem, HealthItem, HostNameItem, IncomingRequestCountItem, IndexItem, InterestedItem, InterestingItem, IntervalItem, IPFilterItem, IpItem, LANItem, LastUpdateItem, LatencyItem, LeechersItem, LeftItem, MaxSRItem, MaxUploadsItem, MergedDataItem, MessagingItem, MinSRItem, ModeItem, NameItem, NameItem, NameItem, NameItem, NameItem, NameItem, NetworksItem, OnlyCDing4Item, OptimisticUnchokeItem, OutgoingRequestCountItem, PassiveItem, PathItem, PathNameItem, PeakDownItem, PeakUpItem, PeerByteIDItem, PeerCountItem, PeerIDItem, PeersItem, PeersItem, PeerSourceItem, PeerSourcesItem, PercentItem, PercentItem, PersistentItem, PersistentItem, PieceCountItem, PieceItem, PieceNumberItem, PiecesItem, PiecesItem, PortItem, PriorityItem, PriorityItem, ProgressGraphItem, ProtocolItem, RankItem, RelocatedItem, RemainingItem, RemainingPiecesItem, RequestedItem, ReservedByItem, SavePathItem, ScrapeCountItem, SecondsDownloadingItem, SecondsSeedingItem, SeedCountItem, SeedsItem, SeedsItem, SeedToPeerRatioItem, SessionDownItem, SessionUpItem, ShareRatioItem, ShareRatioProgressItem, SizeItem, SizeItem, SizeItem, SizeItem, SmoothedDownItem, SmoothedETAItem, SmoothedUpItem, SnubbedItem, SpeedItem, StateItem, StatUpItem, StatusItem, StatusItem, StatusItem, StorageTypeItem, SwarmAverageCompletion, SwarmAverageSpeed, TableColumnImpl, TagAddedToDateItem, TagColorsItem, TagsItem, TimeSinceDownloadItem, TimeSinceUploadItem, TimeToSendPieceItem, TimeUntilCompleteItem, TorrentCreateDateItem, TorrentPathItem, TorrentRelativePathItem, TotalBytesInItem, TotalBytesOutItem, TotalDownSpeedItem, TotalSpeedItem, TrackerItem, TrackerNameItem, TrackerNextAccessItem, TrackerStatusItem, TypeItem, TypeItem, TypeItem, TypeItem, UniquePieceItem, UpdateInItem, UpDownRatioItem, UpItem, UpItem, UploadedItem, UpRatioItem, UpSpeedItem, UpSpeedItem, UpSpeedLimitItem, UpSpeedLimitItem, WritersItem

public interface TableColumnCore
extends TableColumn, java.util.Comparator

Core Table Column functions are those available to plugins plus some core-only functions. The core-only functions are listed here.

See Also:
TableColumnManager

Field Summary
 
Fields inherited from interface org.gudy.azureus2.plugins.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
 void addCellOtherListener(java.lang.String listenerID, java.lang.Object listener)
           
 void addDataSourceType(java.lang.Class<?> forDataSourceType)
           
 void addRefreshTime(long ms)
           
 boolean doesAutoTooltip()
           
 void generateDiagnostics(IndentWriter writer)
           
 java.util.List getCellAddedListeners()
          Retreive all the Cell Added listeners
 java.lang.Object[] getCellOtherListeners(java.lang.String listenerID)
           
 java.util.List getCellRefreshListeners()
          Retrieve all the refresh listeners for the cell
 java.lang.String getClipboardText(TableCell cell)
           
 boolean getColumnAdded()
          Retrieve whether the column has been added to the TableColumnManager
 java.util.List<TableColumnExtraInfoListener> getColumnExtraInfoListeners()
           
 int getConsecutiveErrCount()
           
 TableContextMenuItem[] getContextMenuItems(int menuStyle)
           
 TableCellInplaceEditorListener getInplaceEditorListener()
           
 long getLastSortValueChange()
           
 java.lang.String getTitleLanguageKey()
          Returns the key in the properties bundle that has the title of the column.
 java.lang.String getTitleLanguageKey(boolean with_renames)
           
 boolean getUseCoreDataSource()
          Retrieve whether a core or plugin object is sent via getDataSource()
 boolean handlesDataSourceType(java.lang.Class<?> cla)
           
 boolean hasCellMouseMoveListener()
           
 boolean hasCellOtherListeners(java.lang.String listenerID)
           
 boolean hasCellRefreshListener()
           
 boolean hasInplaceEditorListener()
           
 void invokeCellAddedListeners(TableCell cell)
          Send a cellAdded trigger to all listeners stored in TableColumn
 void invokeCellDisposeListeners(TableCell cell)
          Send a dispose trigger to all listeners stored in TableColumn
 void invokeCellMouseListeners(TableCellMouseEvent event)
          Send a mouse event to the cell mouse listeners
 void invokeCellRefreshListeners(TableCell cell, boolean fastRefresh)
          Send a refresh trigger to all listeners stored in TableColumn
 void invokeCellToolTipListeners(TableCellCore cell, int type)
          Send a tool tip event to the tool tip listeners
 void invokeCellVisibilityListeners(TableCellCore cell, int visibility)
          Send a visibility event to the cell's visibility listeners
 boolean isRemoved()
           
 boolean isSortAscending()
           
 boolean isSortValueLive()
           
 void loadSettings(java.util.Map mapSettings)
          Load width and position settings from config.
 void removeCellOtherListener(java.lang.String listenerID, java.lang.Object l)
           
 void removeContextMenuItem(TableContextMenuItem menuItem)
           
 void reset()
           
 void saveSettings(java.util.Map mapSettings)
          Save width and position settings to config.
 void setAutoTooltip(boolean auto_tooltip)
           
 void setColumnAdded()
          Set the internal flag specifying whether the column has been added to the TableColumnManager.
 void setConsecutiveErrCount(int iCount)
           
 void setDefaultSortAscending(boolean bAscending)
           
 void setInplaceEditorListener(TableCellInplaceEditorListener l)
           
 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(java.lang.String tableID)
           
 void setUseCoreDataSource(boolean bCoreDataSource)
          Changes what TableCellCore.getDataSource() and TableRowCore.getDataSource() return.
 boolean showOnlyImage()
           
 void triggerColumnSizeChange(int diff)
           
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.tables.TableColumn
addCellAddedListener, addCellDisposeListener, 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, isMaxWidthAuto, isMinWidthAuto, isObfusticated, isPreferredWidthAuto, isVisible, postConfigLoad, preConfigSave, remove, removeCellAddedListener, removeCellDisposeListener, removeCellMouseListener, removeCellRefreshListener, removeCellToolTipListener, removeColumnExtraInfoListener, removeUserData, setAlignment, setIconReference, setMaxWidth, setMaxWidthAuto, setMinimumRequiredUserMode, setMinWidth, setMinWidthAuto, setNameOverride, setObfustication, setPosition, setPreferredWidth, setPreferredWidthAuto, setRefreshInterval, setType, setUserData, setVisible, setWidth, setWidthLimits, setWidthPX
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

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 TableCellCore.getDataSource() and 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

void invokeCellRefreshListeners(TableCell cell,
                                boolean fastRefresh)
                                throws java.lang.Throwable
Send a refresh trigger to all listeners stored in TableColumn

Parameters:
cell - the cell is being refreshed
Throws:
java.lang.Throwable
Since:
2.1.0.0

getCellRefreshListeners

java.util.List getCellRefreshListeners()
Retrieve all the refresh listeners for the cell

Returns:
Cell refresh listeners
Since:
2.5.0.0

invokeCellAddedListeners

void invokeCellAddedListeners(TableCell cell)
Send a cellAdded trigger to all listeners stored in TableColumn

Parameters:
cell - the cell is being added
Since:
2.1.0.0

getCellAddedListeners

java.util.List getCellAddedListeners()
Retreive all the Cell Added listeners

Returns:
cell added listeners for this cell
Since:
2.5.0.0

invokeCellDisposeListeners

void invokeCellDisposeListeners(TableCell cell)
Send a dispose trigger to all listeners stored in TableColumn

Parameters:
cell - the cell is being disposed
Since:
2.1.0.0

invokeCellToolTipListeners

void invokeCellToolTipListeners(TableCellCore cell,
                                int type)
Send a tool tip event to the tool tip listeners

Parameters:
cell - Cell to get the tool tip event
type -
Since:
2.1.0.2

invokeCellMouseListeners

void invokeCellMouseListeners(TableCellMouseEvent event)
Send a mouse event to the cell mouse listeners

Parameters:
event - Mouse Event to send
Since:
2.4.0.0

invokeCellVisibilityListeners

void invokeCellVisibilityListeners(TableCellCore cell,
                                   int visibility)
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 usefull if you are adjusting the positions of multiple columns at once.

Parameters:
position - new position (0 based)
Since:
2.1.0.0
See Also:
TableColumnManager.ensureIntegrity()

loadSettings

void loadSettings(java.util.Map mapSettings)
Load width and position settings from config.

Parameters:
mapSettings - map to place settings into
Since:
2.1.0.0

saveSettings

void saveSettings(java.util.Map mapSettings)
Save width and position settings to config.

Parameters:
mapSettings - map to place settings into
Since:
2.1.0.0

getTitleLanguageKey

java.lang.String getTitleLanguageKey()
Returns the key in the properties bundle that has the title of the column.

Returns:
Title's language key

getTitleLanguageKey

java.lang.String getTitleLanguageKey(boolean with_renames)

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

void removeContextMenuItem(TableContextMenuItem menuItem)
Parameters:
menuItem -
Since:
2.1.0.0

getContextMenuItems

TableContextMenuItem[] getContextMenuItems(int menuStyle)
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

void generateDiagnostics(IndentWriter writer)
Parameters:
writer -
Since:
2.5.0.0

setTableID

void setTableID(java.lang.String tableID)
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

void addCellOtherListener(java.lang.String listenerID,
                          java.lang.Object listener)
Parameters:
listenerID -
listener -
Since:
3.1.1.1

removeCellOtherListener

void removeCellOtherListener(java.lang.String listenerID,
                             java.lang.Object l)

getCellOtherListeners

java.lang.Object[] getCellOtherListeners(java.lang.String listenerID)
Parameters:
listenerID -
Returns:
Since:
3.1.1.1

hasCellOtherListeners

boolean hasCellOtherListeners(java.lang.String listenerID)
Parameters:
listenerID -
Returns:
Since:
4.1.0.5

isRemoved

boolean isRemoved()
Returns:
Since:
4005

getColumnExtraInfoListeners

java.util.List<TableColumnExtraInfoListener> getColumnExtraInfoListeners()
Returns:
Since:
4.0.0.5

reset

void reset()

getClipboardText

java.lang.String getClipboardText(TableCell cell)

handlesDataSourceType

boolean handlesDataSourceType(java.lang.Class<?> cla)

addDataSourceType

void addDataSourceType(java.lang.Class<?> forDataSourceType)
Parameters:
forDataSourceType -
Since:
4.6.0.1

showOnlyImage

boolean showOnlyImage()

getInplaceEditorListener

TableCellInplaceEditorListener getInplaceEditorListener()

hasInplaceEditorListener

boolean hasInplaceEditorListener()

setInplaceEditorListener

void setInplaceEditorListener(TableCellInplaceEditorListener l)