T - widget typepublic interface WidgetConfig<T extends Widget>
WidgetFactory when creating widget
components.WidgetBrowserModel,
WidgetFactory| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getControllerCtx()
Returns the controller context code.
|
WidgetAdapter |
getWidgetAdapter()
Returns the widget adapter.
|
java.lang.Class<T> |
getWidgetClass()
Returns the widget class
|
WidgetController |
getWidgetController()
Returns the widget controller.
|
WidgetModel |
getWidgetModel()
Returns the widget (view) model.
|
WidgetRenderer |
getWidgetRenderer()
Returns the widget renderer.
|
java.lang.String |
getWidgetSclass()
Returns the widget component's CSS style class.
|
java.lang.String |
getWidgetTitle()
Returns the widget's title.
|
boolean |
isFocusable()
Returns whether focusing is enabled or not.
|
boolean |
isLazyLoadingEnabled()
Returns whether content lazy loading is enabled or not.
|
void |
setControllerCtx(java.lang.String controllerCtx)
Sets the controller context code to be used by a created widget.
|
void |
setFocusable(boolean focusable)
Sets whether focusing is enabled or not.
|
void |
setLazyLoadingEnabled(boolean enabled)
Enables or disables content lazy loading.
|
void |
setWidgetAdapter(WidgetAdapter adapter)
Sets the widget adapter to
adapter. |
void |
setWidgetClass(java.lang.Class<T> clazz)
Sets the widget class i.e.
|
void |
setWidgetController(WidgetController controller)
Sets the widget controller to be used by a created widget.
|
void |
setWidgetModel(WidgetModel model)
Sets the widget (view) model to
model |
void |
setWidgetRenderer(WidgetRenderer renderer)
Sets the widget renderer to be used by a created widget.
|
void |
setWidgetSclass(java.lang.String sclass)
Sets the CSS style class to be used by a created widget.
|
void |
setWidgetTitle(java.lang.String title)
Sets the widget title to
title. |
void setWidgetTitle(java.lang.String title)
title.title - widget's title as either i3-label key or as direct valuejava.lang.String getWidgetTitle()
setWidgetTitle(String) i.e.
in the case of an i3-label key, no evaluation is done.void setWidgetClass(java.lang.Class<T> clazz)
clazz - widget classjava.lang.Class<T> getWidgetClass()
void setWidgetRenderer(WidgetRenderer renderer)
renderer - widget rendererWidgetRenderer getWidgetRenderer()
void setWidgetController(WidgetController controller)
controller - widget controllerWidgetController getWidgetController()
void setControllerCtx(java.lang.String controllerCtx)
controllerCtx - controller context codeWidgetControllerjava.lang.String getControllerCtx()
void setWidgetModel(WidgetModel model)
modelmodel - the widget modelWidgetModel getWidgetModel()
null if no model is availablevoid setWidgetAdapter(WidgetAdapter adapter)
adapter.adapter - the widget adapterWidgetAdapter getWidgetAdapter()
null if no adapter is availablevoid setFocusable(boolean focusable)
focusable - true means focusing is enabled, false means disabledboolean isFocusable()
true if focusing is enabled, false otherwisejava.lang.String getWidgetSclass()
void setWidgetSclass(java.lang.String sclass)
sclass - CSS style classvoid setLazyLoadingEnabled(boolean enabled)
enabled - lazy loadingboolean isLazyLoadingEnabled()
true if lazy loading is enabled, false otherwiseCopyright © 2018 SAP SE. All Rights Reserved.