Class MyTorrentsSuperView
java.lang.Object
com.biglybt.ui.swt.views.MyTorrentsSuperView
- All Implemented Interfaces:
AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener
public class MyTorrentsSuperView
extends Object
implements UISWTViewCoreEventListener, AEDiagnosticsEvidenceGenerator, UIPluginViewToolBarListener
Wraps a "Incomplete" torrent list and a "Complete" torrent list into
one view
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.eclipse.swt.widgets.Compositeprivate org.eclipse.swt.widgets.Compositeprivate Objectprivate final BubbleTextBoxprivate org.eclipse.swt.widgets.Compositeprivate final Objectprivate MyTorrentsViewprivate static intprivate MyTorrentsViewprivate static intprivate UISWTViewprivate MyTorrentsViewprivate MyTorrentsViewFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MyTorrentsViewcreateTorrentView(Core _core, String tableID, boolean isSeedingView, TableColumnCore[] columns, org.eclipse.swt.widgets.Composite c) Returns an instance ofMyTorrentsViewSubclasses my override to return a different instance of MyTorrentsViewvoiddataSourceChanged(Object newDataSource) booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursvoidgenerate(IndentWriter writer) private UIPluginViewToolBarListenerprotected TableColumnCore[]Returns the set of columns for the completed torrents view Subclasses my override to return a different set of columnsorg.eclipse.swt.widgets.Compositeprivate MyTorrentsViewprotected TableColumnCore[]Returns the set of columns for the incomplete torrents view Subclasses my override to return a different set of columnsorg.eclipse.swt.widgets.Menuvoidinitialize(org.eclipse.swt.widgets.Composite parent, Object dataSource) voidprivate voidinitializeWithCore(Core core, org.eclipse.swt.widgets.Composite parent, Object dataSource) private org.eclipse.swt.graphics.ImageobfuscatedImage(org.eclipse.swt.graphics.Image image) voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setbooleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidvoidvoidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface UIPluginViewToolBarListener
isActiveMethods inherited from interface UISWTViewEventListener
builderNotRequired, informOfDuplicates
-
Field Details
-
SASH_WIDTH
private static int SASH_WIDTH -
SPLIT_MODE
private static int SPLIT_MODE -
torrentview
-
seedingview
-
form
private org.eclipse.swt.widgets.Composite form -
lastSelectedView
-
child1
private org.eclipse.swt.widgets.Composite child1 -
child2
private org.eclipse.swt.widgets.Composite child2 -
filterBox
-
initialDS
-
ds
-
swtView
-
viewWhenDeactivated
-
-
Constructor Details
-
MyTorrentsSuperView
-
-
Method Details
-
getComposite
public org.eclipse.swt.widgets.Composite getComposite() -
initialize
-
initializeWithCore
-
initializeDone
public void initializeDone() -
updateLanguage
public void updateLanguage() -
getFullTitle
-
getCurrentView
-
getActiveToolbarListener
-
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
-
getSelectedDownloads
-
generate
- Specified by:
generatein interfaceAEDiagnosticsEvidenceGenerator
-
obfuscatedImage
private org.eclipse.swt.graphics.Image obfuscatedImage(org.eclipse.swt.graphics.Image image) -
getPrivateMenu
public org.eclipse.swt.widgets.Menu getPrivateMenu() -
viewActivated
public void viewActivated() -
viewDeactivated
public void viewDeactivated() -
getIncompleteColumns
Returns the set of columns for the incomplete torrents view Subclasses my override to return a different set of columns- Returns:
-
getCompleteColumns
Returns the set of columns for the completed torrents view Subclasses my override to return a different set of columns- Returns:
-
createTorrentView
protected MyTorrentsView createTorrentView(Core _core, String tableID, boolean isSeedingView, TableColumnCore[] columns, org.eclipse.swt.widgets.Composite c) Returns an instance ofMyTorrentsViewSubclasses my override to return a different instance of MyTorrentsView- Parameters:
_core-isSeedingView-columns-c-- Returns:
-
getTorrentview
-
getSeedingview
-
dataSourceChanged
-
eventOccurred
Description copied from interface:UISWTViewEventListenerTriggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurredin interfaceUISWTViewEventListener- Parameters:
event- event that occurred- Returns:
- meaning dependent upon event type
-
getSWTView
-