org.gudy.azureus2.ui.swt.pluginsimpl
Interface UISWTViewCore

All Superinterfaces:
UIPluginView, UISWTView
All Known Subinterfaces:
MdiEntrySWT
All Known Implementing Classes:
BaseMdiEntry, SideBarEntrySWT, TabbedEntry, UISWTViewImpl

public interface UISWTViewCore
extends UISWTView

A holding area between the public UISWTView plugin interface, and things that we may eventually move into UISWTView


Field Summary
static int CONTROLTYPE_SKINOBJECT
           
 
Fields inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTView
CONTROLTYPE_AWT, CONTROLTYPE_SWT
 
Method Summary
 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.
 UISWTViewEventListener getEventListener()
           
 String getFullTitle()
          Called in order to set / update the title of this View.
 PluginUISWTSkinObject getPluginSkinObject()
           
 String getTitleID()
          Messagebundle ID for title
 Object getUserData(Object key)
           
 void initialize(org.eclipse.swt.widgets.Composite composite)
          This method is called when the view is instanciated, it should initialize all GUI components.
 void setParentView(UISWTView parentView)
           
 void setPluginSkinObject(PluginUISWTSkinObject so)
           
 void setUseCoreDataSource(boolean useCoreDataSource)
           
 void setUserData(Object key, Object data)
           
 boolean useCoreDataSource()
           
 
Methods inherited from interface org.gudy.azureus2.ui.swt.plugins.UISWTView
getControlType, getDataSource, getInitialDataSource, getParentView, getPluginInterface, isDestroyOnDeactivate, setControlType, setDestroyOnDeactivate, setTitle, triggerEvent
 
Methods inherited from interface org.gudy.azureus2.plugins.ui.UIPluginView
closeView, getToolBarListener, getViewID, setToolBarListener
 

Field Detail

CONTROLTYPE_SKINOBJECT

static final int CONTROLTYPE_SKINOBJECT
See Also:
Constant Field Values
Method Detail

initialize

void initialize(org.eclipse.swt.widgets.Composite composite)
This method is called when the view is instanciated, it should initialize all GUI components. Must NOT be blocking, or it'll freeze the whole GUI. Caller is the GUI Thread.

Parameters:
composite - the parent composite. Each view should create a child composite, and then use this child composite to add all elements to.

getComposite

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.

Returns:
the Composite that should be set as the control for the Tab item

getTitleID

String getTitleID()
Messagebundle ID for title


getFullTitle

String getFullTitle()
Called in order to set / update the title of this View. When the view is being displayed in a tab, the full title is used for the tooltip.

Returns:
the full title for the view

setPluginSkinObject

void setPluginSkinObject(PluginUISWTSkinObject so)

getPluginSkinObject

PluginUISWTSkinObject getPluginSkinObject()

setUseCoreDataSource

void setUseCoreDataSource(boolean useCoreDataSource)

useCoreDataSource

boolean useCoreDataSource()

getEventListener

UISWTViewEventListener getEventListener()

setUserData

void setUserData(Object key,
                 Object data)

getUserData

Object getUserData(Object key)

setParentView

void setParentView(UISWTView parentView)