public interface WidgetContainer<T extends Widget>
initialize(Map)) as well as managing widget focus and cleanup process.
Example: Creating and loading a Widget.WidgetConfig,
Widget,
WidgetFactory| Modifier and Type | Method and Description |
|---|---|
void |
addCockpitEventAcceptor(CockpitEventAcceptor acceptor)
Registers the
CockpitEventAcceptor acceptor with this widget container. |
void |
cleanup()
Performs widget cleanup i.e.
|
void |
focusWidget(java.lang.String widgetCode)
Focuses the widget associated with the specified widget code.
|
java.lang.String |
getFocusedWidgetCode()
Returns the widget code of the currently focused widget.
|
T |
getWidget(java.lang.String widgetCode)
Returns the widget associated with the specified widget code.
|
WidgetFactory |
getWidgetFactory()
Returns the
WidgetFactory used for creating widgets. |
java.util.Map<java.lang.String,T> |
initialize(java.util.Map<java.lang.String,WidgetConfig> widgetMap)
Initializes this container i.e.
|
void |
removeCockpitEventAcceptor(CockpitEventAcceptor acceptor)
Unregisters the
CockpitEventAcceptor acceptor with this widget container. |
void |
setWidgetFactory(WidgetFactory widgetFactory)
Sets the
WidgetFactory used for creating widgets. |
java.util.Map<java.lang.String,T> initialize(java.util.Map<java.lang.String,WidgetConfig> widgetMap)
WidgetConfig map.widgetMap - map containing widget codes and configurations used when creating the widgetsvoid cleanup()
T getWidget(java.lang.String widgetCode)
widgetCode - widget codejava.lang.String getFocusedWidgetCode()
void focusWidget(java.lang.String widgetCode)
widgetCode - widget codevoid setWidgetFactory(WidgetFactory widgetFactory)
WidgetFactory used for creating widgets.widgetFactory - the widget factoryWidgetFactory getWidgetFactory()
WidgetFactory used for creating widgets.void addCockpitEventAcceptor(CockpitEventAcceptor acceptor)
CockpitEventAcceptor acceptor with this widget container.acceptor - the event acceptor to registervoid removeCockpitEventAcceptor(CockpitEventAcceptor acceptor)
CockpitEventAcceptor acceptor with this widget container.acceptor - the event acceptor to unregisterCopyright © 2018 SAP SE. All Rights Reserved.