Class AbstractEditorAreaComponentRenderer<T,​K>

    • Field Detail

      • SCLASS_READONLY_EDITOR

        public static final java.lang.String SCLASS_READONLY_EDITOR
        See Also:
        Constant Field Values
      • SCLASS_DESCRIPTION

        protected static final java.lang.String SCLASS_DESCRIPTION
        See Also:
        Constant Field Values
      • SCLASS_DESCRIPTION_LABEL

        protected static final java.lang.String SCLASS_DESCRIPTION_LABEL
        See Also:
        Constant Field Values
      • SCLASS_CELL_READ_RESTRICTED

        protected static final java.lang.String SCLASS_CELL_READ_RESTRICTED
        See Also:
        Constant Field Values
      • CURRENT_OBJECT_DOTLESS

        protected static final java.lang.String CURRENT_OBJECT_DOTLESS
        See Also:
        Constant Field Values
      • CURRENT_OBJECT

        protected static final java.lang.String CURRENT_OBJECT
      • SCLASS_EDITOR_CONTAINER

        protected static final java.lang.String SCLASS_EDITOR_CONTAINER
        See Also:
        Constant Field Values
      • SCLASS_CUSTOM_CONTAINER

        protected static final java.lang.String SCLASS_CUSTOM_CONTAINER
        See Also:
        Constant Field Values
      • ATTR_NOT_SAVED_OBJECT

        protected static final java.lang.String ATTR_NOT_SAVED_OBJECT
        See Also:
        Constant Field Values
      • MISSING_RENDERER_ERROR_MSG

        protected static final java.lang.String MISSING_RENDERER_ERROR_MSG
        See Also:
        Constant Field Values
      • DEFAULT_ENCRYPTED_EDITOR

        protected static final java.lang.String DEFAULT_ENCRYPTED_EDITOR
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractEditorAreaComponentRenderer

        public AbstractEditorAreaComponentRenderer()
    • Method Detail

      • resolveAttributeLabel

        protected java.lang.String resolveAttributeLabel​(Attribute attribute,
                                                         DataType genericType)
        If label key for attribute - Attribute.getLabel() - is not blank, method returns localized value for the label key. If label is an empty string, method returns an empty label. Otherwise it delegates to labelService.
        Returns:
        the label
      • resolveAttributePath

        protected java.lang.String resolveAttributePath​(java.lang.String attributeQualifier,
                                                        java.lang.String typeCode)
      • canChangeProperty

        protected boolean canChangeProperty​(DataAttribute attribute,
                                            java.lang.Object instance)
      • createCustom

        protected org.zkoss.zul.Html createCustom​(DataType genericType,
                                                  CustomElement customElement,
                                                  java.lang.Object object)
      • evaluateCustomDefinition

        protected java.lang.String evaluateCustomDefinition​(DataType genericType,
                                                            java.lang.String definition,
                                                            java.lang.Object object)
      • setPasswordEditorAsDefaultForEncryptedStrings

        protected void setPasswordEditorAsDefaultForEncryptedStrings​(Attribute attribute,
                                                                     DataAttribute genericAttribute)
      • extractParameterName

        protected java.lang.String extractParameterName​(Parameter parameter)
      • extractParameterValue

        protected java.lang.Object extractParameterValue​(Parameter parameter)
      • extractPropertiesList

        protected java.util.List<java.lang.String> extractPropertiesList​(java.lang.String value)
        Extract properties separated by comma ',' from value
        Parameters:
        value - - list of properties separated by comma ','
        Returns:
        list of extracted properties, empty list if no properites found
      • resolveEditorType

        protected java.lang.String resolveEditorType​(DataAttribute genericAttribute)
        Parameters:
        genericAttribute - an attribute for which the editor type must be determined
        Returns:
        resolved editor type
      • validateCustomElement

        protected void validateCustomElement​(java.lang.Class<?> componentClass,
                                             java.lang.String springId,
                                             java.lang.String clazz)
        Validates if the custom element (panel, tab or section) has either class or spring-bean configured.
      • resolveCustomComponentRenderer

        protected <C> WidgetComponentRenderer<org.zkoss.zk.ui.Component,​C,​java.lang.Object> resolveCustomComponentRenderer​(java.lang.String springId,
                                                                                                                                       java.lang.String className,
                                                                                                                                       java.lang.Class<C> clazz)
        Returns instance of WidgetComponentRenderer based on the beanID or class name.
      • createNotReadableAttributeLabelRenderer

        protected WidgetComponentRenderer<org.zkoss.zk.ui.HtmlBasedComponent,​Attribute,​java.lang.String> createNotReadableAttributeLabelRenderer()
      • renderNotReadableLabel

        protected org.zkoss.zk.ui.HtmlBasedComponent renderNotReadableLabel​(org.zkoss.zk.ui.HtmlBasedComponent attributeContainer,
                                                                            Attribute attribute,
                                                                            DataType dataType,
                                                                            java.lang.String labelValue)
      • resolveLabel

        protected java.lang.String resolveLabel​(java.lang.String labelKey)
        Returns localized label by key, or a "[labelKey]" if localized label was nor registered.
      • getAttributeDescription

        protected java.lang.String getAttributeDescription​(DataType genericType,
                                                           Attribute attribute)
      • getPropertyValueService

        protected PropertyValueService getPropertyValueService()
        Returns:
        the propertyValueService
      • setPropertyValueService

        public void setPropertyValueService​(PropertyValueService propertyValueService)
      • getCockpitUserService

        protected CockpitUserService getCockpitUserService()
        Returns:
        the cockpitUserService
      • setCockpitUserService

        public void setCockpitUserService​(CockpitUserService cockpitUserService)
      • getCockpitLocaleService

        protected CockpitLocaleService getCockpitLocaleService()
        Returns:
        the cockpitLocaleService
      • setCockpitLocaleService

        public void setCockpitLocaleService​(CockpitLocaleService cockpitLocaleService)
      • getLabelService

        protected LabelService getLabelService()
        Returns:
        the labelService
      • setLabelService

        public void setLabelService​(LabelService labelService)
      • setPermissionFacade

        public void setPermissionFacade​(PermissionFacade permissionFacade)
      • setObjectFacade

        public void setObjectFacade​(ObjectFacade objectFacade)
      • setWidgetRenderingUtils

        public void setWidgetRenderingUtils​(WidgetRenderingUtils widgetRenderingUtils)