Class ContextAreaCommentTreeComponent
- 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.AbstractBrowserComponent
-
- de.hybris.platform.cockpit.components.contentbrowser.AbstractMainAreaBrowserComponent
-
- de.hybris.platform.cockpit.components.contentbrowser.CommentMainAreaBrowserComponent
-
- de.hybris.platform.cockpit.components.mvc.commentlayer.AbstractCommentTreeContextComponent
-
- de.hybris.platform.cockpit.components.mvc.commentlayer.ContextAreaCommentTreeComponent
-
- All Implemented Interfaces:
BrowserComponent,CockpitComponent,DesktopRemovalAwareComponent,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 ContextAreaCommentTreeComponent extends AbstractCommentTreeContextComponent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOMMENT_LAYER_AWARE_MODEL-
Fields inherited from class de.hybris.platform.cockpit.components.contentbrowser.CommentMainAreaBrowserComponent
groupboxList, IMG_ATTACHMENT, IMG_USER_DUMMY_SMALL, mainDiv
-
Fields inherited from class de.hybris.platform.cockpit.components.contentbrowser.AbstractMainAreaBrowserComponent
EMPTY_MESSAGE, lastResultType, listComponentModel, loginService, mainArea, resultModel, uiConfigurationService
-
Fields inherited from class de.hybris.platform.cockpit.components.contentbrowser.AbstractBrowserComponent
ADV_QUERY_BTN_ACTIVE_IMG, ADV_QUERY_BTN_IMG, BROWSER_TOOLBAR_SCLASS, CLOSE_BTN_IMG, CONTENT_BROWSER_GB_SCLASS, CONTENT_BROWSER_STICKY_GB_SCLASS, DUPLICATE_BTN_IMG, initialized, MAIN_AREA_BL_SCLASS, MINIMIZE_BTN_IMG, SAVE_QUERY_BTN_IMG, SEARCH_MAGNIFIER_BTN_IMG, SPLIT_ACTIVE_BTN_IMG, SPLIT_INACTIVE_BTN_IMG
-
-
Constructor Summary
Constructors Constructor Description ContextAreaCommentTreeComponent(ContextAreaCommentTreeController controller, ContextAreaCommentTreeModel model, AbstractContentBrowser contentBrowser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddEventListeners(AdvancedGroupbox groupbox, AbstractCommentModel abstractComment)protected voidcleanRemovedComments()protected voidextendContextMap(java.util.Map contextMap)ActionColumnConfigurationgetCommentActionConfiguration()CommentLayerServicegetCommentLayerService()java.util.List<TypedObject>getComments()ContextAreaCommentTreeModelgetModel()protected TooltipRenderergetTooltipRenderer()protected voidmarkGroupBoxSelected(AdvancedGroupbox groupbox, AbstractCommentModel commentItemModel)voidopenRecord(AbstractCommentModel abstractComment)protected voidrenderCommentDetailsBox(org.zkoss.zul.Div groupboxContentDiv, CommentModel comment)org.zkoss.zul.DivrenderCommentsTree()protected voidrenderCommentTextBox(org.zkoss.zul.Div groupboxContentDiv, CommentModel commentModel)protected AdvancedGroupboxrenderGroupbox(AbstractCommentModel commentItemModel, org.zkoss.zul.Div contentContainer)protected voidrenderGroupboxHeaderClosed(AbstractCommentModel commentItemModel, org.zkoss.zul.Hbox commentHeader)protected voidrenderGroupboxHeaderOpen(AbstractCommentModel commentItemModel, org.zkoss.zul.Hbox commentHeader)protected voidrenderLabelDiv(org.zkoss.zul.Hbox commentHeader, AbstractCommentModel commentItemModel)protected AdvancedGroupboxrenderSingleComment(CommentModel commentModel, org.zkoss.zul.Div parent)protected AdvancedGroupboxrenderSingleReply(ReplyModel replyModel, org.zkoss.zul.Div parent)protected voidrenderStatusSection(org.zkoss.zul.Hbox commentHeader, AbstractCommentModel abstractComment)booleanupdate()Updates this browser component i.e.-
Methods inherited from class de.hybris.platform.cockpit.components.mvc.commentlayer.AbstractCommentTreeContextComponent
initialize
-
Methods inherited from class de.hybris.platform.cockpit.components.contentbrowser.CommentMainAreaBrowserComponent
cleanup, createMainArea, createSeparator, createViewItemImage, getCockpitCommentService, getCurrentItemView, getGroupboxList, getTypeService, getValueService, markAsRead, renderAttachmentDiv, renderDetailsContainer, renderGroupboxHeaderIcons, renderReplies, renderView, setActiveItem, updateActiveItems, updateItem, updateSelectedItems
-
Methods inherited from class de.hybris.platform.cockpit.components.contentbrowser.AbstractMainAreaBrowserComponent
createTableController, desktopRemoved, detach, getLoginService, getResultModel, getRootType, getTableModel, getUIConfigurationService, loadListModel, resetSelection, resize, setParent, setTableModel, updateResult
-
Methods inherited from class de.hybris.platform.cockpit.components.contentbrowser.AbstractBrowserComponent
getContentBrowser, setModel, updateItem
-
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
focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, 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, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, 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, 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
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, 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, 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
-
COMMENT_LAYER_AWARE_MODEL
public static final java.lang.String COMMENT_LAYER_AWARE_MODEL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContextAreaCommentTreeComponent
public ContextAreaCommentTreeComponent(ContextAreaCommentTreeController controller, ContextAreaCommentTreeModel model, AbstractContentBrowser contentBrowser)
-
-
Method Detail
-
getComments
public java.util.List<TypedObject> getComments()
- Specified by:
getCommentsin classAbstractCommentTreeContextComponent
-
renderCommentsTree
public org.zkoss.zul.Div renderCommentsTree()
-
renderStatusSection
protected void renderStatusSection(org.zkoss.zul.Hbox commentHeader, AbstractCommentModel abstractComment)- Overrides:
renderStatusSectionin classCommentMainAreaBrowserComponent
-
renderCommentDetailsBox
protected void renderCommentDetailsBox(org.zkoss.zul.Div groupboxContentDiv, CommentModel comment)- Overrides:
renderCommentDetailsBoxin classCommentMainAreaBrowserComponent
-
renderCommentTextBox
protected void renderCommentTextBox(org.zkoss.zul.Div groupboxContentDiv, CommentModel commentModel)- Overrides:
renderCommentTextBoxin classCommentMainAreaBrowserComponent
-
renderGroupboxHeaderClosed
protected void renderGroupboxHeaderClosed(AbstractCommentModel commentItemModel, org.zkoss.zul.Hbox commentHeader)
- Overrides:
renderGroupboxHeaderClosedin classCommentMainAreaBrowserComponent
-
renderGroupboxHeaderOpen
protected void renderGroupboxHeaderOpen(AbstractCommentModel commentItemModel, org.zkoss.zul.Hbox commentHeader)
- Overrides:
renderGroupboxHeaderOpenin classCommentMainAreaBrowserComponent
-
markGroupBoxSelected
protected void markGroupBoxSelected(AdvancedGroupbox groupbox, AbstractCommentModel commentItemModel)
- Overrides:
markGroupBoxSelectedin classCommentMainAreaBrowserComponent
-
getModel
public ContextAreaCommentTreeModel getModel()
- Specified by:
getModelin interfaceBrowserComponent- Overrides:
getModelin classAbstractCommentTreeContextComponent
-
renderLabelDiv
protected void renderLabelDiv(org.zkoss.zul.Hbox commentHeader, AbstractCommentModel commentItemModel)- Overrides:
renderLabelDivin classCommentMainAreaBrowserComponent
-
addEventListeners
protected void addEventListeners(AdvancedGroupbox groupbox, AbstractCommentModel abstractComment)
- Overrides:
addEventListenersin classCommentMainAreaBrowserComponent
-
renderSingleReply
protected AdvancedGroupbox renderSingleReply(ReplyModel replyModel, org.zkoss.zul.Div parent)
- Overrides:
renderSingleReplyin classCommentMainAreaBrowserComponent
-
getCommentLayerService
public CommentLayerService getCommentLayerService()
- Returns:
- the commentLayerService
-
openRecord
public void openRecord(AbstractCommentModel abstractComment)
-
getCommentActionConfiguration
public ActionColumnConfiguration getCommentActionConfiguration()
- Overrides:
getCommentActionConfigurationin classCommentMainAreaBrowserComponent
-
renderSingleComment
protected AdvancedGroupbox renderSingleComment(CommentModel commentModel, org.zkoss.zul.Div parent)
- Overrides:
renderSingleCommentin classCommentMainAreaBrowserComponent
-
extendContextMap
protected void extendContextMap(java.util.Map contextMap)
- Overrides:
extendContextMapin classCommentMainAreaBrowserComponent
-
renderGroupbox
protected AdvancedGroupbox renderGroupbox(AbstractCommentModel commentItemModel, org.zkoss.zul.Div contentContainer)
- Overrides:
renderGroupboxin classCommentMainAreaBrowserComponent
-
getTooltipRenderer
protected TooltipRenderer getTooltipRenderer()
-
update
public boolean update()
Description copied from class:AbstractBrowserComponentUpdates this browser component i.e. synchronizes its view width the underlying model.- Specified by:
updatein interfaceCockpitComponent- Overrides:
updatein classCommentMainAreaBrowserComponent- Returns:
trueif this browser was successfully updated,falseotherwise
-
cleanRemovedComments
protected void cleanRemovedComments()
-
-