Class CMSContentEditorSectionComponent

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
      • Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent

        org.zkoss.zk.ui.AbstractComponent.Children
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String EMPTY_TEXT  
      protected org.zkoss.zul.Div groupBoxContent  
      protected static java.lang.String RESIZE_USER_EVENT  
      protected org.zkoss.zul.Div sectionGroupBox  
      protected static java.lang.String SPLITTER_PARENT_SCLASS  
      protected static java.lang.String SPLITTER_SCLASS  
      protected StatusPanelComponent statusPanel  
      protected static java.lang.String STRUCTURE_EDIT_SECTION  
      • Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        _zclass
      • Fields inherited from interface org.zkoss.zk.ui.Component

        APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
      • Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl

        AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.zkoss.zul.Div createSectionView()  
      protected ContentEditorConfiguration getContentEditorConfiguration​(ObjectTemplate objectTemplate)  
      DefaultContentEditorRenderer getEditorRenderer​(ContentEditorConfiguration configuration)  
      protected java.lang.String getParsedVelocityTemplateString​(java.lang.String velocityTemplate)  
      ContentEditorBrowserSectionModel getSectionModel()  
      protected UIConfigurationService getUIConfigurationService()  
      boolean initialize()
      Initializes this browser component i.e.
      protected boolean isReloadNeeded​(ObjectTemplate objectTemplate)  
      protected void renderEditor​(org.zkoss.zk.ui.HtmlBasedComponent parent)  
      void setActiveItem​(TypedObject activeItem)
      Sets the active item of this browser component to activeItem.
      boolean update()
      Updates this browser component i.e.
      void updateActiveItems()
      Re-renders the currently active item(s).
      void updateItem​(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
      Re-renders the items specified.
      void updateSelectedItems()
      Re-renders the currently selected item(s).
      • Methods inherited from class org.zkoss.zul.Div

        getAlign, renderProperties, setAlign
      • Methods inherited from class org.zkoss.zul.impl.XulElement

        clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
      • Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
      • Methods inherited from class org.zkoss.zk.ui.AbstractComponent

        addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.zkoss.zk.ui.Component

        addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
      • Methods inherited from interface org.zkoss.zul.api.Div

        getAlign, setAlign
      • Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent

        focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex
      • Methods inherited from interface org.zkoss.zk.ui.ext.Scope

        addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
      • Methods inherited from interface org.zkoss.zul.impl.api.XulElement

        getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
    • Field Detail

      • STRUCTURE_EDIT_SECTION

        protected static final java.lang.String STRUCTURE_EDIT_SECTION
        See Also:
        Constant Field Values
      • SPLITTER_PARENT_SCLASS

        protected static final java.lang.String SPLITTER_PARENT_SCLASS
        See Also:
        Constant Field Values
      • SPLITTER_SCLASS

        protected static final java.lang.String SPLITTER_SCLASS
        See Also:
        Constant Field Values
      • RESIZE_USER_EVENT

        protected static final java.lang.String RESIZE_USER_EVENT
        See Also:
        Constant Field Values
      • sectionGroupBox

        protected transient org.zkoss.zul.Div sectionGroupBox
      • groupBoxContent

        protected transient org.zkoss.zul.Div groupBoxContent
    • Method Detail

      • initialize

        public boolean initialize()
        Description copied from interface: CockpitComponent
        Initializes this browser component i.e. creates all required components, adds event listeners etc.
        Returns:
        true if initialization was successful, false otherwise
      • createSectionView

        protected org.zkoss.zul.Div createSectionView()
      • setActiveItem

        public void setActiveItem​(TypedObject activeItem)
        Description copied from interface: CockpitComponent
        Sets the active item of this browser component to activeItem.
        Parameters:
        activeItem - the new active item
      • renderEditor

        protected void renderEditor​(org.zkoss.zk.ui.HtmlBasedComponent parent)
      • isReloadNeeded

        protected boolean isReloadNeeded​(ObjectTemplate objectTemplate)
      • update

        public boolean update()
        Description copied from interface: CockpitComponent
        Updates this browser component i.e. synchronizes its view width the underlying model.
        Returns:
        true if this browser was successfully updated, false otherwise
      • getParsedVelocityTemplateString

        protected java.lang.String getParsedVelocityTemplateString​(java.lang.String velocityTemplate)
      • updateActiveItems

        public void updateActiveItems()
        Description copied from interface: CockpitComponent
        Re-renders the currently active item(s).
      • updateItem

        public void updateItem​(TypedObject item,
                               java.util.Set<PropertyDescriptor> modifiedProperties)
        Description copied from interface: CockpitComponent
        Re-renders the items specified.
        Parameters:
        item - the item to be re-rendered
        modifiedProperties - modified properties
      • updateSelectedItems

        public void updateSelectedItems()
        Description copied from interface: CockpitComponent
        Re-renders the currently selected item(s).