org.gudy.azureus2.ui.swt.views
Class MyTrackerView
java.lang.Object
org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab<TRHostTorrent>
org.gudy.azureus2.ui.swt.views.MyTrackerView
- All Implemented Interfaces:
- TableLifeCycleListener, TableRefreshListener, TableSelectionListener, CategoryManagerListener, TRHostListener, AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener, TableViewSWTMenuFillListener
public class MyTrackerView
- extends TableViewTab<TRHostTorrent>
- implements TRHostListener, CategoryManagerListener, TableLifeCycleListener, TableSelectionListener, TableViewSWTMenuFillListener, TableRefreshListener
- Author:
- parg, TuxPaper
2004/Apr/20: Remove need for tableItemToObject
2004/Apr/21: extends TableView instead of IAbstractView
|
Method Summary |
void |
addThisColumnSubMenu(String columnName,
org.eclipse.swt.widgets.Menu menuThisColumn)
Create a SubMenu for column specific tasks. |
void |
categoryAdded(Category category)
A category has been added to the CategoryManager |
void |
categoryChanged(Category category)
|
void |
categoryRemoved(Category category)
A category has been removed from the CategoryManager |
void |
defaultSelected(TableRowCore[] rows,
int stateMask)
|
void |
deselected(TableRowCore[] rows)
|
void |
fillMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menu)
|
void |
focusChanged(TableRowCore focus)
|
boolean |
handleExternalRequest(InetSocketAddress client,
String user,
String url,
URL absolute_url,
String header,
InputStream is,
OutputStream os,
AsyncController async)
|
TableViewSWT<TRHostTorrent> |
initYourTableView()
|
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 set |
void |
selected(TableRowCore[] rows)
|
void |
tableRefresh()
|
void |
tableViewDestroyed()
|
void |
tableViewInitialized()
|
boolean |
toolBarItemActivated(ToolBarItem item,
long activationType,
Object datasource)
|
void |
torrentAdded(TRHostTorrent host_torrent)
|
void |
torrentChanged(TRHostTorrent t)
|
void |
torrentRemoved(TRHostTorrent host_torrent)
|
| Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab |
dataSourceChanged, eventOccurred, generate, getComposite, getFullTitle, getPrivateMenu, getPropertiesPrefix, getSWTView, getTableView, initComposite, initialize, refresh, tableViewTabInitComplete, updateLanguage, viewActivated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
category_attribute
protected static final TorrentAttribute category_attribute
MyTrackerView
public MyTrackerView()
initYourTableView
public TableViewSWT<TRHostTorrent> initYourTableView()
- Specified by:
initYourTableView in class TableViewTab<TRHostTorrent>
tableViewInitialized
public void tableViewInitialized()
- Specified by:
tableViewInitialized in interface TableLifeCycleListener
tableViewDestroyed
public void tableViewDestroyed()
- Specified by:
tableViewDestroyed in interface TableLifeCycleListener
defaultSelected
public void defaultSelected(TableRowCore[] rows,
int stateMask)
- Specified by:
defaultSelected in interface TableSelectionListener
fillMenu
public void fillMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menu)
- Specified by:
fillMenu in interface TableViewSWTMenuFillListener
addThisColumnSubMenu
public void addThisColumnSubMenu(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 interface TableViewSWTMenuFillListener
- 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 interface TRHostListener
torrentChanged
public void torrentChanged(TRHostTorrent t)
- Specified by:
torrentChanged in interface TRHostListener
torrentRemoved
public void torrentRemoved(TRHostTorrent host_torrent)
- Specified by:
torrentRemoved in interface TRHostListener
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 interface TRHostListener
- Throws:
IOException
tableRefresh
public void tableRefresh()
- Specified by:
tableRefresh in interface TableRefreshListener
refreshToolBarItems
public void refreshToolBarItems(Map<String,Long> list)
- Description copied from interface:
UIPluginViewToolBarListener
- Fill in list with the toolbar ids and states you wish to set
- Specified by:
refreshToolBarItems in interface UIPluginViewToolBarListener- Overrides:
refreshToolBarItems in class TableViewTab<TRHostTorrent>
toolBarItemActivated
public boolean toolBarItemActivated(ToolBarItem item,
long activationType,
Object datasource)
- Specified by:
toolBarItemActivated in interface UIToolBarActivationListener- Overrides:
toolBarItemActivated in class TableViewTab<TRHostTorrent>
categoryAdded
public void categoryAdded(Category category)
- Description copied from interface:
CategoryManagerListener
- A category has been added to the CategoryManager
- Specified by:
categoryAdded in interface CategoryManagerListener
- 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 interface CategoryManagerListener
- Parameters:
category - Category that was removed
categoryChanged
public void categoryChanged(Category category)
- Specified by:
categoryChanged in interface CategoryManagerListener
deselected
public void deselected(TableRowCore[] rows)
- Specified by:
deselected in interface TableSelectionListener
focusChanged
public void focusChanged(TableRowCore focus)
- Specified by:
focusChanged in interface TableSelectionListener
selected
public void selected(TableRowCore[] rows)
- Specified by:
selected in interface TableSelectionListener
mouseEnter
public void mouseEnter(TableRowCore row)
- Specified by:
mouseEnter in interface TableSelectionListener
mouseExit
public void mouseExit(TableRowCore row)
- Specified by:
mouseExit in interface TableSelectionListener