|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UISWTView
Commands and Information about a SWT View
UISWTViewEvent.getView()
,
UISWTViewEventListener.eventOccurred(UISWTViewEvent)
,
UISWTInstance.addView(String, String, UISWTViewEventListener)
Field Summary | |
---|---|
static int |
CONTROLTYPE_AWT
For setControlType(int) ; When the event
UISWTViewEvent.TYPE_INITIALIZE is triggered, getData() will
return a Component object. |
static int |
CONTROLTYPE_SWT
For setControlType(int) ; When the event
UISWTViewEvent.TYPE_INITIALIZE is triggered, getData() will
return a Composite object. |
Method Summary | |
---|---|
int |
getControlType()
|
Object |
getDataSource()
Retrieve the data sources related to this view. |
Object |
getInitialDataSource()
Get the original datasource that was set to the view |
UISWTView |
getParentView()
Get parent view, if one exists |
PluginInterface |
getPluginInterface()
Gets the plugin interface associated with this view, null if none defined |
boolean |
isDestroyOnDeactivate()
Retrieve whether this view can be destroyed on UISWTViewEvent.TYPE_FOCUSLOST |
void |
setControlType(int iControlType)
Sets the type of control this view uses. |
void |
setDestroyOnDeactivate(boolean b)
To save memory/CPU, views are sometimes destroyed on UISWTViewEvent.TYPE_FOCUSLOST |
void |
setTitle(String title)
Override the default title with a new one. |
void |
triggerEvent(int eventType,
Object data)
Trigger an event for this view |
Methods inherited from interface org.gudy.azureus2.plugins.ui.UIPluginView |
---|
closeView, getToolBarListener, getViewID, setToolBarListener |
Field Detail |
---|
static final int CONTROLTYPE_SWT
setControlType(int)
; When the event
UISWTViewEvent.TYPE_INITIALIZE
is triggered, getData() will
return a Composite
object.
static final int CONTROLTYPE_AWT
setControlType(int)
; When the event
UISWTViewEvent.TYPE_INITIALIZE
is triggered, getData() will
return a Component
object.
Method Detail |
---|
void setControlType(int iControlType)
The default value is CONTROLTYPE_SWT
iControlType
- int getControlType()
Object getDataSource()
getDataSource
in interface UIPluginView
UISWTInstance.VIEW_MAIN
- nullUISWTInstance.VIEW_MYTORRENTS
- Download
UISWTInstance.VIEW_TORRENT_PEERS
- Peer
UISWTInstance.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_CREATE
event.
Object getInitialDataSource()
UISWTView getParentView()
void triggerEvent(int eventType, Object data)
eventType
- Event to trigger UISWTViewEvent
}data
- data to send with triggervoid setTitle(String title)
UISWTViewEvent.TYPE_LANGUAGEUPDATE
to update your title to the
new language.
title
- new TitlePluginInterface getPluginInterface()
getPluginInterface
in interface UIPluginView
void setDestroyOnDeactivate(boolean b)
UISWTViewEvent.TYPE_FOCUSLOST
This allows overriding of the default behaviour
boolean isDestroyOnDeactivate()
UISWTViewEvent.TYPE_FOCUSLOST
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |