public interface UiFrameworkView extends View
BeanStore
and is able to store objects
inside of it, access the parent stores etc.Modifier and Type | Method and Description |
---|---|
default BeanStore |
accessViewBeanStore() |
default com.vaadin.ui.Component |
asVaadinComponent()
Convenience method implementation.
|
default <T extends ViewContext> |
bindContext(Class<? extends T> contextClass)
Create and bind an instance of the view context.
|
default void |
bindDatasourceDefinition(Object definition)
Shares datasource definition information with the sub-views and components.
|
default <T> void |
bindInstance(Class<T> type,
T instance)
Put an instance into the view's bean storage, making it
injectable with
ViewComponentProvider . |
default <T> T |
create(Class type,
Object... args)
Convenience wrapper around
ComponentProvider capabilities. |
default <T> T |
create(WithImplementation<T> definition,
Object... args)
Convenience wrapper around
ComponentProvider capabilities. |
default void |
destroy()
Cleans up the related bean store, un-registers this
view from the
view registry ,
detaches the from the parent Vaadin component,
recursively destroys the child views. |
default info.magnolia.objectfactory.ComponentProvider |
getComponentProvider() |
default UiContextReference |
getCurrentViewReference() |
default ViewProvider |
getViewProvider()
Get
ViewProvider utility. |
default com.vaadin.ui.Component asVaadinComponent()
asVaadinComponent
in interface View
default void destroy()
view registry
,
detaches the from the parent Vaadin component,
recursively destroys the child views.default <T> void bindInstance(Class<T> type, T instance)
ViewComponentProvider
.T
- type of the shared instancedefault <T extends ViewContext> T bindContext(Class<? extends T> contextClass)
bindInstance(Class, Object)
does.T
- type of the view contextdefault void bindDatasourceDefinition(Object definition)
DatasourceComponent
,
DatasourceBundle
,
DatasourceSupport
default <T> T create(WithImplementation<T> definition, Object... args)
ComponentProvider
capabilities.
Creates and instance of a type specified by a passed WithImplementation
instance.T
- type of an instance to be createddefault <T> T create(Class type, Object... args)
ComponentProvider
capabilities.T
- type of an instance to be createddefault ViewProvider getViewProvider()
ViewProvider
utility.default info.magnolia.objectfactory.ComponentProvider getComponentProvider()
default UiContextReference getCurrentViewReference()
default BeanStore accessViewBeanStore()
Copyright © 2018 Magnolia International Ltd.. All rights reserved.