Class CMSContentEditorSectionComponent
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Div
-
- de.hybris.platform.cockpit.components.contentbrowser.AbstractSectionComponent
-
- de.hybris.platform.cockpit.components.contentbrowser.AbstractBrowserSectionComponent
-
- de.hybris.platform.cmscockpit.components.contentbrowser.CMSContentEditorSectionComponent
-
- All Implemented Interfaces:
BrowserComponent,BrowserSectionComponent,CockpitComponent,SectionComponent,java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.api.HtmlBasedComponent,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl,org.zkoss.zul.api.Div,org.zkoss.zul.impl.api.XulElement
public class CMSContentEditorSectionComponent extends AbstractBrowserSectionComponent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringEMPTY_TEXTprotected org.zkoss.zul.DivgroupBoxContentprotected static java.lang.StringRESIZE_USER_EVENTprotected org.zkoss.zul.DivsectionGroupBoxprotected static java.lang.StringSPLITTER_PARENT_SCLASSprotected static java.lang.StringSPLITTER_SCLASSprotected StatusPanelComponentstatusPanelprotected static java.lang.StringSTRUCTURE_EDIT_SECTION
-
Constructor Summary
Constructors Constructor Description CMSContentEditorSectionComponent(ContentEditorBrowserSectionModel sectionModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.zkoss.zul.DivcreateSectionView()protected ContentEditorConfigurationgetContentEditorConfiguration(ObjectTemplate objectTemplate)DefaultContentEditorRenderergetEditorRenderer(ContentEditorConfiguration configuration)protected java.lang.StringgetParsedVelocityTemplateString(java.lang.String velocityTemplate)ContentEditorBrowserSectionModelgetSectionModel()protected UIConfigurationServicegetUIConfigurationService()booleaninitialize()Initializes this browser component i.e.protected booleanisReloadNeeded(ObjectTemplate objectTemplate)protected voidrenderEditor(org.zkoss.zk.ui.HtmlBasedComponent parent)voidsetActiveItem(TypedObject activeItem)Sets the active item of this browser component toactiveItem.booleanupdate()Updates this browser component i.e.voidupdateActiveItems()Re-renders the currently active item(s).voidupdateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)Re-renders the items specified.voidupdateSelectedItems()Re-renders the currently selected item(s).-
Methods inherited from class de.hybris.platform.cockpit.components.contentbrowser.AbstractBrowserSectionComponent
getModel, setModel
-
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.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
-
-
-
-
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
-
EMPTY_TEXT
protected static final java.lang.String EMPTY_TEXT
- See Also:
- Constant Field Values
-
sectionGroupBox
protected transient org.zkoss.zul.Div sectionGroupBox
-
groupBoxContent
protected transient org.zkoss.zul.Div groupBoxContent
-
statusPanel
protected transient StatusPanelComponent statusPanel
-
-
Constructor Detail
-
CMSContentEditorSectionComponent
public CMSContentEditorSectionComponent(ContentEditorBrowserSectionModel sectionModel)
-
-
Method Detail
-
getSectionModel
public ContentEditorBrowserSectionModel getSectionModel()
- Specified by:
getSectionModelin interfaceSectionComponent- Overrides:
getSectionModelin classAbstractBrowserSectionComponent
-
initialize
public boolean initialize()
Description copied from interface:CockpitComponentInitializes this browser component i.e. creates all required components, adds event listeners etc.- Returns:
trueif initialization was successful,falseotherwise
-
createSectionView
protected org.zkoss.zul.Div createSectionView()
-
setActiveItem
public void setActiveItem(TypedObject activeItem)
Description copied from interface:CockpitComponentSets the active item of this browser component toactiveItem.- 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:CockpitComponentUpdates this browser component i.e. synchronizes its view width the underlying model.- Returns:
trueif this browser was successfully updated,falseotherwise
-
getContentEditorConfiguration
protected ContentEditorConfiguration getContentEditorConfiguration(ObjectTemplate objectTemplate)
-
getUIConfigurationService
protected UIConfigurationService getUIConfigurationService()
-
getParsedVelocityTemplateString
protected java.lang.String getParsedVelocityTemplateString(java.lang.String velocityTemplate)
-
updateActiveItems
public void updateActiveItems()
Description copied from interface:CockpitComponentRe-renders the currently active item(s).
-
updateItem
public void updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
Description copied from interface:CockpitComponentRe-renders the items specified.- Parameters:
item- the item to be re-renderedmodifiedProperties- modified properties
-
updateSelectedItems
public void updateSelectedItems()
Description copied from interface:CockpitComponentRe-renders the currently selected item(s).
-
getEditorRenderer
public DefaultContentEditorRenderer getEditorRenderer(ContentEditorConfiguration configuration)
-
-