org.gudy.azureus2.ui.swt.views
Class MySharesView
java.lang.Object
org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab<ShareResource>
org.gudy.azureus2.ui.swt.views.MySharesView
- All Implemented Interfaces:
- TableLifeCycleListener, TableRefreshListener, TableSelectionListener, ViewTitleInfo, ViewTitleInfo2, AEDiagnosticsEvidenceGenerator, ShareManagerListener, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, ObfusticateImage, UISWTViewEventListener, UISWTViewCoreEventListener, TableViewSWTMenuFillListener
public class MySharesView
- extends TableViewTab<ShareResource>
- implements ShareManagerListener, TableLifeCycleListener, TableViewSWTMenuFillListener, TableRefreshListener, TableSelectionListener, ViewTitleInfo2, UIPluginViewToolBarListener
- Author:
- parg, TuxPaper
2004/Apr/20: Remove need for tableItemToObject
2004/Apr/21: extends TableView instead of IAbstractView
Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab |
dataSourceChanged, delete, enableFilterCheck, eventOccurred, generate, getComposite, getFullTitle, getPrivateMenu, getPropertiesPrefix, getSWTView, getTableView, initComposite, initialize, obfusticatedImage, 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
MySharesView
public MySharesView()
initYourTableView
public TableViewSWT initYourTableView()
- Specified by:
initYourTableView
in class TableViewTab<ShareResource>
tableViewInitialized
public void tableViewInitialized()
- Specified by:
tableViewInitialized
in interface TableLifeCycleListener
share
protected boolean share(java.lang.Object eventData)
tableViewDestroyed
public void tableViewDestroyed()
- Specified by:
tableViewDestroyed
in interface TableLifeCycleListener
fillMenu
public void fillMenu(java.lang.String sColumnName,
org.eclipse.swt.widgets.Menu menu)
- Specified by:
fillMenu
in interface TableViewSWTMenuFillListener
resourceAdded
public void resourceAdded(ShareResource resource)
- Specified by:
resourceAdded
in interface ShareManagerListener
resourceModified
public void resourceModified(ShareResource old_resource,
ShareResource new_resource)
- Specified by:
resourceModified
in interface ShareManagerListener
resourceDeleted
public void resourceDeleted(ShareResource resource)
- Specified by:
resourceDeleted
in interface ShareManagerListener
reportProgress
public void reportProgress(int percent_complete)
- Specified by:
reportProgress
in interface ShareManagerListener
reportCurrentTask
public void reportCurrentTask(java.lang.String task_description)
- Specified by:
reportCurrentTask
in interface ShareManagerListener
tableRefresh
public void tableRefresh()
- Specified by:
tableRefresh
in interface TableRefreshListener
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 interface UIPluginViewToolBarListener
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 interface UIToolBarActivationListener
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 interface TableViewSWTMenuFillListener
- Parameters:
columnName
- The name of the column the user clicked onmenuThisColumn
- the menu to fill with MenuItems
defaultSelected
public void defaultSelected(TableRowCore[] rows,
int stateMask)
- Specified by:
defaultSelected
in interface TableSelectionListener
deselected
public void deselected(TableRowCore[] rows)
- Specified by:
deselected
in interface TableSelectionListener
focusChanged
public void focusChanged(TableRowCore focus)
- Specified by:
focusChanged
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
selected
public void selected(TableRowCore[] row)
- Specified by:
selected
in interface TableSelectionListener
getTitleInfoProperty
public java.lang.Object getTitleInfoProperty(int propertyID)
- Specified by:
getTitleInfoProperty
in interface ViewTitleInfo
- Parameters:
propertyID
- TITLE_*
- Returns:
- value, or null if you don't want to set it
titleInfoLinked
public void titleInfoLinked(MultipleDocumentInterface mdi,
MdiEntry mdiEntry)
- Specified by:
titleInfoLinked
in interface ViewTitleInfo2