Package com.biglybt.ui.swt.views
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.Composite
private org.eclipse.swt.widgets.Composite
private Object
private final BubbleTextBox
private org.eclipse.swt.widgets.Composite
private final Object
private MyTorrentsView
private static int
private MyTorrentsView
private static int
private UISWTView
private MyTorrentsView
private MyTorrentsView
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MyTorrentsView
createTorrentView
(Core _core, String tableID, boolean isSeedingView, TableColumnCore[] columns, org.eclipse.swt.widgets.Composite c) Returns an instance ofMyTorrentsView
Subclasses my override to return a different instance of MyTorrentsViewvoid
dataSourceChanged
(Object newDataSource) boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursvoid
generate
(IndentWriter writer) private UIPluginViewToolBarListener
protected TableColumnCore[]
Returns the set of columns for the completed torrents view Subclasses my override to return a different set of columnsorg.eclipse.swt.widgets.Composite
private MyTorrentsView
protected TableColumnCore[]
Returns the set of columns for the incomplete torrents view Subclasses my override to return a different set of columnsorg.eclipse.swt.widgets.Menu
void
initialize
(org.eclipse.swt.widgets.Composite parent, Object dataSource) void
private void
initializeWithCore
(Core core, org.eclipse.swt.widgets.Composite parent, Object dataSource) private org.eclipse.swt.graphics.Image
obfuscatedImage
(org.eclipse.swt.graphics.Image image) void
refreshToolBarItems
(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setboolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoid
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
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: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
-
getSelectedDownloads
-
generate
- Specified by:
generate
in 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 ofMyTorrentsView
Subclasses my override to return a different instance of MyTorrentsView- Parameters:
_core
-isSeedingView
-columns
-c
-- Returns:
-
getTorrentview
-
getSeedingview
-
dataSourceChanged
-
eventOccurred
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
getSWTView
-