Package com.biglybt.ui.swt.pif
Interface UISWTViewBuilder
-
- All Known Implementing Classes:
UISWTViewBuilderCore
public interface UISWTViewBuilder
Information on how to build aUISWTView
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
UISWTViewBuilder.UISWTViewEventListenerInstantiator
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UISWTViewBuilder
setInitialDatasource(java.lang.Object datasource)
Set the very first datasource the view sees.UISWTViewBuilder
setInitialTitle(java.lang.String initialTitle)
Sometimes the title is needed even before an instance is created.UISWTViewBuilder
setListenerClass(java.lang.Class<? extends UISWTViewEventListener> cla)
Sets aUISWTViewEventListener
class that will be created when the UI shows the view.UISWTViewBuilder
setListenerInstantiator(boolean canHandleMultipleViews, UISWTViewBuilder.UISWTViewEventListenerInstantiator listenerInstantiator)
Advanced creation of aUISWTViewEventListener
.UISWTViewBuilderCore
setParentEntryID(java.lang.String parentEntryID)
Place this entry under the parentEntryID, if UI supports it.
Sidebar can have multiple levels of views, but Tabbed MDI places all views at the same level.
-
-
-
Method Detail
-
setInitialDatasource
UISWTViewBuilder setInitialDatasource(java.lang.Object datasource)
Set the very first datasource the view sees. Views can retrieve this first datasource even after the datasource changes usingUISWTView.getInitialDataSource()
- Since:
- BiglyBT 2.1.0.1
-
setListenerClass
UISWTViewBuilder setListenerClass(java.lang.Class<? extends UISWTViewEventListener> cla)
Sets aUISWTViewEventListener
class that will be created when the UI shows the view.
Since this class will be instantiated with cla.newInstance(), the class must be a top-level class, and not a local or non-static nested class.- Since:
- BiglyBT 2.1.0.1
-
setInitialTitle
UISWTViewBuilder setInitialTitle(java.lang.String initialTitle)
Sometimes the title is needed even before an instance is created. For example, menu items that open views- Since:
- BiglyBT 2.1.0.1
-
setListenerInstantiator
UISWTViewBuilder setListenerInstantiator(boolean canHandleMultipleViews, UISWTViewBuilder.UISWTViewEventListenerInstantiator listenerInstantiator)
Advanced creation of aUISWTViewEventListener
. Try not to use :)- Parameters:
canHandleMultipleViews
- Whether theUISWTViewEventListener
created can handle multipleUISWTView
listenerInstantiator
- called when a newUISWTView
is created- Since:
- BiglyBT 2.1.0.1
-
setParentEntryID
UISWTViewBuilderCore setParentEntryID(java.lang.String parentEntryID)
Place this entry under the parentEntryID, if UI supports it.
Sidebar can have multiple levels of views, but Tabbed MDI places all views at the same level.- Since:
- BiglyBT 2.1.0.1
-
-