Package com.biglybt.ui.swt.pifimpl
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
Fields Modifier and Type Field Description static int
CONTROLTYPE_SKINOBJECT
-
Fields inherited from interface com.biglybt.ui.swt.pif.UISWTView
CONTROLTYPE_AWT, CONTROLTYPE_SWT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SWTSkinObjectContainer
buildStandAlone(SWTSkinObjectContainer soParent)
boolean
canBuildStandAlone()
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.java.lang.Object
getDataSource()
Retrieve the data sources related to this view.UISWTViewEventListener
getEventListener()
UISWTViewBuilderCore
getEventListenerBuilder()
java.lang.String
getFullTitle()
Called in order to set / update the title of this View.PluginUISWTSkinObject
getPluginSkinObject()
java.lang.String
getTitleID()
Messagebundle ID for titlejava.lang.Object
getUserData(java.lang.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(java.lang.Object key, java.lang.Object data)
boolean
useCoreDataSource()
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginView
closeView, getToolBarListener, getViewID, setToolBarListener
-
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTView
getControlType, getInitialDataSource, getParentView, getPluginInterface, isContentDisposed, isDestroyOnDeactivate, setControlType, setDestroyOnDeactivate, setTitle, triggerEvent
-
-
-
-
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
java.lang.String getTitleID()
Messagebundle ID for title
-
getFullTitle
java.lang.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()
-
getDataSource
java.lang.Object getDataSource()
Description copied from interface:UISWTView
Retrieve the data sources related to this view.- Specified by:
getDataSource
in interfaceUIPluginView
- Specified by:
getDataSource
in interfaceUISWTView
- Returns:
- Returns data source, based on
useCoreDataSource()
-
getEventListener
UISWTViewEventListener getEventListener()
-
getEventListenerBuilder
UISWTViewBuilderCore getEventListenerBuilder()
-
setUserData
void setUserData(java.lang.Object key, java.lang.Object data)
-
getUserData
java.lang.Object getUserData(java.lang.Object key)
-
setParentView
void setParentView(UISWTView parentView)
-
buildStandAlone
SWTSkinObjectContainer buildStandAlone(SWTSkinObjectContainer soParent)
-
canBuildStandAlone
boolean canBuildStandAlone()
-
-