FileDocCategorySizeDatePackage
IView.javaAPI DocAzureus 3.0.3.43852Wed Sep 05 18:34:08 BST 2007org.gudy.azureus2.ui.swt.views

IView

public interface IView implements org.gudy.azureus2.ui.swt.IconBarEnabler, org.gudy.azureus2.ui.swt.mainwindow.Refreshable
author
Olivier

Fields Summary
Constructors Summary
Methods Summary
public voiddataSourceChanged(java.lang.Object newDataSource)
Called when the selected dataSource has changed. If this view is dependent upon a selected datasource, implement this function and update your view.

param
newDataSource null if no datasource is selected. May be an array of Object[] if multiple dataSources are selected
since
2.3.0.7

public voiddelete()
This method is caled when the view is destroyed. Each color instanciated, images and such things should be disposed. The caller is the GUI thread.

public voidgenerateDiagnostics(org.gudy.azureus2.core3.util.IndentWriter writer)
Called when Azureus generates Diagnostics. Write any diagnostic information you want to the writer.

param
writer
since
2.3.0.4

public org.eclipse.swt.widgets.CompositegetComposite()
This method is called after initialize so that the Tab is set its control Caller is the GUI Thread.

return
the Composite that should be set as the control for the Tab item

public java.lang.StringgetData()
Data 'could' store a key to a language file, in order to support multi-language titles

return
a String which is the key of this view title.

public java.lang.StringgetFullTitle()
Called in order to set / update the title of this View. When the view is being displayed in a tab, the full title is used for the tooltip.

return
the full title for the view

public java.lang.StringgetShortTitle()
Called in order to set / update the short title of this view. When the view is being displayed in a tab, the short title is used for the tab's text

return
A short title for the view

public voidinitialize(org.eclipse.swt.widgets.Composite composite)
This method is called when the view is instanciated, it should initialize all GUI components. Must NOT be blocking, or it'll freeze the whole GUI. Caller is the GUI Thread.

param
composite the parent composite. Each view should create a child composite, and then use this child composite to add all elements to.
note
It's possible that the view may be created, but never initialize'd. In these cases, delete will still be called.

public voidupdateLanguage()
Called when the language needs updating