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 java.lang.Object implements UISWTViewCoreEventListener, AEDiagnosticsEvidenceGenerator, UIPluginViewToolBarListener
Wraps a "Incomplete" torrent list and a "Complete" torrent list into one view
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Composite
cCats
private org.eclipse.swt.widgets.Composite
child1
private org.eclipse.swt.widgets.Composite
child2
private java.lang.Object
ds
private BubbleTextBox
filterBox
private org.eclipse.swt.widgets.Composite
form
private java.lang.Object
initialDS
private MyTorrentsView
lastSelectedView
private static int
SASH_WIDTH
private MyTorrentsView
seedingview
private static int
SPLIT_MODE
private UISWTView
swtView
private MyTorrentsView
torrentview
private MyTorrentsView
viewWhenDeactivated
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description MyTorrentsSuperView(BubbleTextBox filterBox, org.eclipse.swt.widgets.Composite cCats, java.lang.Object initialDS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MyTorrentsView
createTorrentView(Core _core, java.lang.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(java.lang.Object newDataSource)
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursvoid
generate(IndentWriter writer)
private UIPluginViewToolBarListener
getActiveToolbarListener()
protected TableColumnCore[]
getCompleteColumns()
Returns the set of columns for the completed torrents view Subclasses my override to return a different set of columnsorg.eclipse.swt.widgets.Composite
getComposite()
private MyTorrentsView
getCurrentView()
java.lang.String
getFullTitle()
protected TableColumnCore[]
getIncompleteColumns()
Returns the set of columns for the incomplete torrents view Subclasses my override to return a different set of columnsorg.eclipse.swt.widgets.Menu
getPrivateMenu()
MyTorrentsView
getSeedingview()
DownloadManager[]
getSelectedDownloads()
UISWTView
getSWTView()
MyTorrentsView
getTorrentview()
void
initialize(org.eclipse.swt.widgets.Composite parent, java.lang.Object dataSource)
void
initializeDone()
private void
initializeWithCore(Core core, org.eclipse.swt.widgets.Composite parent, java.lang.Object dataSource)
private org.eclipse.swt.graphics.Image
obfuscatedImage(org.eclipse.swt.graphics.Image image)
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setboolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
updateLanguage()
void
viewActivated()
void
viewDeactivated()
-
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
-
-
-
-
Field Detail
-
SASH_WIDTH
private static int SASH_WIDTH
-
SPLIT_MODE
private static int SPLIT_MODE
-
torrentview
private MyTorrentsView torrentview
-
seedingview
private MyTorrentsView seedingview
-
form
private org.eclipse.swt.widgets.Composite form
-
lastSelectedView
private MyTorrentsView lastSelectedView
-
child1
private org.eclipse.swt.widgets.Composite child1
-
child2
private org.eclipse.swt.widgets.Composite child2
-
filterBox
private final BubbleTextBox filterBox
-
cCats
private final org.eclipse.swt.widgets.Composite cCats
-
initialDS
private final java.lang.Object initialDS
-
ds
private java.lang.Object ds
-
swtView
private UISWTView swtView
-
viewWhenDeactivated
private MyTorrentsView viewWhenDeactivated
-
-
Constructor Detail
-
MyTorrentsSuperView
public MyTorrentsSuperView(BubbleTextBox filterBox, org.eclipse.swt.widgets.Composite cCats, java.lang.Object initialDS)
-
-
Method Detail
-
getComposite
public org.eclipse.swt.widgets.Composite getComposite()
-
initialize
public void initialize(org.eclipse.swt.widgets.Composite parent, java.lang.Object dataSource)
-
initializeWithCore
private void initializeWithCore(Core core, org.eclipse.swt.widgets.Composite parent, java.lang.Object dataSource)
-
initializeDone
public void initializeDone()
-
updateLanguage
public void updateLanguage()
-
getFullTitle
public java.lang.String getFullTitle()
-
getCurrentView
private MyTorrentsView getCurrentView()
-
getActiveToolbarListener
private UIPluginViewToolBarListener getActiveToolbarListener()
-
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 interfaceUIPluginViewToolBarListener
-
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 interfaceUIToolBarActivationListener
-
getSelectedDownloads
public DownloadManager[] getSelectedDownloads()
-
generate
public void generate(IndentWriter writer)
- 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
protected TableColumnCore[] getIncompleteColumns()
Returns the set of columns for the incomplete torrents view Subclasses my override to return a different set of columns- Returns:
-
getCompleteColumns
protected TableColumnCore[] 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, java.lang.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
public MyTorrentsView getTorrentview()
-
getSeedingview
public MyTorrentsView getSeedingview()
-
dataSourceChanged
public void dataSourceChanged(java.lang.Object newDataSource)
-
eventOccurred
public boolean eventOccurred(UISWTViewEvent event)
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
public UISWTView getSWTView()
-
-