public interface UiContextReference extends Serializable
BindingAnnotation
and provides a list
of the keys that are more 'general' than the current.CurrentUiContextReference
,
SessionStore
,
UiScopes
Modifier and Type | Interface and Description |
---|---|
static class |
UiContextReference.AppContextReference
App specific UI context reference.
|
static class |
UiContextReference.SubAppContextReference
Sub-app specific UI context reference.
|
static class |
UiContextReference.UiContextReferenceImpl
Base
UiContextReference implementation. |
static class |
UiContextReference.ViewContextReference
View-specific UI context reference implementation.
|
Modifier and Type | Method and Description |
---|---|
String |
asString()
Get String representation of UI context ref; useful
when the reference needs to be used as a key in a hash map
(e.g.
|
static UiContextReference |
genericAppContextReference() |
static UiContextReference |
genericSubAppContextReference() |
static UiContextReference |
genericViewContextRefence() |
UiContextAnnotation |
getAnnotation()
Get
UiContextAnnotation which corresponds to
this UI context reference. |
default List<UiContextReference> |
getParentReferences()
Get all the ('broader') references that can be resolved from
the current one.
|
static UiContextReference |
ofApp(info.magnolia.ui.api.app.AppContext appContext) |
static UiContextReference |
ofCurrentUi() |
static UiContextReference |
ofSubApp(info.magnolia.ui.api.app.SubAppContext subAppContext) |
static UiContextReference |
ofUi(com.vaadin.ui.UI ui) |
static UiContextReference |
ofView(String viewId,
UiContextReference parentKey) |
String asString()
BeanStore
).UiContextAnnotation getAnnotation()
UiContextAnnotation
which corresponds to
this UI context reference. Such annotation is also a
BindingAnnotation
used by Guice.default List<UiContextReference> getParentReferences()
static UiContextReference ofUi(com.vaadin.ui.UI ui)
static UiContextReference ofCurrentUi()
static UiContextReference ofApp(info.magnolia.ui.api.app.AppContext appContext)
static UiContextReference ofSubApp(info.magnolia.ui.api.app.SubAppContext subAppContext)
static UiContextReference ofView(String viewId, UiContextReference parentKey)
static UiContextReference genericSubAppContextReference()
static UiContextReference genericAppContextReference()
static UiContextReference genericViewContextRefence()
Copyright © 2017 Magnolia International Ltd.. All rights reserved.