Class UnboundSectionRenderer
- java.lang.Object
-
- com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,T,K>
-
- com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<AbstractSection,K>
-
- com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaSectionRenderer<java.lang.Object>
-
- com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer
-
- com.hybris.cockpitng.widgets.editorarea.sections.UnboundSectionRenderer
-
- All Implemented Interfaces:
AttributesComponentRenderer,NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,AbstractSection,java.lang.Object>,WidgetComponentRenderer<org.zkoss.zk.ui.Component,AbstractSection,java.lang.Object>
public class UnboundSectionRenderer extends DefaultEditorAreaSectionRenderer implements AttributesComponentRenderer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEDITOR_AREA_CONFIGURATIONDeprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaController.EDITOR_AREA_CONFIGURATIONinstead.-
Fields inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer
MODEL_CURRENT_OBJECT, MODEL_EDITORS_DETACHED, MODEL_ESSENTIAL_SECTION_IS_OPEN, SCLASS_CELL_LABEL_CONTAINER
-
Fields inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer
ATTR_NOT_SAVED_OBJECT, attributeDescriptionIconRenderer, CURRENT_OBJECT, CURRENT_OBJECT_DOTLESS, DEFAULT_ENCRYPTED_EDITOR, MISSING_RENDERER_ERROR_MSG, SCLASS_CELL_READ_RESTRICTED, SCLASS_CUSTOM_CONTAINER, SCLASS_DESCRIPTION, SCLASS_DESCRIPTION_LABEL, SCLASS_EDITOR, SCLASS_EDITOR_CONTAINER, SCLASS_LABEL, SCLASS_READONLY_EDITOR
-
-
Constructor Summary
Constructors Constructor Description UnboundSectionRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<java.lang.String>getRenderedQualifiers(Section section)java.util.Collection<java.lang.String>getRenderedQualifiers(WidgetInstanceManager widgetInstanceManager)The method should list all the attributes it renders.protected SectiongetUnboundSection(WidgetInstanceManager widgetInstanceManager)protected SectionprepareUnboundConfiguration(WidgetInstanceManager widgetInstanceManager, EditorArea config, DataType dataType)protected voidregisterDynamicQualifiers(WidgetInstanceManager widgetInstanceManager, java.util.Set<java.lang.String> usedQualifiers, java.lang.String springBean, java.lang.String clazz)voidrender(org.zkoss.zk.ui.Component parent, AbstractSection abstractSectionConfiguration, java.lang.Object object, DataType dataType, WidgetInstanceManager widgetInstanceManager)Renders a component inside parent, representing given data and complying to given ui configuration.protected java.util.Collection<? extends java.lang.String>resolveDynamicAttributes(WidgetInstanceManager widgetInstanceManager, java.lang.Object bean)voidsetInitiallyOpened(boolean initiallyOpened)voidsetNumberOfColumns(java.math.BigDecimal columns)-
Methods inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.DefaultEditorAreaSectionRenderer
calculateWidthPercentage, createAttributeEditorWithLabelRenderer, createAttributeRenderer, createCustomSectionRenderer, createSectionRenderer, getEditorAreaPanelRenderer, getValidationRenderer, isEssentialSection, prepareContainer, prepareContainerCaption, renderAttributes, renderAttributes, renderAttributesInPanels, renderCustomElement, renderDescription, setEditorAreaPanelRenderer, setSectionOpenAttribute, setValidationRenderer
-
Methods inherited from class com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer
buildEditor, canChangeProperty, createCustom, createEditor, createNotReadableAttributeLabelRenderer, evaluateCustomDefinition, extractParameterName, extractParameterValue, extractPropertiesList, getAttributeDescription, getCockpitLocaleService, getCockpitUserService, getEditAvailabilityProviderFactory, getEditorBuilder, getLabelService, getObjectFacade, getPermissionFacade, getPropertyValueService, getWidgetRenderingUtils, processEditorBeforeComposition, renderNotReadableLabel, resolveAttributeLabel, resolveAttributePath, resolveCustomComponentRenderer, resolveEditorType, resolveLabel, setAttributeDescriptionIconRenderer, setCockpitLocaleService, setCockpitUserService, setEditAvailabilityProviderFactory, setLabelService, setObjectFacade, setPasswordEditorAsDefaultForEncryptedStrings, setPermissionFacade, setPropertyValueService, setWidgetRenderingUtils, validateCustomElement
-
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
-
EDITOR_AREA_CONFIGURATION
@Deprecated(since="6.7", forRemoval=true) public static final java.lang.String EDITOR_AREA_CONFIGURATIONDeprecated, for removal: This API element is subject to removal in a future version.since 6.7 useDefaultEditorAreaController.EDITOR_AREA_CONFIGURATIONinstead.- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zk.ui.Component parent, AbstractSection abstractSectionConfiguration, java.lang.Object object, DataType dataType, WidgetInstanceManager widgetInstanceManager)Description copied from interface:WidgetComponentRendererRenders a component inside parent, representing given data and complying to given ui configuration. The data should be of give dataType. The renderer implementation could communicate with underlying widget via widgetInstanceManager.- Specified by:
renderin interfaceWidgetComponentRenderer<org.zkoss.zk.ui.Component,AbstractSection,java.lang.Object>- Overrides:
renderin classDefaultEditorAreaSectionRenderer- Parameters:
parent- parent component on which to renderabstractSectionConfiguration- configuration of rendererobject- data to be rendereddataType- meta information about type of data providedwidgetInstanceManager- widget manager in scope of which renderer is used
-
prepareUnboundConfiguration
protected Section prepareUnboundConfiguration(WidgetInstanceManager widgetInstanceManager, EditorArea config, DataType dataType)
-
registerDynamicQualifiers
protected void registerDynamicQualifiers(WidgetInstanceManager widgetInstanceManager, java.util.Set<java.lang.String> usedQualifiers, java.lang.String springBean, java.lang.String clazz)
-
resolveDynamicAttributes
protected java.util.Collection<? extends java.lang.String> resolveDynamicAttributes(WidgetInstanceManager widgetInstanceManager, java.lang.Object bean)
-
getRenderedQualifiers
protected java.util.Collection<java.lang.String> getRenderedQualifiers(Section section)
-
getUnboundSection
protected Section getUnboundSection(WidgetInstanceManager widgetInstanceManager)
-
getRenderedQualifiers
public java.util.Collection<java.lang.String> getRenderedQualifiers(WidgetInstanceManager widgetInstanceManager)
Description copied from interface:AttributesComponentRendererThe method should list all the attributes it renders.- Specified by:
getRenderedQualifiersin interfaceAttributesComponentRenderer- Parameters:
widgetInstanceManager- widget which requires qualifiers- Returns:
- list of used qualifiers
-
setNumberOfColumns
public void setNumberOfColumns(java.math.BigDecimal columns)
-
setInitiallyOpened
public void setInitiallyOpened(boolean initiallyOpened)
-
-