Package com.biglybt.ui.swt.views
Class TorrentInfoView
- java.lang.Object
-
- com.biglybt.ui.swt.views.TorrentInfoView
-
- All Implemented Interfaces:
UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,UISWTViewEventListener
,UISWTViewCoreEventListener
,java.util.EventListener
,org.eclipse.swt.dnd.DragSourceListener
,org.eclipse.swt.internal.SWTEventListener
public class TorrentInfoView extends java.lang.Object implements UISWTViewCoreEventListener, UIPluginViewToolBarListener, org.eclipse.swt.dnd.DragSourceListener
-
-
Field Summary
Fields Modifier and Type Field Description private FakeTableCell[]
cells
private DownloadManager
download_manager
private org.eclipse.swt.graphics.Font
headerFont
static java.lang.String
MSGID_PREFIX
private org.eclipse.swt.widgets.Composite
outer_panel
private org.eclipse.swt.widgets.Composite
parent
private UISWTView
swtView
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description TorrentInfoView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
dataSourceChanged(java.lang.Object newDataSource)
private void
delete()
void
dragFinished(org.eclipse.swt.dnd.DragSourceEvent event)
void
dragSetData(org.eclipse.swt.dnd.DragSourceEvent event)
void
dragStart(org.eclipse.swt.dnd.DragSourceEvent event)
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursprivate org.eclipse.swt.widgets.Composite
getComposite()
private java.lang.String
getFullTitle()
private void
initialize(org.eclipse.swt.widgets.Composite composite)
private void
refresh()
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 UIToolBarItem-
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
-
MSGID_PREFIX
public static final java.lang.String MSGID_PREFIX
- See Also:
- Constant Field Values
-
download_manager
private DownloadManager download_manager
-
outer_panel
private org.eclipse.swt.widgets.Composite outer_panel
-
headerFont
private org.eclipse.swt.graphics.Font headerFont
-
cells
private FakeTableCell[] cells
-
parent
private org.eclipse.swt.widgets.Composite parent
-
swtView
private UISWTView swtView
-
-
Method Detail
-
initialize
private void initialize(org.eclipse.swt.widgets.Composite composite)
-
refresh
private void refresh()
-
getComposite
private org.eclipse.swt.widgets.Composite getComposite()
-
getFullTitle
private java.lang.String getFullTitle()
-
delete
private void delete()
-
dataSourceChanged
private 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
-
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
-
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
-
dragStart
public void dragStart(org.eclipse.swt.dnd.DragSourceEvent event)
- Specified by:
dragStart
in interfaceorg.eclipse.swt.dnd.DragSourceListener
-
dragSetData
public void dragSetData(org.eclipse.swt.dnd.DragSourceEvent event)
- Specified by:
dragSetData
in interfaceorg.eclipse.swt.dnd.DragSourceListener
-
dragFinished
public void dragFinished(org.eclipse.swt.dnd.DragSourceEvent event)
- Specified by:
dragFinished
in interfaceorg.eclipse.swt.dnd.DragSourceListener
-
-