Package com.biglybt.ui.swt.views
Class MySharesView
java.lang.Object
com.biglybt.ui.swt.views.table.impl.TableViewTab<ShareResource>
com.biglybt.ui.swt.views.MySharesView
- All Implemented Interfaces:
AEDiagnosticsEvidenceGenerator
,ShareManagerListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,TableLifeCycleListener
,TableRefreshListener
,TableSelectionListener
,ViewTitleInfo
,ViewTitleInfo2
,ObfuscateImage
,UISWTViewEventListener
,UISWTViewCoreEventListener
,TableViewSWTMenuFillListener
public class MySharesView
extends TableViewTab<ShareResource>
implements ShareManagerListener, TableLifeCycleListener, TableViewSWTMenuFillListener, TableRefreshListener, TableSelectionListener, ViewTitleInfo2, UIPluginViewToolBarListener, UISWTViewCoreEventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TableColumnCore[]
protected static final TorrentAttribute
private TableViewSWT<ShareResource>
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
Fields inherited from interface com.biglybt.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_TEXT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
addCategorySubMenu
(org.eclipse.swt.widgets.Menu menuCategory) void
addThisColumnSubMenu
(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.private void
assignSelectedToCategory
(Category category) private void
createRows
(Core core) private void
defaultSelected
(TableRowCore[] rows) void
defaultSelected
(TableRowCore[] rows, int stateMask) void
deselected
(TableRowCore[] rows) void
void
focusChanged
(TableRowCore focus) private void
getEntries
(List entries, ShareResourceDirContents cont) private List
getTitleInfoProperty
(int propertyID) 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 setprivate void
void
reportCurrentTask
(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
private void
private void
startStopSelectedShares
(boolean do_stop) private void
void
tableLifeCycleEventOccurred
(TableView tv, int eventType, Map<String, Object> data) void
private void
private void
void
titleInfoLinked
(MultipleDocumentInterface mdi, MdiEntry mdiEntry) boolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemMethods inherited from class com.biglybt.ui.swt.views.table.impl.TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, eventOccurred, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initComposite, initialize, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, 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, focusRequested, selectionChanged
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
eventOccurred, informOfDuplicates
Methods inherited from interface com.biglybt.ui.common.viewtitleinfo.ViewTitleInfo2
getLinkedMdiEntry
-
Field Details
-
basicItems
-
category_attribute
-
tv
-
-
Constructor Details
-
MySharesView
public MySharesView()
-
-
Method Details
-
initYourTableView
- Specified by:
initYourTableView
in classTableViewTab<ShareResource>
-
defaultSelected
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurred
in interfaceTableLifeCycleListener
-
tableViewInitialized
private void tableViewInitialized() -
tableViewDestroyed
private void tableViewDestroyed() -
createRows
-
fillMenu
- Specified by:
fillMenu
in interfaceTableViewSWTMenuFillListener
-
reportProgress
public void reportProgress(int percent_complete) - Specified by:
reportProgress
in interfaceShareManagerListener
-
reportCurrentTask
- Specified by:
reportCurrentTask
in interfaceShareManagerListener
-
tableRefresh
public void tableRefresh()- Specified by:
tableRefresh
in interfaceTableRefreshListener
-
addCategorySubMenu
private void addCategorySubMenu(org.eclipse.swt.widgets.Menu menuCategory) -
addCategory
private void addCategory() -
assignSelectedToCategory
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in interfaceUIToolBarActivationListener
-
getSelectedItems
-
addThisColumnSubMenu
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
-
defaultSelected
- Specified by:
defaultSelected
in interfaceTableSelectionListener
-
deselected
- Specified by:
deselected
in interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChanged
in interfaceTableSelectionListener
-
mouseEnter
- Specified by:
mouseEnter
in interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExit
in interfaceTableSelectionListener
-
selected
- Specified by:
selected
in interfaceTableSelectionListener
-
getTitleInfoProperty
- Specified by:
getTitleInfoProperty
in interfaceViewTitleInfo
- Parameters:
propertyID
- TITLE_*- Returns:
- value, or null if you don't want to set it
-
titleInfoLinked
- Specified by:
titleInfoLinked
in interfaceViewTitleInfo2
-