Class TrackerView
java.lang.Object
com.biglybt.ui.swt.views.table.impl.TableViewTab<TrackerPeerSource>
com.biglybt.ui.swt.views.TrackerView
- All Implemented Interfaces:
DownloadManagerTPSListener, AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, TableDataSourceChangedListener, TableLifeCycleListener, TableSelectionListener, ObfuscateImage, UISWTViewEventListener, UISWTViewCoreEventListener, TableViewSWTMenuFillListener
public class TrackerView
extends TableViewTab<TrackerPeerSource>
implements TableLifeCycleListener, TableDataSourceChangedListener, DownloadManagerTPSListener, TableViewSWTMenuFillListener, TableSelectionListener, UIPluginViewToolBarListener
aka "Sources" view
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TableColumnCore[]private DownloadManagerstatic final Stringstatic final Class<TrackerPeerSource> private TableViewSWT<TrackerPeerSource> Fields inherited from interface TableLifeCycleListener
EVENT_TABLELIFECYCLE_DESTROYED, EVENT_TABLELIFECYCLE_INITIALIZED, EVENT_TABLELIFECYCLE_SHUTDOWNFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidaddThisColumnSubMenu(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.voiddefaultSelected(TableRowCore[] rows, int stateMask) voiddeselected(TableRowCore[] rows) booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursvoidvoidfocusChanged(TableRowCore focus) booleanisActive()voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate static voidprivate static voidremoveTrackerPeerSources(Object[] datasources) private static voidvoidselected(TableRowCore[] rows) private voidshowInAllTrackers(TrackerPeerSource source) voidtableDataSourceChanged(Object newDataSource) voidtableLifeCycleEventOccurred(TableView tv, int eventType, Map<String, Object> data) voidvoidbooleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidprotected voidMethods inherited from class TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initComposite, initialize, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, tableViewTabInitComplete, updateLanguage, viewActivatedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableSelectionListener
defaultSelected, focusRequested, selectionChangedMethods inherited from interface UISWTViewEventListener
builderNotRequired, informOfDuplicates
-
Field Details
-
PLUGIN_DS_TYPE
-
basicItems
-
MSGID_PREFIX
- See Also:
-
manager
-
tv
-
-
Constructor Details
-
TrackerView
public TrackerView()Initialize
-
-
Method Details
-
initYourTableView
- Specified by:
initYourTableViewin classTableViewTab<TrackerPeerSource>
-
removeTrackerPeerSources
-
removeTrackerPeerSources
-
registerPluginViews
private static void registerPluginViews() -
fillMenu
- Specified by:
fillMenuin interfaceTableViewSWTMenuFillListener
-
addThisColumnSubMenu
Description copied from interface:TableViewSWTMenuFillListenerCreate a SubMenu for column specific tasks. Everytime the user opens the context menu, the "This Column" submenu is cleared, and this function is called to refill it.- Specified by:
addThisColumnSubMenuin interfaceTableViewSWTMenuFillListener- Parameters:
columnName- The name of the column the user clicked onmenuThisColumn- the menu to fill with MenuItems
-
trackerPeerSourcesChanged
public void trackerPeerSourcesChanged()- Specified by:
trackerPeerSourcesChangedin interfaceDownloadManagerTPSListener
-
tableDataSourceChanged
- Specified by:
tableDataSourceChangedin interfaceTableDataSourceChangedListener
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurredin interfaceTableLifeCycleListener
-
tableViewInitialized
public void tableViewInitialized() -
tableViewDestroyed
public void tableViewDestroyed() -
addExistingDatasources
private void addExistingDatasources() -
updateSelectedContent
protected void updateSelectedContent() -
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
showInAllTrackers
-
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-
eventOccurred
Description copied from interface:UISWTViewEventListenerTriggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurredin interfaceUISWTViewEventListener- Overrides:
eventOccurredin classTableViewTab<TrackerPeerSource>- Parameters:
event- event that occurred- Returns:
- meaning dependent upon event type
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceUIPluginViewToolBarListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-