Class CMSContentEditorInjector

  • All Implemented Interfaces:
    ComponentInjector

    public class CMSContentEditorInjector
    extends java.lang.Object
    implements ComponentInjector
    Creates and injects CMS Cockpit ZK components for the dynamic creation of template based content editors.

    Note: Currently changes made to nested referenced items are automatically persisted, no matter the value of the autoPersist flag. The autoPersist flag only concerns attributes of the opened content element.

    • Field Detail

      • EDITOR_ENTRY_READ_ONLY

        protected static final java.lang.String EDITOR_ENTRY_READ_ONLY
        See Also:
        Constant Field Values
      • CREATE_MODE_PARAM

        protected static final java.lang.String CREATE_MODE_PARAM
        See Also:
        Constant Field Values
      • SELECT_MODE_PARAM

        protected static final java.lang.String SELECT_MODE_PARAM
        See Also:
        Constant Field Values
      • SKIP_CUSTOM_EDITOR_PARAM

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

      • CMSContentEditorInjector

        public CMSContentEditorInjector()
    • Method Detail

      • setAutoPersist

        public void setAutoPersist​(boolean autoPersist)
      • isAutoPersist

        public boolean isAutoPersist()
      • setGroupCollections

        public void setGroupCollections​(boolean groupCollections)
      • isGroupCollections

        public boolean isGroupCollections()
      • setHideReadOnly

        public void setHideReadOnly​(boolean hideReadOnly)
      • isHideReadOnly

        public boolean isHideReadOnly()
      • setHideEmpty

        public void setHideEmpty​(boolean hideEmpty)
      • isHideEmpty

        public boolean isHideEmpty()
      • isAddEnabled

        public boolean isAddEnabled()
      • setAddEnabled

        public void setAddEnabled​(boolean addEnabled)
      • isCreateEnabled

        public boolean isCreateEnabled()
      • setCreateEnabled

        public void setCreateEnabled​(boolean createEnabled)
      • getRootComponent

        public org.zkoss.zk.ui.HtmlBasedComponent getRootComponent()
      • setRootComponent

        public void setRootComponent​(org.zkoss.zk.ui.HtmlBasedComponent rootComponent)
      • injectComponent

        public void injectComponent​(org.zkoss.zk.ui.HtmlBasedComponent parent,
                                    java.util.Map<java.lang.String,​? extends java.lang.Object> params)
        Specified by:
        injectComponent in interface ComponentInjector
      • injectGeneralGroup

        protected void injectGeneralGroup​(org.zkoss.zk.ui.HtmlBasedComponent parent,
                                          java.util.Map<java.lang.String,​? extends java.lang.Object> params)
      • isGeneralEmpty

        protected boolean isGeneralEmpty()
      • injectProperty

        protected void injectProperty​(org.zkoss.zk.ui.HtmlBasedComponent parent,
                                      java.util.Map<java.lang.String,​? extends java.lang.Object> params)
      • injectList

        protected void injectList​(org.zkoss.zk.ui.HtmlBasedComponent parent,
                                  java.util.Map<java.lang.String,​? extends java.lang.Object> params)
      • injectReference

        protected void injectReference​(TypedObject referenceValue,
                                       org.zkoss.zk.ui.HtmlBasedComponent parent,
                                       java.util.List<org.zkoss.zk.ui.HtmlBasedComponent> captionComponents)
      • getTypeService

        protected TypeService getTypeService()
      • setLocationInfoObject

        public void setLocationInfoObject​(java.lang.Object locationInfoObject)
      • getLocationInfoObject

        public java.lang.Object getLocationInfoObject()
      • getPropertyListComparator

        protected java.util.Comparator<PropertyDescriptor> getPropertyListComparator()
      • setReferenceInjector

        public void setReferenceInjector​(ReferenceInjector referenceInjector)
      • setPropertyInjector

        public void setPropertyInjector​(PropertyInjector propertyInjector)
      • loadMissingValues

        protected void loadMissingValues​(java.util.Map<java.lang.String,​? extends java.lang.Object> params)
        Method checks whether we would display indirect property - if so then we have to refresh current ObjectValueContainer and load this property there.

        Note:
        When we would display e.g. BannerComponent.page.label - we have to check whether this property possess corresponding ObjectValueHandler within current ObjectValueContainer if no we have to load it.

        Parameters:
        params - current creation parameter
        See Also:
        ObjectValueContainer
      • getLoadLanguages

        protected java.util.Set<java.lang.String> getLoadLanguages()