Class MacFinderTreeComponent
- 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.productcockpit.components.macfinder.MacFinderTreeComponent
-
- All Implemented Interfaces:
BrowserComponent,CockpitComponent,MacFinderTree,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 MacFinderTreeComponent extends AbstractBrowserComponent implements MacFinderTree
Mac finder tree component - allows to navigate into hierarchical structure- See Also:
- Serialized Form
-
-
Field Summary
-
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 MacFinderTreeComponent(CategoryTreeBrowserModel model, AbstractContentBrowser contentBrowser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDummyColumns(org.zkoss.zhtml.Tr parent, int quantity)Prepares some dummy columns where is too much spacevoidcheckOpenDropContext(int keys, int x, int y, java.util.List<TypedObject> draggedItems, TypedObject dropTarget, CategoryModel oldSuperCat)protected booleancheckPermissions(java.lang.String typeCode, java.lang.String permissionCode)ExtendedTypeLoadergetCockpitTypeLoaderChain()protected DragAndDropWrappergetDDWrapper()MacFinderTreeNodegetLastSelectedCategory()Searches for last selected categoryorg.zkoss.zul.ListitemRenderergetListItemRenderer()CategoryTreeBrowserModelgetModel()protected NewItemServicegetNewItemService()MacFinderTreeModelAbstractgetTreeModel()protected TypeServicegetTypeService()booleaninitialize()Invokes each times when new component instance is needed.voidrefreshLeafNodes()voidresize()Notifies this browser component that it should resize itself if possible, since the view state might require it.voidsetActiveItem(TypedObject activeItem)Sets the active item of this browser component toactiveItem.voidsetListItemRenderer(org.zkoss.zul.ListitemRenderer listItemRenderer)booleanupdate()Updates this browser component i.e.voidupdateActiveItems()Re-renders the currently active item(s).protected voidupdateInspectorArea(TypedObject object, AbstractBrowserArea area)voidupdateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)Re-renders the item.voidupdateSelectedItems()Re-renders the currently selected item(s).-
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, detach, 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, 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
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
-
-
-
-
Constructor Detail
-
MacFinderTreeComponent
public MacFinderTreeComponent(CategoryTreeBrowserModel model, AbstractContentBrowser contentBrowser)
-
-
Method Detail
-
getModel
public CategoryTreeBrowserModel getModel()
- Specified by:
getModelin interfaceBrowserComponent- Overrides:
getModelin classAbstractBrowserComponent
-
getListItemRenderer
public org.zkoss.zul.ListitemRenderer getListItemRenderer()
-
setListItemRenderer
public void setListItemRenderer(org.zkoss.zul.ListitemRenderer listItemRenderer)
-
getTreeModel
public MacFinderTreeModelAbstract getTreeModel()
-
checkOpenDropContext
public void checkOpenDropContext(int keys, int x, int y, java.util.List<TypedObject> draggedItems, TypedObject dropTarget, CategoryModel oldSuperCat)
-
initialize
public boolean initialize()
Invokes each times when new component instance is needed.- Specified by:
initializein interfaceCockpitComponent- Specified by:
initializein classAbstractBrowserComponent- Returns:
trueif initialization was successful,falseotherwise- See Also:
HtmlMacroComponent.afterCompose()
-
resize
public void resize()
Description copied from class:AbstractBrowserComponentNotifies this browser component that it should resize itself if possible, since the view state might require it. This is typically only necessary for ZK'sBorderlayoutcomponents.- Specified by:
resizein classAbstractBrowserComponent
-
setActiveItem
public void setActiveItem(TypedObject activeItem)
Description copied from class:AbstractBrowserComponentSets the active item of this browser component toactiveItem.- Specified by:
setActiveItemin interfaceCockpitComponent- Specified by:
setActiveItemin classAbstractBrowserComponent- Parameters:
activeItem- the new active item
-
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- Specified by:
updatein classAbstractBrowserComponent- Returns:
trueif this browser was successfully updated,falseotherwise
-
refreshLeafNodes
public void refreshLeafNodes()
-
updateItem
public void updateItem(TypedObject item, java.util.Set<PropertyDescriptor> modifiedProperties)
Description copied from class:AbstractBrowserComponentRe-renders the item.- Specified by:
updateItemin interfaceCockpitComponent- Specified by:
updateItemin classAbstractBrowserComponent- Parameters:
item- the item to be re-renderedmodifiedProperties- modified properties
-
updateActiveItems
public void updateActiveItems()
Description copied from class:AbstractBrowserComponentRe-renders the currently active item(s).- Specified by:
updateActiveItemsin interfaceCockpitComponent- Specified by:
updateActiveItemsin classAbstractBrowserComponent
-
updateSelectedItems
public void updateSelectedItems()
Description copied from class:AbstractBrowserComponentRe-renders the currently selected item(s).- Specified by:
updateSelectedItemsin interfaceCockpitComponent- Specified by:
updateSelectedItemsin classAbstractBrowserComponent
-
getDDWrapper
protected DragAndDropWrapper getDDWrapper()
-
addDummyColumns
public void addDummyColumns(org.zkoss.zhtml.Tr parent, int quantity)Prepares some dummy columns where is too much space- Parameters:
parent- - columns parentquantity-
-
getLastSelectedCategory
public MacFinderTreeNode getLastSelectedCategory()
Searches for last selected category- Returns:
- last selected category
-
getTypeService
protected TypeService getTypeService()
-
getNewItemService
protected NewItemService getNewItemService()
-
checkPermissions
protected boolean checkPermissions(java.lang.String typeCode, java.lang.String permissionCode)
-
getCockpitTypeLoaderChain
public ExtendedTypeLoader getCockpitTypeLoaderChain()
-
updateInspectorArea
protected void updateInspectorArea(TypedObject object, AbstractBrowserArea area)
-
-