Package com.biglybt.ui.swt.views
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 DownloadManager
static final String
static final Class
<TrackerPeerSource> private TableViewSWT
<TrackerPeerSource> Fields inherited from interface com.biglybt.ui.common.table.TableLifeCycleListener
EVENT_TABLELIFECYCLE_DESTROYED, EVENT_TABLELIFECYCLE_INITIALIZED, EVENT_TABLELIFECYCLE_SHUTDOWN
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
addThisColumnSubMenu
(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.void
defaultSelected
(TableRowCore[] rows, int stateMask) void
deselected
(TableRowCore[] rows) boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursvoid
void
focusChanged
(TableRowCore focus) boolean
isActive()
void
mouseEnter
(TableRowCore row) void
mouseExit
(TableRowCore row) void
refreshToolBarItems
(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate static void
private static void
removeTrackerPeerSources
(Object[] datasources) private static void
void
selected
(TableRowCore[] rows) private void
showInAllTrackers
(TrackerPeerSource source) void
tableDataSourceChanged
(Object newDataSource) void
tableLifeCycleEventOccurred
(TableView tv, int eventType, Map<String, Object> data) void
void
boolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoid
protected void
Methods inherited from class com.biglybt.ui.swt.views.table.impl.TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initComposite, initialize, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, tableViewTabInitComplete, updateLanguage, viewActivated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.ui.common.table.TableSelectionListener
defaultSelected, focusRequested, selectionChanged
Methods inherited from interface com.biglybt.ui.swt.pif.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:
initYourTableView
in classTableViewTab<TrackerPeerSource>
-
removeTrackerPeerSources
-
removeTrackerPeerSources
-
registerPluginViews
private static void registerPluginViews() -
fillMenu
- Specified by:
fillMenu
in interfaceTableViewSWTMenuFillListener
-
addThisColumnSubMenu
Description copied from interface:TableViewSWTMenuFillListener
Create 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:
addThisColumnSubMenu
in interfaceTableViewSWTMenuFillListener
- Parameters:
columnName
- The name of the column the user clicked onmenuThisColumn
- the menu to fill with MenuItems
-
trackerPeerSourcesChanged
public void trackerPeerSourcesChanged()- Specified by:
trackerPeerSourcesChanged
in interfaceDownloadManagerTPSListener
-
tableDataSourceChanged
- Specified by:
tableDataSourceChanged
in interfaceTableDataSourceChangedListener
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurred
in interfaceTableLifeCycleListener
-
tableViewInitialized
public void tableViewInitialized() -
tableViewDestroyed
public void tableViewDestroyed() -
addExistingDatasources
private void addExistingDatasources() -
updateSelectedContent
protected void updateSelectedContent() -
deselected
- Specified by:
deselected
in interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChanged
in interfaceTableSelectionListener
-
selected
- Specified by:
selected
in interfaceTableSelectionListener
-
defaultSelected
- Specified by:
defaultSelected
in interfaceTableSelectionListener
-
showInAllTrackers
-
mouseEnter
- Specified by:
mouseEnter
in interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExit
in interfaceTableSelectionListener
-
eventOccurred
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Overrides:
eventOccurred
in classTableViewTab<TrackerPeerSource>
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceUIPluginViewToolBarListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
- Parameters:
list
-
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in interfaceUIToolBarActivationListener
-