Interface UISWTViewEvent

All Known Implementing Classes:
UISWTViewEventImpl

public interface UISWTViewEvent
A UI SWT View Event triggered by the UISWTViewEventListener
See Also:
  • Field Details

    • DEBUG_TYPES

      static final String[] DEBUG_TYPES
    • TYPE_CREATE

      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 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:
    • 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:
    • 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:
    • TYPE_FOCUSGAINED

      static final int TYPE_FOCUSGAINED
      Deprecated.
      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:
    • TYPE_SHOWN

      static final int TYPE_SHOWN
      View has been shown. Same ID as TYPE_FOCUSGAINED
      Since:
      BiglyBT 2.1.0.1
      See Also:
    • TYPE_FOCUSLOST

      static final int TYPE_FOCUSLOST
      Deprecated.
      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:
    • TYPE_HIDDEN

      static final int TYPE_HIDDEN
      View has been hidden. . Same ID as TYPE_FOCUSLOST
      Since:
      BiglyBT 2.1.0.1
      See Also:
    • 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:
    • 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:
    • TYPE_DESTROY

      static final int TYPE_DESTROY
      Triggered when the view is about to be destroyed

      TYPE_FOCUSLOST may not be called before TYPE_DESTROY

      Since:
      2.3.0.6
      See Also:
    • TYPE_CLOSE

      static final int TYPE_CLOSE
      Deprecated.
      Not called. Use TYPE_DESTROY
      Triggered when the view is about to be closed
      Since:
      2.5.0.1
      See Also:
    • 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:
    • TYPE_PRE_CREATE

      static final int TYPE_PRE_CREATE
      Triggered when the view is initially instantiated. Required for the rare occurrence when early initialisation is absolutely required. Before you ask note that the TYPE_CREATE event can be delayed...
      See Also:
  • Method Details

    • getEventDebug

      static String getEventDebug(int ev)
    • getType

      int getType()
      Get the type.
      Returns:
      The TYPE_* constant for this event
      Since:
      2.3.0.6
    • getData

      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