|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewImpl
public class UISWTViewImpl
This class creates an IView that triggers UISWTViewEventListener appropriately
Field Summary | |
---|---|
static String |
CFG_PREFIX
|
Fields inherited from interface org.gudy.azureus2.ui.swt.pluginsimpl.UISWTViewCore |
---|
CONTROLTYPE_SKINOBJECT |
Fields inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTView |
---|
CONTROLTYPE_AWT, CONTROLTYPE_SWT |
Constructor Summary | |
---|---|
UISWTViewImpl(String sParentID,
String sViewID,
UISWTViewEventListener eventListener,
Object _initialDatasource)
|
Method Summary | |
---|---|
void |
closeView()
Closes the view |
void |
generate(IndentWriter writer)
|
org.eclipse.swt.widgets.Composite |
getComposite()
This method is called after initialize so that the Tab is set its control Caller is the GUI Thread. |
int |
getControlType()
|
Object |
getDataSource()
Retrieve the data sources related to this view. |
UISWTViewEventListener |
getEventListener()
|
String |
getFullTitle()
Called in order to set / update the title of this View. |
Object |
getInitialDataSource()
|
UISWTView |
getParentView()
|
PluginInterface |
getPluginInterface()
Gets the plugin interface associated with this view, null if none defined |
PluginUISWTSkinObject |
getSkinObject()
|
String |
getTitleID()
Messagebundle ID for title |
UIPluginViewToolBarListener |
getToolBarListener()
|
Object |
getUserData(Object key)
|
String |
getViewID()
ID of the view |
void |
initialize(org.eclipse.swt.widgets.Composite parent)
This method is called when the view is instanciated, it should initialize all GUI components. |
void |
refreshToolBarItems(Map<String,Long> list)
|
boolean |
requestClose()
|
void |
setControlType(int iControlType)
Sets the type of control this view uses. |
void |
setParentView(UISWTView p)
|
void |
setSkinObject(PluginUISWTSkinObject skinObject,
org.eclipse.swt.widgets.Composite c)
|
void |
setTitle(String title)
Override the default title with a new one. |
void |
setToolBarListener(UIPluginViewToolBarListener l)
|
void |
setUseCoreDataSource(boolean useCoreDataSource)
|
void |
setUserData(Object key,
Object data)
|
boolean |
toolBarItemActivated(ToolBarItem item,
long activationType,
Object datasource)
|
void |
triggerEvent(int eventType,
Object data)
Trigger an event for this view |
protected boolean |
triggerEventRaw(int eventType,
Object data)
|
boolean |
useCoreDataSource()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CFG_PREFIX
Constructor Detail |
---|
public UISWTViewImpl(String sParentID, String sViewID, UISWTViewEventListener eventListener, Object _initialDatasource) throws Exception
Exception
Method Detail |
---|
public UISWTViewEventListener getEventListener()
getEventListener
in interface UISWTViewCore
public Object getInitialDataSource()
getInitialDataSource
in interface UISWTView
public Object getDataSource()
UISWTView
getDataSource
in interface UIPluginView
getDataSource
in interface UISWTView
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.
public void setParentView(UISWTView p)
public UISWTView getParentView()
getParentView
in interface UISWTView
public String getViewID()
UIPluginView
getViewID
in interface UIPluginView
public void closeView()
UIPluginView
closeView
in interface UIPluginView
public void setControlType(int iControlType)
UISWTView
The default value is UISWTView.CONTROLTYPE_SWT
setControlType
in interface UISWTView
public int getControlType()
getControlType
in interface UISWTView
public void triggerEvent(int eventType, Object data)
UISWTView
triggerEvent
in interface UISWTView
eventType
- Event to trigger UISWTViewEvent
}data
- data to send with triggerprotected boolean triggerEventRaw(int eventType, Object data)
public void setTitle(String title)
UISWTView
UISWTViewEvent.TYPE_LANGUAGEUPDATE
to update your title to the
new language.
setTitle
in interface UISWTView
title
- new Titlepublic PluginInterface getPluginInterface()
UISWTView
getPluginInterface
in interface UIPluginView
getPluginInterface
in interface UISWTView
public org.eclipse.swt.widgets.Composite getComposite()
UISWTViewCore
getComposite
in interface UISWTViewCore
public String getTitleID()
UISWTViewCore
getTitleID
in interface UISWTViewCore
public String getFullTitle()
UISWTViewCore
getFullTitle
in interface UISWTViewCore
public void initialize(org.eclipse.swt.widgets.Composite parent)
UISWTViewCore
initialize
in interface UISWTViewCore
parent
- the parent composite. Each view should create a child
composite, and then use this child composite to add all elements
to.public boolean requestClose()
public boolean useCoreDataSource()
useCoreDataSource
in interface UISWTViewCore
public void setUseCoreDataSource(boolean useCoreDataSource)
setUseCoreDataSource
in interface UISWTViewCore
public PluginUISWTSkinObject getSkinObject()
getSkinObject
in interface UISWTViewCore
public void setSkinObject(PluginUISWTSkinObject skinObject, org.eclipse.swt.widgets.Composite c)
setSkinObject
in interface UISWTViewCore
public void generate(IndentWriter writer)
generate
in interface AEDiagnosticsEvidenceGenerator
public boolean toolBarItemActivated(ToolBarItem item, long activationType, Object datasource)
public void refreshToolBarItems(Map<String,Long> list)
public void setToolBarListener(UIPluginViewToolBarListener l)
setToolBarListener
in interface UIPluginView
public UIPluginViewToolBarListener getToolBarListener()
getToolBarListener
in interface UIPluginView
public void setUserData(Object key, Object data)
setUserData
in interface UISWTViewCore
public Object getUserData(Object key)
getUserData
in interface UISWTViewCore
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |