Class NavigationNodeRenderer
java.lang.Object
de.hybris.platform.cockpit.components.mvc.tree.view.AbstractNodeRenderer
de.hybris.platform.cockpit.components.mvc.tree.view.DefaultNodeWithActionsRenderer
de.hybris.platform.cmscockpit.navigationnode.browserarea.tree.NavigationNodeRenderer
- All Implemented Interfaces:
org.zkoss.zul.TreeitemRenderer
Renderer for navigation nodes in tree, contains set of default actions per node
- Spring Bean ID:
- navigationNodeRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddActions(org.zkoss.zul.Treecell actionsCell, Object data) Adds actions buttons for each row.protected SynchronizationService.SyncContextcomputeSyncContext(TypedObject currentNode) Computes sync cotext for given node.protected StringcomputeSynchImageUrl(TypedObject currentNode) Computes correct synchronization image url for given nodeprotected CMSNavigationServiceprotected LabelServiceprotected SynchronizationServiceprotected StringgetSyncImageUrl(SynchronizationService.SyncContext syncContext) protected StringgetSyncTooltip(SynchronizationService.SyncContext syncContext) protected TypeServiceprotected voidprepareActionsNode(Object node, org.zkoss.zul.Treerow treeRow) protected voidprepareLabelCell(TypedObject typedObject, org.zkoss.zul.Treerow treeRow) protected voidregisterDefaultOnDoubleClickListeners(org.zkoss.zul.Treerow treeRow) voidorg.zkoss.zul.Treerowprotected voidsendExtendedDropEvent(org.zkoss.zk.ui.event.DropEvent dropEvent, boolean addAsChild, boolean append) voidsetLabelService(LabelService labelService) voidsetNavigationService(CMSNavigationService cmsNavigationService) voidsetSynchronizationService(SynchronizationService synchronizationService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.zul.TreeitemRenderer
render
-
Field Details
-
SYNCHRONIZATION_STATUS_OK
- See Also:
-
SYNCHRONIZATION_TOOLTIP_OK
- See Also:
-
SYNCHRONIZATION_STATUS_NOT_OK
- See Also:
-
SYNCHRONIZATION_TOOLTIP_NOT_OK
- See Also:
-
SYNCHRONIZATION_STATUS_NA
- See Also:
-
SYNCHRONIZATION_TOOLTIP_NA
- See Also:
-
ADD_AS_SIBLING_TOOLTIP
- See Also:
-
ADD_AS_CHILD_TOOLTIP
- See Also:
-
REMOVE_NN_TOOLTIP
- See Also:
-
EDIT_NN_TOOLTIP
- See Also:
-
NAVIGATION_NODE_TREE_ROW_SCLASS
- See Also:
-
-
Constructor Details
-
NavigationNodeRenderer
public NavigationNodeRenderer() -
NavigationNodeRenderer
public NavigationNodeRenderer(org.zkoss.zk.ui.event.EventListener dropListener)
-
-
Method Details
-
render
- Overrides:
renderin classAbstractNodeRenderer- Throws:
Exception
-
renderRow
- Overrides:
renderRowin classDefaultNodeWithActionsRenderer
-
prepareActionsNode
-
prepareLabelCell
-
addActions
Description copied from class:DefaultNodeWithActionsRendererAdds actions buttons for each row. Tip if overriding: useDeleteListenerif you wish to add 'delete' button.- Overrides:
addActionsin classDefaultNodeWithActionsRenderer- Parameters:
actionsCell- attach your buttons to this component
-
computeSynchImageUrl
Computes correct synchronization image url for given node- Parameters:
currentNode- given node
-
getSyncImageUrl
-
getSyncTooltip
-
computeSyncContext
Computes sync cotext for given node.- Parameters:
currentNode- given node
-
sendExtendedDropEvent
protected void sendExtendedDropEvent(org.zkoss.zk.ui.event.DropEvent dropEvent, boolean addAsChild, boolean append) -
registerDefaultOnDoubleClickListeners
protected void registerDefaultOnDoubleClickListeners(org.zkoss.zul.Treerow treeRow) - Overrides:
registerDefaultOnDoubleClickListenersin classAbstractNodeRenderer
-
setLabelService
-
getLabelService
-
getSystemService
-
setSynchronizationService
-
getSynchronizationService
-
getTypeService
-