Package com.biglybt.ui.swt.pif
Interface UISWTViewBuilder
- All Known Implementing Classes:
UISWTViewBuilderCore
public interface UISWTViewBuilder
Information on how to build a
UISWTView
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
-
Method Summary
Modifier and TypeMethodDescriptionsetInitialDatasource
(Object datasource) Set the very first datasource the view sees.setInitialTitle
(String initialTitle) Sometimes the title is needed even before an instance is created.setListenerClass
(Class<? extends UISWTViewEventListener> cla) Sets aUISWTViewEventListener
class that will be created when the UI shows the view.setListenerInstantiator
(UISWTViewBuilder.UISWTViewEventListenerInstantiator listenerInstantiator) Advanced creation of aUISWTViewEventListener
.setParentEntryID
(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 Details
-
setInitialDatasource
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
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
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(UISWTViewBuilder.UISWTViewEventListenerInstantiator listenerInstantiator) Advanced creation of aUISWTViewEventListener
. Try not to use :)- Parameters:
listenerInstantiator
- called when a newUISWTView
is createdcanHandleMultipleViews
- Whether theUISWTViewEventListener
created can handle multipleUISWTView
- Since:
- BiglyBT 2.1.0.1
-
getListenerInstantiator
UISWTViewBuilder.UISWTViewEventListenerInstantiator getListenerInstantiator() -
setParentEntryID
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
-