Package com.biglybt.ui.swt.views
Class DownloadActivityView
java.lang.Object
com.biglybt.ui.swt.views.DownloadActivityView
- All Implemented Interfaces:
ParameterListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,ViewTitleInfo
,ViewTitleInfo2
,MdiSWTMenuHackListener
,UISWTViewEventListener
,UISWTViewCoreEventListener
public class DownloadActivityView
extends Object
implements UISWTViewCoreEventListener, UIPluginViewToolBarListener, MdiSWTMenuHackListener, ParameterListener, ViewTitleInfo2
aka "Speed" sub view
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private MultiPlotGraphic
private static final int
private static org.eclipse.swt.graphics.Color[]
private boolean
private List
<DownloadManager> private MultiPlotGraphic
private static org.eclipse.swt.graphics.Color[]
static final String
private org.eclipse.swt.widgets.Composite
private org.eclipse.swt.widgets.Composite
private boolean
private UISWTView
private boolean
private Object
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
Fields inherited from interface com.biglybt.ui.common.viewtitleinfo.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 void
create()
void
dataSourceChanged
(Object newDataSource) private void
delete()
boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate void
org.eclipse.swt.widgets.Composite
private String
getTitleInfoProperty
(int propertyID) void
initialize
(org.eclipse.swt.widgets.Composite parent) void
menuWillBeShown
(MdiEntry entry, org.eclipse.swt.widgets.Menu menu) void
parameterChanged
(String parameterName) Called, when a parameter has changed.private void
rebuild()
private void
refresh
(boolean force) void
refreshToolBarItems
(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate void
setSwtView
(UISWTView swtView) private void
setVisible
(boolean vis) void
titleInfoLinked
(MultipleDocumentInterface mdi, MdiEntry mdiEntry) boolean
toolBarItemActivated
(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemMethods 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
builderNotRequired, informOfDuplicates
Methods inherited from interface com.biglybt.ui.common.viewtitleinfo.ViewTitleInfo2
getLinkedMdiEntry
-
Field Details
-
MSGID_PREFIX
- See Also:
-
mpg_colors
private static org.eclipse.swt.graphics.Color[] mpg_colors -
ETA_AVERAGE_TICKS
private static final int ETA_AVERAGE_TICKS- See Also:
-
eta_colors
private static org.eclipse.swt.graphics.Color[] eta_colors -
swtView
-
legend_at_bottom
private boolean legend_at_bottom -
panel
private org.eclipse.swt.widgets.Composite panel -
viewBuilt
private boolean viewBuilt -
mpg
-
eta
-
managers
-
parent
private org.eclipse.swt.widgets.Composite parent -
show_time
private boolean show_time -
comp_visible
private boolean comp_visible -
visible_pending_ds
-
-
Constructor Details
-
DownloadActivityView
public DownloadActivityView()
-
-
Method Details
-
getFullTitle
-
getTitleInfoProperty
- Specified by:
getTitleInfoProperty
in interfaceViewTitleInfo
- Parameters:
propertyID
- TITLE_*- Returns:
- value, or null if you don't want to set it
-
initialize
public void initialize(org.eclipse.swt.widgets.Composite parent) -
fillPanel
private void fillPanel() -
refresh
private void refresh(boolean force) -
getComposite
public org.eclipse.swt.widgets.Composite getComposite() -
setVisible
private void setVisible(boolean vis) -
dataSourceChanged
-
rebuild
private void rebuild() -
parameterChanged
Description copied from interface:ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChanged
in interfaceParameterListener
- Parameters:
parameterName
- the name of the parameter that has changed
-
create
private void create() -
setSwtView
-
delete
private void delete() -
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
-
titleInfoLinked
- Specified by:
titleInfoLinked
in interfaceViewTitleInfo2
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in interfaceUIToolBarActivationListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
- Parameters:
list
-
-