public interface BeanFactory
Modifier and Type | Method and Description |
---|---|
void |
destroy(Object o)
Destroys the entire graph of beans that were created and returned via a call to any of the newXXX()
methods in this class.
|
CompassDropController |
newDropController(WorkbenchPanelView<?> view) |
WorkbenchPanelPresenter |
newRootPanel(PerspectiveActivity activity,
org.uberfire.workbench.model.PanelDefinition root)
Creates a new perspective root panel for the given Perspective Activity and Root Panel Definition.
|
WorkbenchPanelPresenter |
newWorkbenchPanel(org.uberfire.workbench.model.PanelDefinition definition)
Creates a new panel with the properties specified in the given definition.
|
WorkbenchPartPresenter |
newWorkbenchPart(org.uberfire.workbench.model.menu.Menus menus,
String title,
com.google.gwt.user.client.ui.IsWidget titleDecoration,
org.uberfire.workbench.model.PartDefinition definition,
Class<? extends WorkbenchPartPresenter> partType)
Creates a new part presenter/view pair with the given properties.
|
WorkbenchPartPresenter newWorkbenchPart(org.uberfire.workbench.model.menu.Menus menus, String title, com.google.gwt.user.client.ui.IsWidget titleDecoration, org.uberfire.workbench.model.PartDefinition definition, Class<? extends WorkbenchPartPresenter> partType)
menus
- The menus to associate with the new part. Null means no menus.title
- The title to associate with the new part that the containing panel may display (for example, as the
tab label in a MultiTabWorkbenchPanelPresenter
.titleDecoration
- The title decoration that a panel may choose to display beside the part's title. Null is permitted,
and means no title decoration.
NOTE: presently, none of the built-in panel types display a part's title decoration.
definition
- Defines all other aspects of the part to create. Must not be null.partType
- The new part type.WorkbenchPanelPresenter newRootPanel(PerspectiveActivity activity, org.uberfire.workbench.model.PanelDefinition root)
destroy(Object)
when it is no longer needed.activity
- the perspective that the root panel is being created for. Must not be null.root
- description of the panel to create. Must not be null.destroy(Object)
when no longer in use by the application.WorkbenchPanelPresenter newWorkbenchPanel(org.uberfire.workbench.model.PanelDefinition definition)
definition
- specification of the panel that should be created. Must not be null.destroy(Object)
when no longer in use by the application.CompassDropController newDropController(WorkbenchPanelView<?> view)
void destroy(Object o)
WorkbenchPartPresenter
instance in will result in the
destruction of that presenter, its view, and all other dependent beans injected into that graph of objects.o
- a bean which was returned from one of the newXXX() methods in this class and which has not
been destroyed yet.Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.