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 TorrentAttributeprivate TableViewSWT<ShareResource> Fields inherited from interface TableLifeCycleListener
EVENT_TABLELIFECYCLE_DESTROYED, EVENT_TABLELIFECYCLE_INITIALIZED, EVENT_TABLELIFECYCLE_SHUTDOWNFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICKFields inherited from interface ViewTitleInfo
TITLE_ACTIVE_STATE, TITLE_EXPORTABLE_DATASOURCE, TITLE_IMAGE_TOOLTIP, TITLE_IMAGEID, TITLE_INDICATOR_COLOR, TITLE_INDICATOR_TEXT, TITLE_INDICATOR_TEXT_TOOLTIP, TITLE_TEXT, TITLE_TEXT_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidaddCategorySubMenu(org.eclipse.swt.widgets.Menu menuCategory) voidaddThisColumnSubMenu(String columnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.private voidassignSelectedToCategory(Category category) private voidcreateRows(Core core) private voiddefaultSelected(TableRowCore[] rows) voiddefaultSelected(TableRowCore[] rows, int stateMask) voiddeselected(TableRowCore[] rows) voidvoidfocusChanged(TableRowCore focus) private voidgetEntries(List entries, ShareResourceDirContents cont) private ListgetTitleInfoProperty(int propertyID) voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate voidvoidreportCurrentTask(String task_description) voidreportProgress(int percent_complete) voidresourceAdded(ShareResource resource) voidresourceDeleted(ShareResource resource) voidresourceModified(ShareResource old_resource, ShareResource new_resource) voidselected(TableRowCore[] row) protected booleanprivate voidprivate voidstartStopSelectedShares(boolean do_stop) private voidvoidtableLifeCycleEventOccurred(TableView tv, int eventType, Map<String, Object> data) voidprivate voidprivate voidvoidtitleInfoLinked(MultipleDocumentInterface mdi, MdiEntry mdiEntry) booleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemMethods inherited from class TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, eventOccurred, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initComposite, initialize, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, tableViewTabInitComplete, updateLanguage, viewActivatedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableSelectionListener
defaultSelected, focusRequested, selectionChangedMethods inherited from interface UIPluginViewToolBarListener
isActiveMethods inherited from interface UISWTViewEventListener
builderNotRequired, eventOccurred, informOfDuplicatesMethods inherited from interface ViewTitleInfo2
getLinkedMdiEntry
-
Field Details
-
basicItems
-
category_attribute
-
tv
-
-
Constructor Details
-
MySharesView
public MySharesView()
-
-
Method Details
-
initYourTableView
- Specified by:
initYourTableViewin classTableViewTab<ShareResource>
-
defaultSelected
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurredin interfaceTableLifeCycleListener
-
tableViewInitialized
private void tableViewInitialized() -
tableViewDestroyed
private void tableViewDestroyed() -
createRows
-
fillMenu
- Specified by:
fillMenuin interfaceTableViewSWTMenuFillListener
-
reportProgress
public void reportProgress(int percent_complete) - Specified by:
reportProgressin interfaceShareManagerListener
-
reportCurrentTask
- Specified by:
reportCurrentTaskin interfaceShareManagerListener
-
tableRefresh
public void tableRefresh()- Specified by:
tableRefreshin interfaceTableRefreshListener
-
addCategorySubMenu
private void addCategorySubMenu(org.eclipse.swt.widgets.Menu menuCategory) -
addCategory
private void addCategory() -
assignSelectedToCategory
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-
getSelectedItems
-
addThisColumnSubMenu
Description copied from interface:TableViewSWTMenuFillListenerCreate 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:
addThisColumnSubMenuin interfaceTableViewSWTMenuFillListener- Parameters:
columnName- The name of the column the user clicked onmenuThisColumn- the menu to fill with MenuItems
-
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
getTitleInfoProperty
- Specified by:
getTitleInfoPropertyin interfaceViewTitleInfo- Parameters:
propertyID- TITLE_*- Returns:
- value, or null if you don't want to set it
-
titleInfoLinked
- Specified by:
titleInfoLinkedin interfaceViewTitleInfo2
-