Class DefaultSummaryViewAttributeRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,Attribute,DATA>
-
- com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer<java.lang.Object>
-
- com.hybris.cockpitng.widgets.summaryview.renderer.DefaultSummaryViewAttributeRenderer
-
- All Implemented Interfaces:
NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,Attribute,java.lang.Object>,WidgetComponentRenderer<org.zkoss.zk.ui.Component,Attribute,java.lang.Object>
public class DefaultSummaryViewAttributeRenderer extends AbstractSummaryViewItemWithIconRenderer<java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_EDITOR_WRAPPER_TEMPLATEprotected static java.lang.StringSETTING_DEFAULT_EDITOR_WRAPPER_TEMPLATEDeprecated.since 6.6
-
Constructor Summary
Constructors Constructor Description DefaultSummaryViewAttributeRenderer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected EditorbuildEditor(Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, EditorBuilder editorBuilder)protected EditorcreateAttributeEditor(Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, java.lang.String typeCode, WidgetInstanceManager widgetInstanceManager)protected EditorBuildercreateEditorBuilder(Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, java.lang.String typeCode, WidgetInstanceManager widgetInstanceManager)protected EditorBuildercreateEditorBuilder(WidgetInstanceManager widgetInstanceManager)Deprecated.since 6.6protected EditorWrappingUtilsgetEditorWrappingUtils()protected java.lang.StringgetIconStatusSClass(org.zkoss.zk.ui.HtmlBasedComponent iconContainer, Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, DataType dataType, WidgetInstanceManager widgetInstanceManager)UseAbstractSummaryViewItemWithIconRenderer.SCLASS_PATTERN_ICONas a template for building icon's css class name such as yw-summaryview-online-status-Online.protected static booleanisEditorWrappingEnabled(TypedSettingsMap widgetSettings)Deprecated.since 6.6protected ParametermapParameter(Parameter parameter)protected java.util.Collection<Parameter>mapParameters(java.util.Collection<Parameter> parameters)protected voidrenderAttributeEditor(org.zkoss.zul.Div attributeContainer, Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, java.lang.String typeCode, WidgetInstanceManager widgetInstanceManager)protected voidrenderValue(org.zkoss.zul.Div attributeContainer, Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, DataType dataType, WidgetInstanceManager widgetInstanceManager)Used byAbstractSummaryViewItemWithIconRenderer.render(Component, Attribute, Object, DataType, WidgetInstanceManager)method for obtaining attribute representation.voidsetEditorWrappingUtils(EditorWrappingUtils editorWrappingUtils)protected java.lang.StringwrapEditorIfNecessary(java.lang.String editor, TypedSettingsMap widgetSettings)Deprecated.since 6.6-
Methods inherited from class com.hybris.cockpitng.widgets.summaryview.renderer.AbstractSummaryViewItemWithIconRenderer
canHandle, createContainer, createIcon, getAttributeLabelResolver, getIconStatusSClass, getLabelService, getPermissionFacade, hasAttributePermission, hasPermission, render, renderIcon, renderInvalidDataLabel, renderLabel, renderNoReadAccess, setAttributeLabelResolver, setLabelService, setPermissionFacade
-
Methods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
-
-
-
Field Detail
-
SETTING_DEFAULT_EDITOR_WRAPPER_TEMPLATE
@Deprecated protected static final java.lang.String SETTING_DEFAULT_EDITOR_WRAPPER_TEMPLATE
Deprecated.since 6.6- See Also:
DefaultEditorWrappingUtils, Constant Field Values
-
DEFAULT_EDITOR_WRAPPER_TEMPLATE
protected static final java.lang.String DEFAULT_EDITOR_WRAPPER_TEMPLATE
-
-
Method Detail
-
getIconStatusSClass
protected java.lang.String getIconStatusSClass(org.zkoss.zk.ui.HtmlBasedComponent iconContainer, Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, DataType dataType, WidgetInstanceManager widgetInstanceManager)Description copied from class:AbstractSummaryViewItemWithIconRendererUseAbstractSummaryViewItemWithIconRenderer.SCLASS_PATTERN_ICONas a template for building icon's css class name such as yw-summaryview-online-status-Online.- Specified by:
getIconStatusSClassin classAbstractSummaryViewItemWithIconRenderer<java.lang.Object>- Parameters:
iconContainer- component that will be marked with returned classattributeConfiguration- configuration of renderingdata- datadataAttribute- attribute to be rendereddataType- type code of datawidgetInstanceManager- instance manager of widget on which rendering takes place- Returns:
- css class which is added to each item's icon container
- See Also:
AbstractSummaryViewItemWithIconRenderer.getIconStatusSClass(String, String)
-
renderValue
protected void renderValue(org.zkoss.zul.Div attributeContainer, Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, DataType dataType, WidgetInstanceManager widgetInstanceManager)Description copied from class:AbstractSummaryViewItemWithIconRendererUsed byAbstractSummaryViewItemWithIconRenderer.render(Component, Attribute, Object, DataType, WidgetInstanceManager)method for obtaining attribute representation.- Specified by:
renderValuein classAbstractSummaryViewItemWithIconRenderer<java.lang.Object>- Parameters:
attributeContainer- attribute representation can be appended to this containerattributeConfiguration- configuration of renderingdata- datadataAttribute- attribute to be rendereddataType- type code of datawidgetInstanceManager- widget instance manager
-
renderAttributeEditor
protected void renderAttributeEditor(org.zkoss.zul.Div attributeContainer, Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, java.lang.String typeCode, WidgetInstanceManager widgetInstanceManager)
-
createAttributeEditor
protected Editor createAttributeEditor(Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, java.lang.String typeCode, WidgetInstanceManager widgetInstanceManager)
-
mapParameters
protected java.util.Collection<Parameter> mapParameters(java.util.Collection<Parameter> parameters)
-
createEditorBuilder
@Deprecated protected EditorBuilder createEditorBuilder(WidgetInstanceManager widgetInstanceManager)
Deprecated.since 6.6
-
createEditorBuilder
protected EditorBuilder createEditorBuilder(Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, java.lang.String typeCode, WidgetInstanceManager widgetInstanceManager)
-
buildEditor
protected Editor buildEditor(Attribute attributeConfiguration, java.lang.Object data, DataAttribute dataAttribute, EditorBuilder editorBuilder)
-
wrapEditorIfNecessary
@Deprecated protected java.lang.String wrapEditorIfNecessary(java.lang.String editor, TypedSettingsMap widgetSettings)Deprecated.since 6.6- See Also:
EditorWrappingUtils
-
isEditorWrappingEnabled
@Deprecated protected static boolean isEditorWrappingEnabled(TypedSettingsMap widgetSettings)
Deprecated.since 6.6- See Also:
EditorWrappingUtils
-
getEditorWrappingUtils
protected EditorWrappingUtils getEditorWrappingUtils()
-
setEditorWrappingUtils
public void setEditorWrappingUtils(EditorWrappingUtils editorWrappingUtils)
-
-