Interface UISWTView
- All Superinterfaces:
UIPluginView
- All Known Subinterfaces:
MdiEntrySWT, UISWTViewCore
- All Known Implementing Classes:
BaseMdiEntry, SideBarEntrySWT, TabbedEntry, UISWTViewImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intForsetControlType(int); When the eventUISWTViewEvent.TYPE_INITIALIZEis triggered, getData() will return aComponentobject.static final intForsetControlType(int); When the eventUISWTViewEvent.TYPE_INITIALIZEis triggered, getData() will return aCompositeobject. -
Method Summary
Modifier and TypeMethodDescriptionintRetrieve the data sources related to this view.Get the original datasource that was set to the viewGet parent view, if one existsGets the plugin interface associated with this view, null if none definedbooleanbooleanRetrieve whether this view can be destroyed onUISWTViewEvent.TYPE_FOCUSLOSTvoidsetControlType(int iControlType) Sets the type of control this view uses.voidsetDestroyOnDeactivate(boolean b) To save memory/CPU, views are sometimes destroyed onUISWTViewEvent.TYPE_FOCUSLOSTvoidOverride the default title with a new one.voidtriggerEvent(int eventType, Object data) Trigger an event for this viewMethods inherited from interface UIPluginView
closeView, getToolBarListener, getViewID, setToolBarListener
-
Field Details
-
CONTROLTYPE_SWT
static final int CONTROLTYPE_SWTForsetControlType(int); When the eventUISWTViewEvent.TYPE_INITIALIZEis triggered, getData() will return aCompositeobject.- Since:
- 2.3.0.6
- See Also:
-
CONTROLTYPE_AWT
static final int CONTROLTYPE_AWTForsetControlType(int); When the eventUISWTViewEvent.TYPE_INITIALIZEis triggered, getData() will return aComponentobject.- Since:
- 2.3.0.6
- See Also:
-
-
Method Details
-
setControlType
void setControlType(int iControlType) Sets the type of control this view uses. Set before view initialization.The default value is
CONTROLTYPE_SWT- Parameters:
iControlType-- Since:
- 2.3.0.6
-
getControlType
int getControlType()- Returns:
- CONTROLTYPE_*
- Since:
- 4.3.1.3
-
getViewSubID
String getViewSubID() -
getDataSource
Object getDataSource()Retrieve the data sources related to this view.- Specified by:
getDataSourcein interfaceUIPluginView- Returns:
- Depending on the parent view you added your view to, the Object will be:
UISWTInstance.VIEW_MAIN- null
UISWTInstance.VIEW_MYTORRENTS-Download
UISWTInstance.VIEW_TORRENT_PEERS-Peer
If created byUISWTInstance.openMainView(String, UISWTViewEventListener, Object), value will be the value set.May return null if no data source is selected, or while processing the
UISWTViewEvent.TYPE_CREATEevent. - Since:
- 2.3.0.6
-
getInitialDataSource
-
getParentView
-
triggerEvent
Trigger an event for this view- Parameters:
eventType- Event to triggerUISWTViewEvent}data- data to send with trigger- Since:
- 2.3.0.6
-
getEventListener
UISWTViewEventListener getEventListener() -
setTitle
Override the default title with a new one. After setting this, you should use theUISWTViewEvent.TYPE_LANGUAGEUPDATEto update your title to the new language.- Parameters:
title- new Title- Since:
- 2.3.0.6
-
getPluginInterface
PluginInterface getPluginInterface()Gets the plugin interface associated with this view, null if none defined Important Note
BiglyBT 2.0.0.0 and below will only return aPluginInterfaceduring theUISWTViewEvent.TYPE_CREATEevent. After this event is processed, the return value will be null. 2.0.0.1 and later will always return aPluginInterface- Specified by:
getPluginInterfacein interfaceUIPluginView- Since:
- Vuze 4.5.1.1, BiglyBT 1.0.0.0
-
setDestroyOnDeactivate
void setDestroyOnDeactivate(boolean b) To save memory/CPU, views are sometimes destroyed onUISWTViewEvent.TYPE_FOCUSLOSTThis allows overriding of the default behaviour
- Since:
- 5.6.0.1
-
isDestroyOnDeactivate
boolean isDestroyOnDeactivate()Retrieve whether this view can be destroyed onUISWTViewEvent.TYPE_FOCUSLOST- Since:
- 5.6.0.1
-
isContentDisposed
boolean isContentDisposed()
-