Package com.biglybt.ui.swt.views
Class MyTrackerView
java.lang.Object
com.biglybt.ui.swt.views.table.impl.TableViewTab<TRHostTorrent>
com.biglybt.ui.swt.views.MyTrackerView
- All Implemented Interfaces:
CategoryManagerListener
,TRHostListener
,AEDiagnosticsEvidenceGenerator
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,TableLifeCycleListener
,TableRefreshListener
,TableSelectionListener
,ObfuscateImage
,UISWTViewEventListener
,UISWTViewCoreEventListener
,TableViewSWTMenuFillListener
public class MyTrackerView
extends TableViewTab<TRHostTorrent>
implements TRHostListener, CategoryManagerListener, TableLifeCycleListener, TableSelectionListener, TableViewSWTMenuFillListener, TableRefreshListener, UIPluginViewToolBarListener, UISWTViewCoreEventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static TableColumnCore[]
protected static final TorrentAttribute
private static TableViewSWT.ColorRequester
private org.eclipse.swt.widgets.Menu
private TableViewSWT
<TRHostTorrent> 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
private void
void
addThisColumnSubMenu
(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.private void
assignSelectedToCategory
(Category category) private void
assignSelectedToCategory
(Core core, Category category) void
categoryAdded
(Category category) A category has been added to the CategoryManagervoid
categoryChanged
(Category category) void
categoryRemoved
(Category category) A category has been removed from the CategoryManagervoid
defaultSelected
(TableRowCore[] rows, int stateMask) void
deselected
(TableRowCore[] rows) void
void
focusChanged
(TableRowCore focus) boolean
handleExternalRequest
(InetSocketAddress client, String user, String url, URL absolute_url, String header, InputStream is, OutputStream os, AsyncController async) 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 void
void
selected
(TableRowCore[] rows) private void
private void
void
tableLifeCycleEventOccurred
(TableView tv, int eventType, Map<String, Object> data) void
boolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoid
torrentAdded
(TRHostTorrent host_torrent) void
void
torrentRemoved
(TRHostTorrent host_torrent) Methods inherited from class com.biglybt.ui.swt.views.table.impl.TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, eventOccurred, 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.pif.ui.UIPluginViewToolBarListener
isActive
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
builderNotRequired, eventOccurred, informOfDuplicates
-
Field Details
-
category_attribute
-
basicItems
-
color_requester
-
tv
-
-
Constructor Details
-
MyTrackerView
public MyTrackerView()
-
-
Method Details
-
initYourTableView
- Specified by:
initYourTableView
in classTableViewTab<TRHostTorrent>
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurred
in interfaceTableLifeCycleListener
-
defaultSelected
- Specified by:
defaultSelected
in interfaceTableSelectionListener
-
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
-
torrentAdded
- Specified by:
torrentAdded
in interfaceTRHostListener
-
torrentChanged
- Specified by:
torrentChanged
in interfaceTRHostListener
-
torrentRemoved
- Specified by:
torrentRemoved
in interfaceTRHostListener
-
handleExternalRequest
public boolean handleExternalRequest(InetSocketAddress client, String user, String url, URL absolute_url, String header, InputStream is, OutputStream os, AsyncController async) throws IOException - Specified by:
handleExternalRequest
in interfaceTRHostListener
- Throws:
IOException
-
tableRefresh
public void tableRefresh()- Specified by:
tableRefresh
in interfaceTableRefreshListener
-
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
-
stopSelectedTorrents
private void stopSelectedTorrents() -
startSelectedTorrents
private void startSelectedTorrents() -
removeSelectedTorrents
private void removeSelectedTorrents() -
addCategorySubMenu
private void addCategorySubMenu() -
categoryAdded
Description copied from interface:CategoryManagerListener
A category has been added to the CategoryManager- Specified by:
categoryAdded
in interfaceCategoryManagerListener
- Parameters:
category
- the category that was added
-
categoryRemoved
Description copied from interface:CategoryManagerListener
A category has been removed from the CategoryManager- Specified by:
categoryRemoved
in interfaceCategoryManagerListener
- Parameters:
category
- Category that was removed
-
categoryChanged
- Specified by:
categoryChanged
in interfaceCategoryManagerListener
-
addCategory
private void addCategory() -
assignSelectedToCategory
-
assignSelectedToCategory
-
deselected
- Specified by:
deselected
in interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChanged
in interfaceTableSelectionListener
-
selected
- Specified by:
selected
in interfaceTableSelectionListener
-
mouseEnter
- Specified by:
mouseEnter
in interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExit
in interfaceTableSelectionListener
-