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
Fields Modifier and Type Field Description private static TableColumnCore[]
basicItems
protected static TorrentAttribute
category_attribute
private static TableViewSWT.ColorRequester
color_requester
private org.eclipse.swt.widgets.Menu
menuCategory
private TableViewSWT<TRHostTorrent>
tv
-
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 Constructor Description MyTrackerView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addCategory()
private void
addCategorySubMenu()
void
addThisColumnSubMenu(java.lang.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
fillMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menu)
void
focusChanged(TableRowCore focus)
boolean
handleExternalRequest(java.net.InetSocketAddress client, java.lang.String user, java.lang.String url, java.net.URL absolute_url, java.lang.String header, java.io.InputStream is, java.io.OutputStream os, AsyncController async)
TableViewSWT<TRHostTorrent>
initYourTableView()
void
mouseEnter(TableRowCore row)
void
mouseExit(TableRowCore row)
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setprivate void
removeSelectedTorrents()
void
selected(TableRowCore[] rows)
private void
startSelectedTorrents()
private void
stopSelectedTorrents()
void
tableLifeCycleEventOccurred(TableView tv, int eventType, java.util.Map<java.lang.String,java.lang.Object> data)
void
tableRefresh()
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
torrentAdded(TRHostTorrent host_torrent)
void
torrentChanged(TRHostTorrent t)
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, getPropertiesPrefix, getSWTView, getTableView, initComposite, initialize, obfuscatedImage, parentDataSourceChanged, refresh, 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, selectionChanged
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
eventOccurred
-
-
-
-
Field Detail
-
category_attribute
protected static final TorrentAttribute category_attribute
-
basicItems
private static TableColumnCore[] basicItems
-
color_requester
private static TableViewSWT.ColorRequester color_requester
-
menuCategory
private org.eclipse.swt.widgets.Menu menuCategory
-
tv
private TableViewSWT<TRHostTorrent> tv
-
-
Method Detail
-
initYourTableView
public TableViewSWT<TRHostTorrent> initYourTableView()
- Specified by:
initYourTableView
in classTableViewTab<TRHostTorrent>
-
tableLifeCycleEventOccurred
public void tableLifeCycleEventOccurred(TableView tv, int eventType, java.util.Map<java.lang.String,java.lang.Object> data)
- Specified by:
tableLifeCycleEventOccurred
in interfaceTableLifeCycleListener
-
defaultSelected
public void defaultSelected(TableRowCore[] rows, int stateMask)
- Specified by:
defaultSelected
in interfaceTableSelectionListener
-
fillMenu
public void fillMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menu)
- Specified by:
fillMenu
in interfaceTableViewSWTMenuFillListener
-
addThisColumnSubMenu
public void addThisColumnSubMenu(java.lang.String columnName, org.eclipse.swt.widgets.Menu menuThisColumn)
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
public void torrentAdded(TRHostTorrent host_torrent)
- Specified by:
torrentAdded
in interfaceTRHostListener
-
torrentChanged
public void torrentChanged(TRHostTorrent t)
- Specified by:
torrentChanged
in interfaceTRHostListener
-
torrentRemoved
public void torrentRemoved(TRHostTorrent host_torrent)
- Specified by:
torrentRemoved
in interfaceTRHostListener
-
handleExternalRequest
public boolean handleExternalRequest(java.net.InetSocketAddress client, java.lang.String user, java.lang.String url, java.net.URL absolute_url, java.lang.String header, java.io.InputStream is, java.io.OutputStream os, AsyncController async) throws java.io.IOException
- Specified by:
handleExternalRequest
in interfaceTRHostListener
- Throws:
java.io.IOException
-
tableRefresh
public void tableRefresh()
- Specified by:
tableRefresh
in interfaceTableRefreshListener
-
refreshToolBarItems
public void refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
-
toolBarItemActivated
public boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
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
public void categoryAdded(Category category)
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
public void categoryRemoved(Category category)
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
public void categoryChanged(Category category)
- Specified by:
categoryChanged
in interfaceCategoryManagerListener
-
addCategory
private void addCategory()
-
assignSelectedToCategory
private void assignSelectedToCategory(Category category)
-
deselected
public void deselected(TableRowCore[] rows)
- Specified by:
deselected
in interfaceTableSelectionListener
-
focusChanged
public void focusChanged(TableRowCore focus)
- Specified by:
focusChanged
in interfaceTableSelectionListener
-
selected
public void selected(TableRowCore[] rows)
- Specified by:
selected
in interfaceTableSelectionListener
-
mouseEnter
public void mouseEnter(TableRowCore row)
- Specified by:
mouseEnter
in interfaceTableSelectionListener
-
mouseExit
public void mouseExit(TableRowCore row)
- Specified by:
mouseExit
in interfaceTableSelectionListener
-
-