FileDocCategorySizeDatePackage
UISWTView.javaAPI DocAzureus 3.0.3.43512Thu Feb 09 19:42:58 GMT 2006org.gudy.azureus2.ui.swt.plugins

UISWTView

public interface UISWTView implements org.gudy.azureus2.plugins.ui.UIPluginView
Commands and Information about a SWT View
author
TuxPaper
see
org.gudy.azureus2.ui.swt.plugins.UISWTViewEvent#getView()
see
org.gudy.azureus2.ui.swt.plugins.UISWTViewEventListener#eventOccurred(UISWTViewEvent)
see
org.gudy.azureus2.ui.swt.plugins.UISWTInstance#addView(String, String, UISWTViewEventListener)

Fields Summary
public static final int
CONTROLTYPE_SWT
For {@link #setControlType(int)}; When the event {@link UISWTViewEvent#TYPE_INITIALIZE} is triggered, getData() will return a {@link org.eclipse.swt.widgets.Composite} object.
public static final int
CONTROLTYPE_AWT
For {@link #setControlType(int)}; When the event {@link UISWTViewEvent#TYPE_INITIALIZE} is triggered, getData() will return a {@link java.awt.Component} object.
Constructors Summary
Methods Summary
public java.lang.ObjectgetDataSource()
Retrieve the data sources related to this view.

return
Depending on the parent view you added your view to, the Object will be:
{@link UISWTInstance#VIEW_MAIN}- null
{@link UISWTInstance#VIEW_MYTORRENTS}- {@link org.gudy.azureus2.plugins.download.Download}
{@link UISWTInstance#VIEW_TORRENT_PEERS}- {@link org.gudy.azureus2.plugins.peers.Peer}
If created by {@link UISWTInstance#openMainView(String, UISWTViewEventListener, Object)}, value will be the value set.

May return null if no data source is selected, or while processing the {@link UISWTViewEvent#TYPE_CREATE} event.

since
2.3.0.6

public voidsetControlType(int iControlType)
Sets the type of control this view uses. Set before view initialization.

The default value is {@link #CONTROLTYPE_SWT}

param
iControlType
since
2.3.0.6

public voidsetTitle(java.lang.String title)
Override the default title with a new one. After setting this, you should use the {@link UISWTViewEvent#TYPE_LANGUAGEUPDATE} to update your title to the new language.

param
title new Title
since
2.3.0.6

public voidtriggerEvent(int eventType, java.lang.Object data)
Trigger an event for this view

param
eventType Event to trigger
param
data data to send with trigger
since
2.3.0.6