Package com.biglybt.ui.swt.pif
Interface UISWTViewEvent
-
- All Known Implementing Classes:
UISWTViewEventImpl
public interface UISWTViewEvent
A UI SWT View Event triggered by the UISWTViewEventListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
DEBUG_TYPES
static int
TYPE_CLOSE
Deprecated.Not called.static int
TYPE_CREATE
Triggered before view is initialize in order to allow any set up before initializationstatic int
TYPE_DATASOURCE_CHANGED
Triggered when the datasource related to this view change.static int
TYPE_DESTROY
Triggered when the view is about to be destroyedstatic int
TYPE_FOCUSGAINED
Deprecated.UseTYPE_SHOWN
static int
TYPE_FOCUSLOST
Deprecated.UseTYPE_HIDDEN
static int
TYPE_HIDDEN
View has been hidden.static int
TYPE_INITIALIZE
Initialize your view.static int
TYPE_LANGUAGEUPDATE
Language has changed.static int
TYPE_OBFUSCATE
Triggered when the UI needs a privacy sensitive view.static int
TYPE_REFRESH
Triggered on user-specified intervals.static int
TYPE_SHOWN
View has been shown.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getData()
Get the datastatic java.lang.String
getEventDebug(int ev)
int
getType()
Get the type.UISWTView
getView()
Get the View
-
-
-
Field Detail
-
DEBUG_TYPES
static final java.lang.String[] DEBUG_TYPES
-
TYPE_CREATE
static final int TYPE_CREATE
Triggered before view is initialize in order to allow any set up before initializationThis is the only time that setting
UISWTView.setControlType(int)
has any effect.return true from
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.- Since:
- 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_DATASOURCE_CHANGED
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
- Since:
- 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_INITIALIZE
static final int TYPE_INITIALIZE
Initialize your view.getData() will return a SWT Composite or AWT Container for you to place object in.
- Since:
- 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_FOCUSGAINED
static final int TYPE_FOCUSGAINED
Deprecated.UseTYPE_SHOWN
View has been shown. Erroneously named TYPE_FOCUSGAINED. When this view is already show, but not focused, changing focus to this view will NOT trigger this event.- Since:
- Azureus 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_SHOWN
static final int TYPE_SHOWN
View has been shown. Same ID asTYPE_FOCUSGAINED
- Since:
- BiglyBT 2.1.0.1
- See Also:
- Constant Field Values
-
TYPE_FOCUSLOST
static final int TYPE_FOCUSLOST
Deprecated.UseTYPE_HIDDEN
View has been hidden. Erroneously named TYPE_FOCUSLOST. Losing the focus, but maintaining visibility will not trigger this event.TYPE_FOCUSLOST is called before TYPE_DESTROY
- Since:
- Azureus 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_HIDDEN
static final int TYPE_HIDDEN
View has been hidden. . Same ID asTYPE_FOCUSLOST
- Since:
- BiglyBT 2.1.0.1
- See Also:
- Constant Field Values
-
TYPE_REFRESH
static final int TYPE_REFRESH
Triggered on user-specified intervals. Plugins should update any live information at this time.Caller is the GUI thread
- Since:
- 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_LANGUAGEUPDATE
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()- Since:
- 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_DESTROY
static final int TYPE_DESTROY
Triggered when the view is about to be destroyedTYPE_FOCUSLOST may not be called before TYPE_DESTROY
- Since:
- 2.3.0.6
- See Also:
- Constant Field Values
-
TYPE_CLOSE
static final int TYPE_CLOSE
Deprecated.Not called. UseTYPE_DESTROY
Triggered when the view is about to be closed- Since:
- 2.5.0.1
- See Also:
- Constant Field Values
-
TYPE_OBFUSCATE
static final int TYPE_OBFUSCATE
Triggered when the UI needs a privacy sensitive view.Currently, getData() will return a map, with "image" key containing Image
- Since:
- 4.7.0.3
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEventDebug
static java.lang.String getEventDebug(int ev)
-
getType
int getType()
Get the type.- Returns:
- The TYPE_* constant for this event
- Since:
- 2.3.0.6
-
getData
java.lang.Object getData()
Get the data- Returns:
- Any data for this event
- Since:
- 2.3.0.6
-
getView
UISWTView getView()
Get the View- Returns:
- Information and control over the view
- Since:
- 2.3.0.6
-
-