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 TorrentAttributeprivate static TableViewSWT.ColorRequesterprivate org.eclipse.swt.widgets.Menuprivate TableViewSWT<TRHostTorrent> 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 voidprivate voidvoidaddThisColumnSubMenu(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.private voidassignSelectedToCategory(Category category) private voidassignSelectedToCategory(Core core, Category category) voidcategoryAdded(Category category) A category has been added to the CategoryManagervoidcategoryChanged(Category category) voidcategoryRemoved(Category category) A category has been removed from the CategoryManagervoiddefaultSelected(TableRowCore[] rows, int stateMask) voiddeselected(TableRowCore[] rows) voidvoidfocusChanged(TableRowCore focus) booleanhandleExternalRequest(InetSocketAddress client, String user, String url, URL absolute_url, String header, InputStream is, OutputStream os, AsyncController async) voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate voidvoidselected(TableRowCore[] rows) private voidprivate voidvoidtableLifeCycleEventOccurred(TableView tv, int eventType, Map<String, Object> data) voidbooleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidtorrentAdded(TRHostTorrent host_torrent) voidvoidtorrentRemoved(TRHostTorrent host_torrent) Methods inherited from class TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, eventOccurred, 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 UIPluginViewToolBarListener
isActiveMethods inherited from interface UISWTViewEventListener
builderNotRequired, eventOccurred, informOfDuplicates
-
Field Details
-
category_attribute
-
basicItems
-
color_requester
-
tv
-
-
Constructor Details
-
MyTrackerView
public MyTrackerView()
-
-
Method Details
-
initYourTableView
- Specified by:
initYourTableViewin classTableViewTab<TRHostTorrent>
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurredin interfaceTableLifeCycleListener
-
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
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
-
torrentAdded
- Specified by:
torrentAddedin interfaceTRHostListener
-
torrentChanged
- Specified by:
torrentChangedin interfaceTRHostListener
-
torrentRemoved
- Specified by:
torrentRemovedin 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:
handleExternalRequestin interfaceTRHostListener- Throws:
IOException
-
tableRefresh
public void tableRefresh()- Specified by:
tableRefreshin interfaceTableRefreshListener
-
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
-
stopSelectedTorrents
private void stopSelectedTorrents() -
startSelectedTorrents
private void startSelectedTorrents() -
removeSelectedTorrents
private void removeSelectedTorrents() -
addCategorySubMenu
private void addCategorySubMenu() -
categoryAdded
Description copied from interface:CategoryManagerListenerA category has been added to the CategoryManager- Specified by:
categoryAddedin interfaceCategoryManagerListener- Parameters:
category- the category that was added
-
categoryRemoved
Description copied from interface:CategoryManagerListenerA category has been removed from the CategoryManager- Specified by:
categoryRemovedin interfaceCategoryManagerListener- Parameters:
category- Category that was removed
-
categoryChanged
- Specified by:
categoryChangedin interfaceCategoryManagerListener
-
addCategory
private void addCategory() -
assignSelectedToCategory
-
assignSelectedToCategory
-
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-