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