public class NavigationNodeRenderer extends DefaultNodeWithActionsRenderer
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ADD_AS_CHILD_TOOLTIP |
protected static java.lang.String |
ADD_AS_SIBLING_TOOLTIP |
protected static java.lang.String |
EDIT_NN_TOOLTIP |
protected static java.lang.String |
NAVIGATION_NODE_TREE_ROW_SCLASS |
protected static java.lang.String |
REMOVE_NN_TOOLTIP |
protected static java.lang.String |
SYNCHRONIZATION_STATUS_NA |
protected static java.lang.String |
SYNCHRONIZATION_STATUS_NOT_OK |
protected static java.lang.String |
SYNCHRONIZATION_STATUS_OK |
protected static java.lang.String |
SYNCHRONIZATION_TOOLTIP_NA |
protected static java.lang.String |
SYNCHRONIZATION_TOOLTIP_NOT_OK |
protected static java.lang.String |
SYNCHRONIZATION_TOOLTIP_OK |
| Constructor and Description |
|---|
NavigationNodeRenderer() |
NavigationNodeRenderer(EventListener dropListener) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addActions(Treecell actionsCell,
java.lang.Object data)
Adds actions buttons for each row.
|
protected SynchronizationService.SyncContext |
computeSyncContext(TypedObject currentNode)
Computes sync cotext for given node.
|
protected java.lang.String |
computeSynchImageUrl(TypedObject currentNode)
Computes correct synchronization image url for given node
|
protected CMSNavigationService |
getCmsNavigationService() |
protected LabelService |
getLabelService() |
protected SynchronizationService |
getSynchronizationService() |
protected java.lang.String |
getSyncImageUrl(SynchronizationService.SyncContext syncContext) |
protected java.lang.String |
getSyncTooltip(SynchronizationService.SyncContext syncContext) |
SystemService |
getSystemService() |
protected TypeService |
getTypeService() |
protected void |
prepareActionsNode(java.lang.Object node,
Treerow treeRow) |
protected void |
prepareLabelCell(TypedObject typedObject,
Treerow treeRow) |
protected void |
registerDefaultOnDoubleClickListeners(Treerow treeRow) |
void |
render(Treeitem item,
java.lang.Object data) |
Treerow |
renderRow(Treeitem treeItem,
java.lang.Object node) |
protected void |
sendExtendedDropEvent(DropEvent dropEvent,
boolean addAsChild,
boolean append) |
void |
setLabelService(LabelService labelService) |
void |
setNavigationService(CMSNavigationService cmsNavigationService) |
void |
setSynchronizationService(SynchronizationService synchronizationService) |
protected static final java.lang.String SYNCHRONIZATION_STATUS_OK
protected static final java.lang.String SYNCHRONIZATION_TOOLTIP_OK
protected static final java.lang.String SYNCHRONIZATION_STATUS_NOT_OK
protected static final java.lang.String SYNCHRONIZATION_TOOLTIP_NOT_OK
protected static final java.lang.String SYNCHRONIZATION_STATUS_NA
protected static final java.lang.String SYNCHRONIZATION_TOOLTIP_NA
protected static final java.lang.String ADD_AS_SIBLING_TOOLTIP
protected static final java.lang.String ADD_AS_CHILD_TOOLTIP
protected static final java.lang.String REMOVE_NN_TOOLTIP
protected static final java.lang.String EDIT_NN_TOOLTIP
protected static final java.lang.String NAVIGATION_NODE_TREE_ROW_SCLASS
public NavigationNodeRenderer()
public NavigationNodeRenderer(EventListener dropListener)
public void render(Treeitem item,
java.lang.Object data)
throws java.lang.Exception
render in class AbstractNodeRendererjava.lang.Exceptionpublic Treerow renderRow(Treeitem treeItem,
java.lang.Object node)
renderRow in class DefaultNodeWithActionsRendererprotected void prepareActionsNode(java.lang.Object node,
Treerow treeRow)
protected void prepareLabelCell(TypedObject typedObject, Treerow treeRow)
protected void addActions(Treecell actionsCell,
java.lang.Object data)
DefaultNodeWithActionsRendererDeleteListener if you wish to add 'delete'
button.addActions in class DefaultNodeWithActionsRendereractionsCell - attach your buttons to this componentprotected java.lang.String computeSynchImageUrl(TypedObject currentNode)
currentNode - given nodeprotected java.lang.String getSyncImageUrl(SynchronizationService.SyncContext syncContext)
protected java.lang.String getSyncTooltip(SynchronizationService.SyncContext syncContext)
protected SynchronizationService.SyncContext computeSyncContext(TypedObject currentNode)
currentNode - given nodeprotected void sendExtendedDropEvent(DropEvent dropEvent,
boolean addAsChild,
boolean append)
protected void registerDefaultOnDoubleClickListeners(Treerow treeRow)
registerDefaultOnDoubleClickListeners in class AbstractNodeRendererpublic void setLabelService(LabelService labelService)
protected LabelService getLabelService()
public SystemService getSystemService()
public void setSynchronizationService(SynchronizationService synchronizationService)
protected SynchronizationService getSynchronizationService()
public void setNavigationService(CMSNavigationService cmsNavigationService)
protected CMSNavigationService getCmsNavigationService()
protected TypeService getTypeService()
Copyright © 2018 SAP SE. All Rights Reserved.