FileDocCategorySizeDatePackage
UISWTViewEvent.javaAPI DocAzureus 3.0.3.43829Wed Aug 30 21:45:40 BST 2006org.gudy.azureus2.ui.swt.plugins

UISWTViewEvent

public interface UISWTViewEvent
A UI SWT View Event triggered by the UISWTViewEventListener
see
org.gudy.azureus2.ui.swt.plugins.UISWTViewEventListener
see
org.gudy.azureus2.ui.swt.plugins.UISWTInstance#addView(String, String, UISWTViewEventListener)
author
TuxPaper

Fields Summary
public static final int
TYPE_CREATE
Triggered before view is initialize in order to allow any set up before initialization

This is the only time that setting {@link UISWTView#setControlType(int)} has any effect.

return true from {@link UISWTViewEventListener#eventOccurred(UISWTViewEvent)} if creation was successfull. If you want only one instance of your view, or if there's any reason you can't create, return false, and an existing view will be used, if one is present.

public static final int
TYPE_DATASOURCE_CHANGED
Triggered when the datasource related to this view change.

Usually called after TYPE_CREATE, but before TYPE_INITIALIZE

getData() will return an Object[] array, or null

public static final int
TYPE_INITIALIZE
Initialize your view.

getData() will return a SWT Composite or AWT Container for you to place object in.

public static final int
TYPE_FOCUSGAINED
Focus Gained
public static final int
TYPE_FOCUSLOST
Focus Lost

TYPE_FOCUSLOST may not be called before TYPE_DESTROY

public static final int
TYPE_REFRESH
Triggered on user-specified intervals. Plugins should update any live information at this time.

Caller is the GUI thread

public static final int
TYPE_LANGUAGEUPDATE
Language has changed. Plugins should update their text to the new language. To determine the new language, use Locale.getDefault()
public static final int
TYPE_DESTROY
Triggered when the parent view is about to be destroyed

TYPE_FOCUSLOST may not be called before TYPE_DESTROY

public static final int
TYPE_CLOSE
Triggered when the parent view is about to be closed

Return false to abort close

Constructors Summary
Methods Summary
public java.lang.ObjectgetData()
Get the data

return
Any data for this event
since
2.3.0.6

public intgetType()
Get the type.

return
The TYPE_* constant for this event
since
2.3.0.6

public UISWTViewgetView()
Get the View

return
Information and control over the view
since
2.3.0.6