public interface UiFrameworkView extends View, Destructible
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 <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 <V extends UiFrameworkView> |
create(String name,
Class<V> type,
Object... args) |
default <V extends UiFrameworkView> |
create(String name,
WithImplementation<V> definition,
Object... args) |
default <T> T |
create(WithImplementation<T> definition,
Object... args)
Convenience wrapper around
ComponentProvider capabilities. |
default void |
destroy()
Cleans up the related bean store,
detaches the from the parent Vaadin component,
recursively destroys the child views.
|
default UiContextBoundComponentProvider |
getComponentProvider() |
default UiContextReference |
getCurrentViewReference() |
default com.vaadin.ui.Component asVaadinComponent()
asVaadinComponent
in interface View
default void destroy()
destroy
in interface Destructible
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 <V extends UiFrameworkView> V create(String name, WithImplementation<V> definition, Object... args)
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 <V extends UiFrameworkView> V create(String name, Class<V> type, Object... args)
default <T> T create(Class type, Object... args)
ComponentProvider
capabilities.T
- type of an instance to be createddefault UiContextBoundComponentProvider getComponentProvider()
default UiContextReference getCurrentViewReference()
default BeanStore accessViewBeanStore()
Copyright © 2019 Magnolia International Ltd.. All rights reserved.