Class ClassificationTabEditorAreaRenderer
java.lang.Object
com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer<org.zkoss.zk.ui.Component,T,K>
com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaComponentRenderer<com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab,K>
com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaTabRenderer<ProductModel>
de.hybris.platform.platformbackoffice.classification.ClassificationTabEditorAreaRenderer
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.common.NotifyingWidgetComponentRenderer<org.zkoss.zk.ui.Component,,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab, ProductModel> com.hybris.cockpitng.widgets.common.WidgetComponentRenderer<org.zkoss.zk.ui.Component,com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab, ProductModel>
- Direct Known Subclasses:
ConfigurableClassificationTabEditorAreaRenderer
public class ClassificationTabEditorAreaRenderer
extends com.hybris.cockpitng.widgets.editorarea.renderer.impl.AbstractEditorAreaTabRenderer<ProductModel>
Bean for rendering tab with classification data for given object in editor area
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic final Stringprotected static final StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyInitiallyOpened(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.CustomTab configuration) protected com.hybris.cockpitng.components.EditorcreateEditor(Feature feature, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, boolean canWriteFeature) protected org.zkoss.zul.Hboxprotected org.zkoss.zul.HboxcreateNewRowIfNeeded(org.zkoss.zul.Hbox hbox, org.zkoss.zk.ui.Component parent, int noOfColumns, int currentCellIndex) protected voidcreateSectionNameLabelSuffix(org.zkoss.zul.Groupbox sectionGroupBox) protected Set<ClassificationClassModel>getAllReadableClassificationClasses(Set<ClassificationClassModel> classificationClasses) protected Stringprotected Map<ClassificationClassModel,List<Feature>> getFeaturesGroupedByClassificationClassMap(FeatureList features, Set<ClassificationClassModel> allReadableClassificationClasses) protected Set<ClassificationClassModel>getFilteredClassificationClasses(FeatureList features) protected voidifRangeAllowOneValue(Feature feature, com.hybris.cockpitng.components.Editor editor) protected voidpostEvent(org.zkoss.zk.ui.event.Event event) protected booleanprepareAndRenderFeatures(ProductModel product, org.zkoss.zk.ui.Component component, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) protected Map<ClassificationClassModel,List<Feature>> prepareDataForRendering(ProductModel product) voidrender(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab configuration, ProductModel product, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) protected voidrenderAttributes(org.zkoss.zul.Groupbox section, List<Feature> features, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) protected voidrenderEmptyTab(org.zkoss.zk.ui.Component component, String label_key) protected voidrenderNoAttributeEmptyTab(org.zkoss.zk.ui.Component component) protected voidrenderSection(ClassificationClassModel classificationClassModel, List<Feature> features, org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) protected voidsaveFeatures(ProductModel productModel, Map<String, Feature> modifiedProductFeatures) voidsetCatalogVersionService(CatalogVersionService catalogVersionService) voidsetClassificationClassComparator(ClassificationClassComparator classificationClassComparator) voidsetClassificationSectionNameProvider(ClassificationSectionNameProvider classificationSectionNameProvider) voidsetClassificationService(ClassificationService classificationService) voidsetFeatureComparator(FeatureComparator featureComparator) voidsetFeaturePeristanceHandler(FeaturePeristanceHandler featurePeristanceHandler) voidsetUserService(UserService userService) 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, validateCustomElementMethods inherited from class com.hybris.cockpitng.widgets.common.AbstractWidgetComponentRenderer
addRendererListener, fireComponentRendered, fireComponentRendered, fireComponentRendered, removeRendererListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hybris.cockpitng.widgets.common.WidgetComponentRenderer
render
-
Field Details
-
EDITED_PROPERTY_QUALIFIER
- See Also:
-
LABEL_NO_READ_ACCESS
- See Also:
-
CAN_CHANGE_CURRENT_PRODUCT_INSTANCE
- See Also:
-
-
Constructor Details
-
ClassificationTabEditorAreaRenderer
public ClassificationTabEditorAreaRenderer()
-
-
Method Details
-
render
public void render(org.zkoss.zk.ui.Component component, com.hybris.cockpitng.core.config.impl.jaxb.editorarea.AbstractTab configuration, ProductModel product, com.hybris.cockpitng.dataaccess.facades.type.DataType dataType, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) -
applyInitiallyOpened
protected void applyInitiallyOpened(com.hybris.cockpitng.core.config.impl.jaxb.editorarea.CustomTab configuration) -
prepareAndRenderFeatures
protected boolean prepareAndRenderFeatures(ProductModel product, org.zkoss.zk.ui.Component component, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) -
renderNoAttributeEmptyTab
protected void renderNoAttributeEmptyTab(org.zkoss.zk.ui.Component component) -
renderSection
protected void renderSection(ClassificationClassModel classificationClassModel, List<Feature> features, org.zkoss.zk.ui.Component parent, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager) -
createSectionNameLabelSuffix
protected void createSectionNameLabelSuffix(org.zkoss.zul.Groupbox sectionGroupBox) -
renderAttributes
-
createHbox
protected org.zkoss.zul.Hbox createHbox() -
createNewRowIfNeeded
protected org.zkoss.zul.Hbox createNewRowIfNeeded(org.zkoss.zul.Hbox hbox, org.zkoss.zk.ui.Component parent, int noOfColumns, int currentCellIndex) -
createEditor
protected com.hybris.cockpitng.components.Editor createEditor(Feature feature, com.hybris.cockpitng.engine.WidgetInstanceManager widgetInstanceManager, boolean canWriteFeature) -
ifRangeAllowOneValue
-
saveFeatures
-
renderEmptyTab
-
getEmptyAttributesSectionName
-
prepareDataForRendering
-
getFeaturesGroupedByClassificationClassMap
protected Map<ClassificationClassModel,List<Feature>> getFeaturesGroupedByClassificationClassMap(FeatureList features, Set<ClassificationClassModel> allReadableClassificationClasses) -
getFilteredClassificationClasses
-
getAllReadableClassificationClasses
protected Set<ClassificationClassModel> getAllReadableClassificationClasses(Set<ClassificationClassModel> classificationClasses) -
postEvent
protected void postEvent(org.zkoss.zk.ui.event.Event event) -
setClassificationService
-
getClassificationService
-
setCatalogVersionService
-
setUserService
-
setClassificationClassComparator
public void setClassificationClassComparator(ClassificationClassComparator classificationClassComparator) -
setFeatureComparator
-
setFeaturePeristanceHandler
-
getClassificationSectionNameProvider
-
setClassificationSectionNameProvider
public void setClassificationSectionNameProvider(ClassificationSectionNameProvider classificationSectionNameProvider)
-