public abstract class AbstractUiContext extends AbstractLoggableComponent implements UiContext, AttributeWriteEventObserver
UiContext
.Modifier and Type | Field and Description |
---|---|
private UiAccessKeyBinding |
accessKeyBinding |
private UiConfiguration |
configuration |
private ComponentContainer |
container |
private UiDataBindingFactory |
dataBindingFactory |
private DatatypeDetector |
datatypeDetector |
private UiDispatcher |
dispatcher |
private UiDisplay |
display |
private UiEventObserver |
eventObserver |
private UiModeChanger |
modeChanger |
private UiPopupHelper |
popupHelper |
private RoleFactory |
roleFactory |
private UiWidgetFactory |
widgetFactory |
Constructor and Description |
---|
AbstractUiContext()
The constructor.
|
createLogger
doInitialized, getInitializationState, initialize
private UiEventObserver eventObserver
getEventObserver()
private UiModeChanger modeChanger
getModeChanger()
private UiConfiguration configuration
getConfiguration()
private UiDispatcher dispatcher
getDispatcher()
private UiDisplay display
getDisplay()
private RoleFactory roleFactory
getRoleFactory()
private UiWidgetFactory widgetFactory
getWidgetFactory()
private UiPopupHelper popupHelper
getPopupHelper()
private ComponentContainer container
getContainer()
private UiDataBindingFactory dataBindingFactory
getDataBindingFactory()
private UiAccessKeyBinding accessKeyBinding
getAccessKeyBinding()
private DatatypeDetector datatypeDetector
getDatatypeDetector()
protected void doInitialize()
initialization
. It is called when AbstractComponent.initialize()
is
invoked for the first time. super.
AbstractComponent.doInitialize()
.doInitialize
in class AbstractLoggableComponent
public UiEventObserver getEventObserver()
UiEventObserver
.getEventObserver
in interface AttributeReadEventObserver
UiEventObserver
.public void setEventObserver(UiEventObserver eventObserver)
setEventObserver
in interface AttributeWriteEventObserver
eventObserver
- is the UiEventObserver
.public UiModeChanger getModeChanger()
UiModeChanger
instance to use.@Inject public void setModeChanger(UiModeChanger modeChanger)
modeChanger
- is the new UiModeChanger
to use.public UiConfiguration getConfiguration()
UiConfiguration
for this factory. It is intended to be read by
UiWidget
implementations to configure their look and feel.getConfiguration
in interface UiContext
UiConfiguration
.@Inject public void setConfiguration(UiConfiguration configuration)
configuration
- is the configuration to setpublic UiDispatcher getDispatcher()
getDispatcher
in interface UiContext
UiDispatcher
.@Inject public void setDispatcher(UiDispatcher dispatcher)
dispatcher
- is the dispatcher to setpublic UiDisplay getDisplay()
UiDisplay
e.g. to read the current screen resolution.getDisplay
in interface UiContext
UiDisplay
.@Inject public void setDisplay(UiDisplay display)
display
- is the display to setpublic RoleFactory getRoleFactory()
getRoleFactory
in interface UiContext
RoleFactory
.@Inject public void setRoleFactory(RoleFactory roleFactory)
roleFactory
- is the RoleFactory
instance to set (to inject).public UiWidgetFactory getWidgetFactory()
UiWidgetFactory
that is used to create
UiWidget
s.getWidgetFactory
in interface UiContext
UiWidgetFactory
.@Inject public void setWidgetFactory(UiWidgetFactory widgetFactory)
widgetFactory
- is the UiWidgetFactory
to Inject
.public UiPopupHelper getPopupHelper()
getPopupHelper
in interface UiContext
UiPopupHelper
.@Inject public void setPopupHelper(UiPopupHelper popupHelper)
popupHelper
- is the UiPopupHelper
to Inject
.public ComponentContainer getContainer()
getContainer
in interface UiContext
ComponentContainer
.@Inject public void setContainer(ComponentContainer container)
container
- is the ComponentContainer
to Inject
.public UiDataBindingFactory getDataBindingFactory()
UiDataBindingFactory
.@Inject public void setDataBindingFactory(UiDataBindingFactory dataBindingFactory)
dataBindingFactory
- is the UiDataBindingFactory
to Inject
.public UiAccessKeyBinding getAccessKeyBinding()
UiAccessKeyBinding
.@Inject public void setAccessKeyBinding(UiAccessKeyBinding accessKeyBinding)
accessKeyBinding
- is the UiAccessKeyBinding
to Inject
.public org.slf4j.Logger getLogger()
logger
for this component. getLogger
in class AbstractLoggableComponent
Logger
to be used by this component.public DatatypeDetector getDatatypeDetector()
DatatypeDetector
.@Inject public void setDatatypeDetector(DatatypeDetector datatypeDetector)
datatypeDetector
- is the datatypeDetector to setCopyright © 2001–2016 mmm-Team. All rights reserved.