| 
|||||||||
| 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 UISWTViewCorepublic Object getInitialDataSource()
getInitialDataSource in interface UISWTViewpublic Object getDataSource()
UISWTView
getDataSource in interface UIPluginViewgetDataSource in interface UISWTViewUISWTInstance.VIEW_MAIN- nullUISWTInstance.VIEW_MYTORRENTS- DownloadUISWTInstance.VIEW_TORRENT_PEERS- PeerUISWTInstance.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 UISWTViewpublic String getViewID()
UIPluginView
getViewID in interface UIPluginViewpublic void closeView()
UIPluginView
closeView in interface UIPluginViewpublic void setControlType(int iControlType)
UISWTView
 The default value is UISWTView.CONTROLTYPE_SWT
setControlType in interface UISWTViewpublic int getControlType()
getControlType in interface UISWTView
public void triggerEvent(int eventType,
                         Object data)
UISWTView
triggerEvent in interface UISWTVieweventType - Event to trigger UISWTViewEvent}data - data to send with trigger
protected boolean triggerEventRaw(int eventType,
                                  Object data)
public void setTitle(String title)
UISWTViewUISWTViewEvent.TYPE_LANGUAGEUPDATE to update your title to the
 new language.
setTitle in interface UISWTViewtitle - new Titlepublic PluginInterface getPluginInterface()
UISWTView
getPluginInterface in interface UIPluginViewgetPluginInterface in interface UISWTViewpublic org.eclipse.swt.widgets.Composite getComposite()
UISWTViewCore
getComposite in interface UISWTViewCorepublic String getTitleID()
UISWTViewCore
getTitleID in interface UISWTViewCorepublic String getFullTitle()
UISWTViewCore
getFullTitle in interface UISWTViewCorepublic void initialize(org.eclipse.swt.widgets.Composite parent)
UISWTViewCore
initialize in interface UISWTViewCoreparent - 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 UISWTViewCorepublic void setUseCoreDataSource(boolean useCoreDataSource)
setUseCoreDataSource in interface UISWTViewCorepublic PluginUISWTSkinObject getSkinObject()
getSkinObject in interface UISWTViewCore
public void setSkinObject(PluginUISWTSkinObject skinObject,
                          org.eclipse.swt.widgets.Composite c)
setSkinObject in interface UISWTViewCorepublic 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 UIPluginViewpublic UIPluginViewToolBarListener getToolBarListener()
getToolBarListener in interface UIPluginView
public void setUserData(Object key,
                        Object data)
setUserData in interface UISWTViewCorepublic Object getUserData(Object key)
getUserData in interface UISWTViewCore
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||