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
public class NavigationNodeRenderer extends DefaultNodeWithActionsRenderer
Renderer for navigation nodes in tree, contains set of default actions per node- Spring Bean ID:
- navigationNodeRenderer
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringADD_AS_CHILD_TOOLTIPprotected static java.lang.StringADD_AS_SIBLING_TOOLTIPprotected static java.lang.StringEDIT_NN_TOOLTIPprotected static java.lang.StringNAVIGATION_NODE_TREE_ROW_SCLASSprotected static java.lang.StringREMOVE_NN_TOOLTIPprotected static java.lang.StringSYNCHRONIZATION_STATUS_NAprotected static java.lang.StringSYNCHRONIZATION_STATUS_NOT_OKprotected static java.lang.StringSYNCHRONIZATION_STATUS_OKprotected static java.lang.StringSYNCHRONIZATION_TOOLTIP_NAprotected static java.lang.StringSYNCHRONIZATION_TOOLTIP_NOT_OKprotected static java.lang.StringSYNCHRONIZATION_TOOLTIP_OK
-
Constructor Summary
Constructors Constructor Description NavigationNodeRenderer()NavigationNodeRenderer(org.zkoss.zk.ui.event.EventListener dropListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddActions(org.zkoss.zul.Treecell actionsCell, java.lang.Object data)Adds actions buttons for each row.protected SynchronizationService.SyncContextcomputeSyncContext(TypedObject currentNode)Computes sync cotext for given node.protected java.lang.StringcomputeSynchImageUrl(TypedObject currentNode)Computes correct synchronization image url for given nodeprotected CMSNavigationServicegetCmsNavigationService()protected LabelServicegetLabelService()protected SynchronizationServicegetSynchronizationService()protected java.lang.StringgetSyncImageUrl(SynchronizationService.SyncContext syncContext)protected java.lang.StringgetSyncTooltip(SynchronizationService.SyncContext syncContext)SystemServicegetSystemService()protected TypeServicegetTypeService()protected voidprepareActionsNode(java.lang.Object node, org.zkoss.zul.Treerow treeRow)protected voidprepareLabelCell(TypedObject typedObject, org.zkoss.zul.Treerow treeRow)protected voidregisterDefaultOnDoubleClickListeners(org.zkoss.zul.Treerow treeRow)voidrender(org.zkoss.zul.Treeitem item, java.lang.Object data)org.zkoss.zul.TreerowrenderRow(org.zkoss.zul.Treeitem treeItem, java.lang.Object node)protected voidsendExtendedDropEvent(org.zkoss.zk.ui.event.DropEvent dropEvent, boolean addAsChild, boolean append)voidsetLabelService(LabelService labelService)voidsetNavigationService(CMSNavigationService cmsNavigationService)voidsetSynchronizationService(SynchronizationService synchronizationService)
-
-
-
Field Detail
-
SYNCHRONIZATION_STATUS_OK
protected static final java.lang.String SYNCHRONIZATION_STATUS_OK
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_TOOLTIP_OK
protected static final java.lang.String SYNCHRONIZATION_TOOLTIP_OK
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_STATUS_NOT_OK
protected static final java.lang.String SYNCHRONIZATION_STATUS_NOT_OK
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_TOOLTIP_NOT_OK
protected static final java.lang.String SYNCHRONIZATION_TOOLTIP_NOT_OK
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_STATUS_NA
protected static final java.lang.String SYNCHRONIZATION_STATUS_NA
- See Also:
- Constant Field Values
-
SYNCHRONIZATION_TOOLTIP_NA
protected static final java.lang.String SYNCHRONIZATION_TOOLTIP_NA
- See Also:
- Constant Field Values
-
ADD_AS_SIBLING_TOOLTIP
protected static final java.lang.String ADD_AS_SIBLING_TOOLTIP
- See Also:
- Constant Field Values
-
ADD_AS_CHILD_TOOLTIP
protected static final java.lang.String ADD_AS_CHILD_TOOLTIP
- See Also:
- Constant Field Values
-
REMOVE_NN_TOOLTIP
protected static final java.lang.String REMOVE_NN_TOOLTIP
- See Also:
- Constant Field Values
-
EDIT_NN_TOOLTIP
protected static final java.lang.String EDIT_NN_TOOLTIP
- See Also:
- Constant Field Values
-
NAVIGATION_NODE_TREE_ROW_SCLASS
protected static final java.lang.String NAVIGATION_NODE_TREE_ROW_SCLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
render
public void render(org.zkoss.zul.Treeitem item, java.lang.Object data) throws java.lang.Exception- Overrides:
renderin classAbstractNodeRenderer- Throws:
java.lang.Exception
-
renderRow
public org.zkoss.zul.Treerow renderRow(org.zkoss.zul.Treeitem treeItem, java.lang.Object node)- Overrides:
renderRowin classDefaultNodeWithActionsRenderer
-
prepareActionsNode
protected void prepareActionsNode(java.lang.Object node, org.zkoss.zul.Treerow treeRow)
-
prepareLabelCell
protected void prepareLabelCell(TypedObject typedObject, org.zkoss.zul.Treerow treeRow)
-
addActions
protected void addActions(org.zkoss.zul.Treecell actionsCell, java.lang.Object data)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
protected java.lang.String computeSynchImageUrl(TypedObject currentNode)
Computes correct synchronization image url for given node- Parameters:
currentNode- given node
-
getSyncImageUrl
protected java.lang.String getSyncImageUrl(SynchronizationService.SyncContext syncContext)
-
getSyncTooltip
protected java.lang.String getSyncTooltip(SynchronizationService.SyncContext syncContext)
-
computeSyncContext
protected SynchronizationService.SyncContext computeSyncContext(TypedObject currentNode)
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
public void setLabelService(LabelService labelService)
-
getLabelService
protected LabelService getLabelService()
-
getSystemService
public SystemService getSystemService()
-
setSynchronizationService
public void setSynchronizationService(SynchronizationService synchronizationService)
-
getSynchronizationService
protected SynchronizationService getSynchronizationService()
-
setNavigationService
public void setNavigationService(CMSNavigationService cmsNavigationService)
-
getCmsNavigationService
protected CMSNavigationService getCmsNavigationService()
-
getTypeService
protected TypeService getTypeService()
-
-