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 booleanprivate MultiPlotGraphicprivate static final intprivate static org.eclipse.swt.graphics.Color[]private booleanprivate List<DownloadManager> private MultiPlotGraphicprivate static org.eclipse.swt.graphics.Color[]static final Stringprivate org.eclipse.swt.widgets.Compositeprivate org.eclipse.swt.widgets.Compositeprivate booleanprivate UISWTViewprivate booleanprivate ObjectFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICKFields inherited from interface 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 voidcreate()voiddataSourceChanged(Object newDataSource) private voiddelete()booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursprivate voidorg.eclipse.swt.widgets.Compositeprivate StringgetTitleInfoProperty(int propertyID) voidinitialize(org.eclipse.swt.widgets.Composite parent) voidmenuWillBeShown(MdiEntry entry, org.eclipse.swt.widgets.Menu menu) voidparameterChanged(String parameterName) Called, when a parameter has changed.private voidrebuild()private voidrefresh(boolean force) voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setprivate voidsetSwtView(UISWTView swtView) private voidsetVisible(boolean vis) voidtitleInfoLinked(MultipleDocumentInterface mdi, MdiEntry mdiEntry) booleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemMethods 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, informOfDuplicatesMethods inherited from interface 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:
getTitleInfoPropertyin 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:ParameterListenerCalled, 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:
parameterChangedin 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:UISWTViewEventListenerTriggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurredin interfaceUISWTViewEventListener- Parameters:
event- event that occurred- Returns:
- meaning dependent upon event type
-
titleInfoLinked
- Specified by:
titleInfoLinkedin interfaceViewTitleInfo2
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-