org.gudy.azureus2.ui.swt.views
Class MySharesView

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab<ShareResource>
      extended by 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

Field Summary
protected static TorrentAttribute category_attribute
           
 
Fields inherited from interface com.aelitis.azureus.ui.common.table.TableLifeCycleListener
EVENT_DESTROYED, EVENT_INITIALIZED
 
Fields inherited from interface com.aelitis.azureus.ui.common.viewtitleinfo.ViewTitleInfo
TITLE_ACTIVE_STATE, TITLE_EXPORTABLE_DATASOURCE, TITLE_IMAGE_TOOLTIP, TITLE_IMAGEID, TITLE_INDICATOR_COLOR, TITLE_INDICATOR_TEXT, TITLE_INDICATOR_TEXT_TOOLTIP, TITLE_LOGID, TITLE_TEXT
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
 
Constructor Summary
MySharesView()
           
 
Method Summary
 void addThisColumnSubMenu(java.lang.String columnName, org.eclipse.swt.widgets.Menu menuThisColumn)
          Create a SubMenu for column specific tasks.
 void 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)
           
 java.lang.Object getTitleInfoProperty(int propertyID)
           
 TableViewSWT 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 set
 void reportCurrentTask(java.lang.String task_description)
           
 void reportProgress(int percent_complete)
           
 void resourceAdded(ShareResource resource)
           
 void resourceDeleted(ShareResource resource)
           
 void resourceModified(ShareResource old_resource, ShareResource new_resource)
           
 void selected(TableRowCore[] row)
           
protected  boolean share(java.lang.Object eventData)
           
 void tableRefresh()
           
 void tableViewDestroyed()
           
 void tableViewInitialized()
           
 void titleInfoLinked(MultipleDocumentInterface mdi, MdiEntry mdiEntry)
           
 boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
          XXX Should have been UIToolBarItem
 
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
 

Field Detail

category_attribute

protected static final TorrentAttribute category_attribute
Constructor Detail

MySharesView

public MySharesView()
Method Detail

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 on
menuThisColumn - 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