Class DefaultWidgetConfig<T extends Widget>
java.lang.Object
de.hybris.platform.cockpit.widgets.impl.DefaultWidgetConfig<T>
- All Implemented Interfaces:
WidgetConfig<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the controller context code.Returns the widget adapter.Returns the widget classReturns the widget controller.Returns the widget (view) model.Returns the widget renderer.Returns the widget component's CSS style class.Returns the widget's title.booleanReturns whether focusing is enabled or not.booleanReturns whether content lazy loading is enabled or not.voidsetControllerCtx(String controllerCtx) Sets the controller context code to be used by a created widget.voidsetFocusable(boolean focusable) Sets whether focusing is enabled or not.voidsetLazyLoadingEnabled(boolean enabled) Enables or disables content lazy loading.voidsetWidgetAdapter(WidgetAdapter adapter) Sets the widget adapter toadapter.voidsetWidgetClass(Class<T> widgetClass) Sets the widget class i.e.voidsetWidgetController(WidgetController widgetController) Sets the widget controller to be used by a created widget.voidsetWidgetModel(WidgetModel model) Sets the widget (view) model tomodelvoidsetWidgetRenderer(WidgetRenderer widgetRenderer) Sets the widget renderer to be used by a created widget.voidsetWidgetSclass(String sclass) Sets the CSS style class to be used by a created widget.voidsetWidgetTitle(String title) Sets the widget title totitle.
-
Constructor Details
-
DefaultWidgetConfig
public DefaultWidgetConfig()
-
-
Method Details
-
setFocusable
public void setFocusable(boolean focusable) Description copied from interface:WidgetConfigSets whether focusing is enabled or not.- Specified by:
setFocusablein interfaceWidgetConfig<T extends Widget>- Parameters:
focusable-truemeans focusing is enabled,falsemeans disabled
-
isFocusable
public boolean isFocusable()Description copied from interface:WidgetConfigReturns whether focusing is enabled or not.- Specified by:
isFocusablein interfaceWidgetConfig<T extends Widget>- Returns:
trueif focusing is enabled,falseotherwise
-
setWidgetTitle
Description copied from interface:WidgetConfigSets the widget title totitle.- Specified by:
setWidgetTitlein interfaceWidgetConfig<T extends Widget>- Parameters:
title- widget's title as either i3-label key or as direct value
-
getWidgetTitle
Description copied from interface:WidgetConfigReturns the widget's title. Note: This method will return the raw title as set by previous call toWidgetConfig.setWidgetTitle(String)i.e. in the case of an i3-label key, no evaluation is done.- Specified by:
getWidgetTitlein interfaceWidgetConfig<T extends Widget>- Returns:
- widget's title
-
getControllerCtx
Description copied from interface:WidgetConfigReturns the controller context code.- Specified by:
getControllerCtxin interfaceWidgetConfig<T extends Widget>- Returns:
- controller context code
-
setControllerCtx
Description copied from interface:WidgetConfigSets the controller context code to be used by a created widget.- Specified by:
setControllerCtxin interfaceWidgetConfig<T extends Widget>- Parameters:
controllerCtx- controller context code- See Also:
-
getWidgetController
Description copied from interface:WidgetConfigReturns the widget controller.- Specified by:
getWidgetControllerin interfaceWidgetConfig<T extends Widget>- Returns:
- widget controller
-
setWidgetController
Description copied from interface:WidgetConfigSets the widget controller to be used by a created widget.- Specified by:
setWidgetControllerin interfaceWidgetConfig<T extends Widget>- Parameters:
widgetController- widget controller
-
getWidgetClass
Description copied from interface:WidgetConfigReturns the widget class- Specified by:
getWidgetClassin interfaceWidgetConfig<T extends Widget>- Returns:
- widget class
-
setWidgetClass
Description copied from interface:WidgetConfigSets the widget class i.e. the class for which a new instance should be created.- Specified by:
setWidgetClassin interfaceWidgetConfig<T extends Widget>- Parameters:
widgetClass- widget class
-
getWidgetRenderer
Description copied from interface:WidgetConfigReturns the widget renderer.- Specified by:
getWidgetRendererin interfaceWidgetConfig<T extends Widget>- Returns:
- widget renderer
-
setWidgetRenderer
Description copied from interface:WidgetConfigSets the widget renderer to be used by a created widget.- Specified by:
setWidgetRendererin interfaceWidgetConfig<T extends Widget>- Parameters:
widgetRenderer- widget renderer
-
getWidgetModel
Description copied from interface:WidgetConfigReturns the widget (view) model.- Specified by:
getWidgetModelin interfaceWidgetConfig<T extends Widget>- Returns:
- widget's model or
nullif no model is available
-
setWidgetModel
Description copied from interface:WidgetConfigSets the widget (view) model tomodel- Specified by:
setWidgetModelin interfaceWidgetConfig<T extends Widget>- Parameters:
model- the widget model
-
setWidgetAdapter
Description copied from interface:WidgetConfigSets the widget adapter toadapter.- Specified by:
setWidgetAdapterin interfaceWidgetConfig<T extends Widget>- Parameters:
adapter- the widget adapter
-
getWidgetAdapter
Description copied from interface:WidgetConfigReturns the widget adapter.- Specified by:
getWidgetAdapterin interfaceWidgetConfig<T extends Widget>- Returns:
- the widget adapter or
nullif no adapter is available
-
setWidgetSclass
Description copied from interface:WidgetConfigSets the CSS style class to be used by a created widget.- Specified by:
setWidgetSclassin interfaceWidgetConfig<T extends Widget>- Parameters:
sclass- CSS style class
-
getWidgetSclass
Description copied from interface:WidgetConfigReturns the widget component's CSS style class.- Specified by:
getWidgetSclassin interfaceWidgetConfig<T extends Widget>- Returns:
- widget component's CSS style class
-
isLazyLoadingEnabled
public boolean isLazyLoadingEnabled()Description copied from interface:WidgetConfigReturns whether content lazy loading is enabled or not.- Specified by:
isLazyLoadingEnabledin interfaceWidgetConfig<T extends Widget>- Returns:
trueif lazy loading is enabled,falseotherwise
-
setLazyLoadingEnabled
public void setLazyLoadingEnabled(boolean enabled) Description copied from interface:WidgetConfigEnables or disables content lazy loading.- Specified by:
setLazyLoadingEnabledin interfaceWidgetConfig<T extends Widget>- Parameters:
enabled- lazy loading
-